This tutorial is about hand assembling and disassembling SPARC machine code. Students should refer to their copy of the reference card.
0xB2100000 0xB28D0019 0xB4A6A001 0x12BFFFFE 0x01000000
add %g0, 0, %i2
loop: andcc %i3, 0x1, %g0
bz skip
srl %i3, 1, %i3
add %i2, %i0, %i2
skip: cmp %i3, %g0
bne loop
sll %i0, 1, %i0
| Kate and Mike, 2013. | COMP226 home page |