首页 > 解决方案 > x86 Assembly - Which value is in ebx?

问题描述

mov eax, 47
push eax
mov eax, 11
push eax
pop ebx

Which value is located in ebx?

I'm not really sure what should be in ebx, probably a random value? On the stack, there should be (from high to low) 47, 11 but we know nothing about ebx. Is this just a trick question?

标签: assemblyx86

解决方案


This will be easy if using tools called rappel

So, what the value in ebx ? value in ebx is 11 or 0b in hexadecimal number

eax: 0x0000000b ebx: 0x0000000b ecx: 0x00000000 edx: 0x00000000
esi: 0x00000000 edi: 0x00000000
eip: 0x00400002 esp: 0xbff7f1ac ebp: 0x00000000
flags: 0x00000202 [cf:0, zf:0, of:0, sf:0, pf:0, af:0, df:0]

推荐阅读