Quiz1_sample2 - 7-3-2008 BILKENT UNIVERSITY Department of...

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

View Full Document Right Arrow Icon
7-3-2008 BILKENT UNIVERSITY Department of Electrical and Electronics Engineering EEE212 Microprocessors Sections 1 and 4 QUIZ-1 closed book, NO calculators Duration: 45 minutes Surname:_______________________________________ Name:_________________________________________ ID-Number:_____________ SECTION: __________ Signature:_______________________________________ Q1 ( 60 points) Q2 ( 40 points) 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) (60 pts) 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 empty bit-or byte locations will be assumed to be zero at the beginning. Note: The first table will have a hex number in each box if modified and the second one will have a one or zero again if modified. ORG 0H MOV A,#0CDH ADD A,#0FFH MOV 08h,C ;store the carry in bit ;location 08h MOV R0,A MOV R1,#34H MOV R2,#56H SETB PSW.4 MOV R0,#65H MOV R1,#43H MOV R2,#21H PUSH 10h PUSH 18 MOV SP,#1FH PUSH 0 POP 0AH JNB 01h,SKIP
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/03/2010 for the course EE 212 taught by Professor Asds during the Summer '10 term at Bilkent University.

Page1 / 3

Quiz1_sample2 - 7-3-2008 BILKENT UNIVERSITY Department of...

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