This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 1 OVER EE 3750 Homework 2 due Mon., October 1, 2001 1. Write an 8086 assembly language instruction sequence to copy the odd numbered elements of byte array RED (from elements 1, 3, 5, 7, ) to consecutive elements of byte array BLUE (to elements 0, 1, 2, 3, ). Let RED have 100 elements, indexed 0 through 99. 2. Given the register and memory contents listed below, list the changed registers and memory locations and their contents after each instruction below executed in sequence. You can identify memory locations by variable name or effective address. Contents: All integers in this problem are written in hexadecimal. Let AX = 41C, BX = 38DD, CX = 127, SP = 1984, GREEN = 670, contents of the word at the top of the stack = 3234. The effective address of GREEN is 8A14. XCHG BX, CX PUSH AX LEA AX, GREEN SUB AX, 12H POP BX 3. Many image filtering approaches produce new pixel values by multiplying a window of pixel values by corresponding elements of a window of coefficient values, adding the products, then...
View Full Document
- Fall '08