Message from @DanielKO
Discord ID: 429466924112674827
You should be curious to do things on your own without needing somebody to hold your hand, but also you should constantly check what other people created, to make sure you're not doing things completely wrong.
How did you mark up the text?
Google "Discord markdown".
That took all too long
Covered out the `http://localhost`?
Its my public ip
Share it
Also, chrome? Really?
Might as well just use JS
What do you use? Safari?
One has to wonder, how much energy we're wasting worldwide because so many websites now offset computation and rendering to the client side.
@Durtle02 Use firefox
@Deleted User This is my life tonight.
```
.data
print: .asciz "%d\n\000"
scan: .asciz "%d\000"
.comm A, 32, 32
.comm B, 32, 32
.text
addr_A: .word A
addr_B: .word B
addr_scan: .word scan
addr_print: .word print
.global main
main:
stmfd sp!, {r0-r1, lr}
ldr r0, addr_scan /* r0 <- &addr_scan */
ldr r1, addr_A /* r1 <- addr_A */
bl scanf /* calls scanf */
ldr r0, addr_scan /* r0 <- &addr_scan */
ldr r1, addr_B /* r1 <- addr_B */
bl scanf /* calls scanf */
ldr r0, addr_A /* r0 <- addr_A */
ldr r0, [r0] /* r0 <- *r0 */
ldr r1, addr_B /* r1 <- addr_B */
ldr r1, [r1] /* r1 <- *r1 */
cmp r0, r1 /* compare r0 and r1 */
movgt r1, r0 /* move greater to r1 */
ldr r0, addr_print /* */
bl printf /* calls printf */
ldmfd sp!, {r0-r1, pc}
```
@meratrix nigger is that assembly code
arm assembly my dude
why the fuck are you showing me that cancer
cause it's my cancer
two can play it that way nigger
``bl printf /* calls printf */`` comments could use more redundancy
I guess it's useful for people not familiar with the mnemonics.
Gotta comment every line otherwise TA's give me shit
they should be more worried the students know what their code means
Back when I did assembly homework, I had to normalize a single-precision floating point number on a toy computer, that had only 256 bytes of RAM. And we had to write our own assembler.
i'm learning 68k but im gonna learn ARM after that
And whoever used the least instructions got bragging rights.
which computer
Oh, one that my professors used, I think it was created by a student a few years prior. Don't even remember the name.
It was your typical two operand instructions, 4-bit instructions.
interesting strategy. too obscure to cheat?
I guess so.
can i do your same assignment on 68k?
I don't see why not.
will it be easier then?
Probably.
I got bragging rights, by the way. Got my program to be even shorter than the professor's and the TAs' programs.
By using the instructions themselves as constants.
About 20% of the class couldn't make it fit in the 256 bytes.
what book did they give you for assembly
assembly is cancer
^you probly like java