HW3-3750

HW3-3750 - 1 EE 3750 Homework 3 due Wed., October 31, 2001...

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

View Full Document Right Arrow Icon
1 OVER EE 3750 — Homework 3 due Wed., October 31, 2001 For all problems: state any assumptions made; include comments as needed to make assembly instruction sequences clear. 1. (a) Write a complete data segment DATA6 that creates: a word variable GREEN, initialized to 4; a byte variable YELLOW, initialized to 36; a byte variable RED, initializing six bytes there as 101011 (binary), 4E (hex), 50 (decimal), 50 (decimal), 50 (hex), and 1100 (binary). (b) Write a complete stack segment STACK6, allowing 15 words for the stack. (c) Write a complete code segment MAIN6 that will subtract YELLOW from each of the first GREEN elements of RED — push each of these differences onto the stack, do not overwrite elements of RED. Use the LOOP instruction. Be sure to include the necessary ASSUME statements and instructions for loading segment registers as needed. 2. Determine the contents of the symbol table when assembling the following program. (See Liu and Gibson, p. 122 for an example of a symbol table.)
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

HW3-3750 - 1 EE 3750 Homework 3 due Wed., October 31, 2001...

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