{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2230TEST1 - ASSEMBLY LANGUAGE PROGRAMMING TEST#1 SPRING...

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

View Full Document Right Arrow Icon
ASSEMBLY LANGUAGE PROGRAMMING TEST #1, SPRING 2006 NAME: Jeffery Brutsche STUDENT ID: Q.1 Calculate the value of the 20 bit physical address, expressed in hex, for the following cases. The first value is contained in the code segment (CS), the second in the Instruction pointer (IP). (a) A B C D:1 2 3 4(Hex) ACF14H - 10101100111100010100 (b) A 1 0 0:A B 1 3(Hex) ABB13H - 10101011101100010011 © A B C D: A 1 2 B(Hex) B5DFBH - 10110101110111111011 2. (a) Find the current value of the (TOS) top of the stack for the following values: SS = A B C D SP = 0 1 3 A B1DA 16 (b)What will be the new address of the (TOS) if the values in the registers AX, BX, and CX (in that order) are PUSHED on TOS. It will be the value in CX, but in this order. If CX was originally 1234 it would now be 3412
Image of page 1

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

View Full Document Right Arrow Icon
© What will be the address of the TOS if the following commands are executed: POP CX POP BX What ever was in AX would be at the top of the stack Q.3. For the output of the dump command shown below, find the physical addresses for all locations that have been circled H:\>DEBUG -D 0B35:0100 88 00 EB 69 2E C7 06 96-90 01 00 EB 60 26 8A 47 …i…….’&.G
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the 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