assembler.linux
E.g)
assembler.linux add.asm add.hex
The contents in add.asm
.ORIG x3000 ADD R0, R0, #0 HALT .ENDThe contents in add.hex
0x3000 0x1020 0xF025
Hw#1 is building a functional simulator (i.e., there is no timing information).
The simulator processes one instruction at a time.
Each cycle, it fetches one instruction, decodes, executes and updates NEXT_LATCHES.
For this assignment, you do not need to worry about PSR.
Please use C instead of C++. If we cannot compile your code using gcc, your assignment might not be graded.
Please look at "load_program" function in the simulator. The simulator already handles that.
No, you do not need to implement a trap vector table.
please look at "load_program". It has a good example of accessing the memory.
You have to implement all the instructions in Figure A.3.
For this assignment, no you do not need to generate exceptions.