HW2-3750

HW2-3750 - as signed binary integers. 3. Write an 8086...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 3750 — Homework 2 due Wed., February 22, 2006 For all problems: state any assumptions made; include comments as needed to make assembly language instruction sequences clear. 1. Brey, Chapter 5, Problem 13 — Write a short sequence of instructions that subtracts the numbers in DI, SI, and BP from the AX register. Store the difference in register BX. 2. In the following equation, all variables are byte variables. green red 5 gray * blue black (a) Write an 8086 instruction sequence to compute the equation assuming that the values are given as unsigned binary integers. (b) Write an 8086 instruction sequence to compute the equation assuming that the values are given
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: as signed binary integers. 3. Write an 8086 assembly language instruction sequence to implement the following pseudocode. Assume that all variables are word variables. sum for i 0 to size 1 do yellow i white i + 78 if yellow i < 100 then sum sum + yellow i diff diff sum 4. Write an 8086 assembly language instruction sequence that will examine an ASCII character string of 100 characters and replace each decimal digit by a %. Assume that the character string starts at STG....
View Full 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.

Ask a homework question - tutors are online