HW2soln-F08

HW2soln-F08 - EE 3750 HW 2 solutions 1 EE 3750 Homework 2...

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

View Full Document Right Arrow Icon
EE 3750 — HW 2 solutions 1 EE 3750 — Homework 2 solutions Fall 2008 1. In the following equation, all variables are byte variables. red ! brown " blue ( ) # yellow gold (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 as signed binary integers. (a) MOV AL, BROWN SUB AL, BLUE ; one operand for byte multiplication must be in AL MUL YELLOW ; unsigned, product goes to AX DIV GOLD ; divides AX by gold , quotient goes to AL MOV RED, AL (b) MOV AL, BROWN SUB AL, BLUE ; one operand for byte multiplication must be in AL IMUL YELLOW ; signed, product goes to AX IDIV GOLD ; divides AX by gold , quotient goes to AL MOV RED, AL 2. Let the contents of AX = 100H, BX = 200H, CX = 300H, DX = 400H, and SI = 500H. Consider the following sequence of PUSH and POP instructions. PUSH AX
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 / 3

HW2soln-F08 - EE 3750 HW 2 solutions 1 EE 3750 Homework 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