EECS 382 Take Home (10% of grade, Due Tuesday November 2)

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)
AssemblyClock
Time
PCOVCYACReg. AReg. R1
0x100 MOV A, #0xC800x1000000xff0xff
  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 LanguageDescriptive Comments
0x100