{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

midterm_4 (09summer)

midterm_4 (09summer) - 1 June 2009 SYSC-3006 Midterm Exam...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1} June 2009 SYSC-3006 Midterm Exam Page 6 of 7 Question 4 [8 marks] 0 The registers include the following content: AX = 5980 BX = 019Eh CX = lSOOh DX = 9800h CS = 13AC DS = 2790h SS = llth ES = 23AFh BP = 052011 SP = OlOOh SI = OOOOh DI = OOOOh IP = OOth The memory includes the following content: m u H. ‘5 2790:0010 BC, 43 01 FE AB 39 84 5C BC 43 01 FE AB 39 84 5C 2790:0020 FF EF OA' 1D 33 44 7C 00 FF EF 0A 1D 33 44 7C 00 (l) [7 marks] What are the contents of the following registers and memory locations after executing all the code below? MOV AX, [001011] AX ’3 BHC 4'3 X MOV BX, [0012h] BX —> 0' FE CX _) ls FE Mov CL, BL CL 7 FE >ol 43 MOV BL, AL BL —> 45 ex MOV AL, CL AL “>F- AX >P’C FE MOV [0020b], AX [002cm —> (3c FE MOV [002211], BX [0022k]—7 01 45 But?) BX=olFE cx=ISFE »( K K ' :0020 = :00 1 = DS BC X DS 2 FEX 135:0022 = 0) DS:0023 = 43 X X (2) [1 mark] Which flags are affected by executing the code above? PF K ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern