Each of these problems gives "before" conditions and an instruction. Give the indicated "after" state of the indicated registers and flags as appropriate.
Before |
Instruction executed |
Afte |
(e) |
EDX: 00 00 02 E9 |
inc edx |
EDX |
||||
SF __ |
ZF__ |
(f) |
EBX: FF FF FF 3B |
neg ebx |
EBX |
||||
SF __ |
ZF__ |
(g) |
EAX: 01 23 45 67 ECX: 89 AB CD EF |
sub eax, ecx |
EAX |
||||
SF __ |
ZF__ |
CF__ |
OF__ |
(h) |
AX: 12 34 CX: 7A BC CF: 1 |
adc ax, cx |
AX |
||||
CX |
|||||||
SF __ |
ZF__ |
CF__ |
OF__ |
(i) |
EAX: 00 00 00 0A EBX: FF FF FF FC EDX: FF 03 FF 01 |
imul ebx |
EAX |
||||
EDX |
|||||||
CF __,OF __ |
|||||||
(j) |
EAX: 00 00 00 10 ECX: FF FF FF FD EDX: FF 03 FF 01 |
mul ecx |
EAX |
||||
EDX |
|||||||
CF __,OF __ |
|||||||
(k) |
EAX: 00 00 00 0A EBX: 00 00 00 0C EDX: FF 03 FF 01 |
imul eax,ebx |
EAX |
||||
EDX |
|||||||
CF __,OF __ |
|||||||
(l) |
EAX: 00 00 0E AA ECX: 00 00 00 1B EDX: 00 00 00 00 |
div ecx |
EAX |
||||
EDX |
|||||||
(m) |
EAX: 00 00 0F CA EBX: 00 00 00 0D EDX: 00 00 00 00 |
idiv ebx |
EAX |
||||
EDX |
e)
EDX - 00 00 02 E9
instruction - inc edx
EDX - 00 00 02 EA
SF - 0
ZF - 0
f)
EDX - FF FF FF 3B
instruction - neg ebx
EDX - 00 00 00 C5
SF - 0
ZF - 0
g)
EAX - 01 23 45 67
ECX - 89 AB CD EF
instruction - sub eax, ecx
EAX - 88 88 88 88
CF - 1
OF - 1
SF - 1
ZF - 0
h)
AX - 12 34
CX - 7A BC
CF - 1
instruction - adc ax, cx
AX - 8C F1
CX - 7A BC
CF - 0
OF - 0
SF - 1
ZF - 0
i)
EAX - 00 00 00 0A
ECX - FF FF FF FC
EDX - FF 03 FF 01
instruction - imul ebx
EAX - FF FF FF D8
EDX - 00 00 00 09
CF - 0
OF - 1
j)
EAX - 00 00 00 10
ECX - FF FF FF FD
EDX - FF 03 FF 01
instruction - mul ecx
EAX - FF FF FF D0
EDX - 00 00 00 0F
CF - 0
OF - 0
k)
EAX - 00 00 00 0A
ECX - 00 00 00 0C
EDX - FF 03 FF 01
instruction - imul ebx
EAX - 00 00 00 78
EDX - 00 00 00 00
CF - 0
OF - 0
Each of these problems gives "before" conditions and an instruction. Give the indicated "after" s...
I need help finding the input that wont result in explode_bomb in this assembly 08048cd3 <phase_4>: 8048cd3: 57 push %edi 8048cd4: 56 push %esi 8048cd5: 53 push %ebx 8048cd6: 83 ec 10 sub $0x10,%esp 8048cd9: 8b 74 24 20 mov 0x20(%esp),%esi 8048cdd: 89 34 24 mov %esi,(%esp) 8048ce0: e8 f6 03 00 00 call 80490db <string_length> 8048ce5: 83 c0 01 add $0x1,%eax 8048ce8: 89 04 24 mov %eax,(%esp) 8048ceb: e8 10 fb ff ff call 8048800 <malloc@plt> 8048cf0: 89 c7...