go to previous page   go to home page   go to next page hear noise

Would it be possible to dis-assemble the instruction in $25?

Answer:

Sure. Bit logic operations can take apart the various fields and put them in different registers.


A Run of the Program

Disassembly sounds like a really great programming assignment. But now let's run the assembler program.

The machine instruction in register $25 is correct, as expected. It would be nice to save the instruction to memory at this point, but you don't know how to do this yet.

SPIM display of program

Note that the bit pattern (machine instruction) we assembled in register $25 is the same bit pattern the real assembler gave us for the assembly instruction in the last line of the program.


QUESTION 22:

Could this program be written using fewer registers?


go to previous page   go to home page   go to next page