Test2soln-3750

Test2soln-3750 - EE 3750 Test 2 solutions 1 EE 3750 Test 2...

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

View Full Document Right Arrow Icon
EE 3750 — Test 2 solutions 1 EE 3750 — Test 2 solutions Spring 2006 1. (10 pts) Write a complete data segment to initialize a segment of memory with the data shown below for the given variable names and types. All values shown in hexadecimal. offset contents variable name variable type A 07 9 06 8 05 BRONZE byte 7 5F 6 16 SILVER word 5 0A 4 25 3 0A 2 25 1 0A 0 25 GOLD byte DATA1 SEGMENT GOLD DB 3 DUP (25H, 0AH) SILVER DW 5F16H BRONZE DB 5H, 6H, 7H; or 5, 6, 7 DATA1 ENDS 2. (30 pts) Write a complete 8086 procedure COUNT1S to do the following. Given the address of a word in memory, it is to count the number of 1’s, returning this sum to a byte in memory (this address is also given). The calling sequence below inputs the addresses of the variables to the procedure, where BLUE is the input word variable and ONES is the output byte variable. The procedure is not to use these variable names. MOV BX, OFFSET BLUE
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.

Page1 / 2

Test2soln-3750 - EE 3750 Test 2 solutions 1 EE 3750 Test 2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online