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.
Before
|
Instruction
|
After
|
1. EBX: 00 00 01 A2
|
moveax, 100
|
EAX
|
b. For each part of this problem, assume the "before" values when the given instruction is executed. Give the requested "after" values.
Before
|
Instruction
|
After
|
DX: 01 4B
|
add dx, 40h
|
DX, 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.
Before
|
Instruction
|
After
|
EBX: FF FFFF 75
ECX: 00 00 01 A2
|
subebx, ecx
|
EBX, 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.
Before
|
Instruction
|
After
|
EAX: FF FFFF E4
EBX: 00 0000 02
|
mulebx
|
EAX, 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.
Before
|
Instruction
|
After
|
AX: FF 75
byte at count: FC
|
div count
|
AX
|