Question: Styles Consider the MARIE program on the right. a) List the hexadecimal code for each instruction. b) Draw the symbol table. Hex Add. I Label
Styles Consider the MARIE program on the right. a) List the hexadecimal code for each instruction. b) Draw the symbol table. Hex Add. I Label Instruction Loop 1001 101 1 102 ! 103 ! 104 1 1051 106 ! 107 1 108 | 1091 10A1 10B 1001 1001 10E 1071 1101 1111 1121 1131 114 1 1151 1161 117 LOAD Addr STORE Next LOAD Num SUBT One STORE Ctr CLEAR LOAD Sum ADDI Next STORE Sum LOAD Next ADD One STORE Next LOAD Ctr SUBT One STORE Ctr SKIPCOND 800 JUMP Loop HALT HEX 118 HEX 0 DEC 5 DEC 0 HEXO DEC 1 Hint: Opcode 0000 0001 0010 0011 0100 0101 0110 Instruction Opcode Jn 8 X 0111 Load x 1000 Store X 1001 Add x 1010 Subt X 1011 Input 1100 Output Instruction Halt Skpoond Jump X clear Addr X Jump X Addr Next Num Sum Ctr One
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
