Quiz1_sample1 - BILKENT UNIVERSITY Department of Electrical...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
BILKENT UNIVERSITY Department of Electrical and Electronics Engineering EEE212 Microprocessors QUIZ 1 Solutions 24-02-2010 Sections 1 and 4 Closed book, no calculators. Duration: 45 minutes Surname : Name : ID Number : Section : Signature : Question 1 (50 pts) : Question 2 (20 pts) : Question 3 (30 pts) : TOTAL :
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1) For the following program, determine the contents of the RAM given below after the execution of the NOP (No Operation Instruction) assuming that the system is just powered up, i.e., register bank 0 is active and SP=07h. Note that byte locations will be assumed to be zero at the beginning. Note: Please show your result in the following RAM map all in hexadecimal notation. ORG 0 MOV R5, #92H MOV R1, #0AFH MOV R2, #79 MOV A, R5 ADD A, R1 JC NEXT SETB PSW.3 NEXT: SETB PSW.4 MOV R5, #12H MOV R3, #66H MOV R1, #0B2H PUSH 5 PUSH 17 PUSH 13H MOV SP, #40H PUSH 2 PUSH 1 POP 50H POP 51H MOV SP, #5FH LJMP THERE ORG 0102H THERE: LCALL FINISH NOP HERE: SJMP HERE ORG 0200H FINISH: ADD A, #10 RET END Byte address (hex)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Quiz1_sample1 - BILKENT UNIVERSITY Department of Electrical...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online