Name: ____________________________________ Email: ________________________
(1) Using the 8051 instruction, assemble the instruction, and then execute it showing the clock time in machine cycles:
Mem. Addr. | Machine instructions (in hex) | Assembly | Clock Time | PC | OV | CY | AC | Reg. A | Reg. R1 | 0x100 | MOV A, #0xC8 | 0 | 0x100 | 0 | 0 | 0 | 0xff | 0xff | MOV R1,#0x88 | ADD A,R1 | MOV DPL,A | CLR A | ADDC A,#0x10 | MOV DPH,A | Total Time= |
(2) Rewrite problem 1 by filling the missing underlined C statements:
void main(void) { register char R1 = ______________; register short DPTR; ______________________________; }
(3) Rewrite the code in 32-bit JVM instructions with the local variables R1 located at 2 and DPTR at 8.
Memory Address | Machine instructions (in hex) | JVM Assembly Language | Descriptive Comments |
0x100 | |||