Unformatted text preview: Next, subtract that minimum value for each of the 30 elements. 3. (25 pts) Let GOLD be an array of bytes and let NUM be a word variable holding the number of elements in GOLD. (You may assume NUM > 1.) Write an 8086 instruction sequence to reverse the contents of the NUM bytes in GOLD (so, at the end, the original first byte will be last, and so on). 4. (35 pts) Write an instruction sequence to implement the steps below. All variables are byte variables holding signed integers. GREEN ← RED + 88 if bits 2 and 4 of GREEN are both 1 then for j ← 0 to 29 rotate YELLOW j by 3 bits to the left endfor GREEN ← YELLOW 29 else GREEN ← (GREEN*RED) / YELLOW endif BLUE ← GREEN...
View Full Document
- Fall '08
- Machine code, Addressing mode, instruction sequence, language instruction sequences