Basic Instructions

jav284

Answer the following questions:

a. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

BeforeInstructionAfter
1. EBX: 00 00 01 A2mov eax, 100EAX

b. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

BeforeInstructionAfter
DX: 01 4Badd dx, 40hDX, SF, ZF, CF, OF

c. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

BeforeInstructionAfter

EBX: FF FF FF 75

ECX: 00 00 01 A2

sub ebx, ecxEBX, ECX, SF, ZF, CF, OF

d. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

BeforeInstructionAfter

EAX: FF FF FF E4

EBX: 00 00 00 02

mul ebxEAX, EDX, CF, OF

e. For each part of this problem, assume the “before” values when the given instruction is executed. Give the requested “after” values.

BeforeInstructionAfter

AX: FF 75

byte at count: FC

div countAX

 

 

Assignment is also attached in file.

  • 11 years ago
  • 20
Answer(2)

Purchase the answer to view it

    Purchase the answer to view it

    NOT RATED
    • basic_instructions.docx
    Bids(1)