EE 3751 Midterm

EE 3751 Midterm - EE 3751 Midterm Fall 2004 1. Answer the...

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

View Full Document Right Arrow Icon
1 EE 3751 Midterm – Fall 2004 1. Answer the following: a. (5 points) Define an array of byte size elements and call it GRADES. Its contents are given below. The DUP directive must be used. 1 2 4 3 4 3 5 5 5 8 Answer: GRADES DB 1, 2, 2 DUP(4, 3), 3DUP(5), 8 b. (10 points) Copy the 4 th element of the GRADES array to a variable called GRADES4. Use the register relative addressing mode to read the value from GRADES, and use the direct addressing mode to write the value to GRADE4. Answer: MOV BX, 3 MOV DL, GRADES[BX] MOV GRADE4, DL c. (10 points) Write the DEBUG command used to fill a block of 256 bytes of memory with the value 20H. The block starts at physical address 13BDAH. Assume the data segment is located at address 1234H. Answer: PA = SA + Offset = 13BDAH = 12340H + Offset Offset = 13BDAH – 12340H = 0189AH - F 1234:0189A L100 20 Format: F <Start address> <L number of bytes> <data> Note: Values are in hexadecimal.
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 2. (25 points) Write a subroutine, called SQUARE, to modify the attribute of a square portion of the screen. Four parameters are passed from the main routine in the registers described below: BH – Length of the square’s side; BL – Attribute value; DH – Y coordinate of upper left corner of the square; DL – X coordinate of upper left corner of the square;
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.

This test prep was uploaded on 04/20/2008 for the course EE 3751 taught by Professor Desouza during the Fall '04 term at LSU.

Page1 / 4

EE 3751 Midterm - EE 3751 Midterm Fall 2004 1. Answer the...

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