HW#1sol - EECS 3100 Microsystems Design Home-Work#1 Max Pts...

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

EECS 3100 Microsystems Design Home-Work #1 Max Pts 25 1. If the segment registers contain the following values. Find the starting and ending address for that segment. Starting ending CS = 0100 01000 10FFF DS = 1000 10000 1FFFF SS = 3100 31000 40FFF ES = 4400 44000 53FFF 4 pts. 2. Find the memory location addressed by the following register combination in the real mode. SS = 8000H SP = 9000H 2 pts. 89000 3. What will be the contents of destination register after the execution of the following instructions. a) mov ah, bl; AX = 0023 BX = 00A5 b) add ah, 3; AX = 06AF c) sub d1, count; DX = 8F23 count = 1A a ah=A5 ax=A523 b ax=09AF c dx=8f09 3 pts. 4. Write a sequence of instructions to add the five bytes starting from location called HOME & leave the result in a location called TOTAL. 2 pts. 5. Determine the address accessed by each of the following instructions. Given DS = 1200H, BX = 1100H, SI = 1234H a) MOV [100H], DL b) MOV [SI+100H], EAX A 12100 B 13334 2 pts
Image of page 1

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

6. Identify the types of operands (register, immediate, direct or indirect) used in each
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of the following instructions: a) mov al, 20 immediate b) add cx, wordval direct c) mov bx, offset count immediate d) add d1 [bx] register indirect 4 pts 7. Write a data declaration directive for a sequence of 500 16-bit words, each containing the value 1000H. dw 500dup(1000h) 2 pts 8. Write a data definition statement for a list of 8-bit memory operands containing the following values: 3H, 15H, 0F6H, 11010000(binary) 2 pts List db 3h,15h, f6h, d0h 9. Write a statement that copies the location of the data segment into the DS register. Mov ax @data Mov ds ax 2 pts 10. What will be in AX after the execution of following instructions. . code mov ax, array1 ax=0010 inc ax ax=0011 add ah, 1 ax = 0111 sub ax, array2 ax=00E1 .data array1 dw 0010h, 0020h array 2 dw 0030h, 0040h 2pts...
View Full Document

  • Fall '08
  • Staff
  • Following, Trigraph, pts, X86, Programming constructs, Citroën

{[ 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