assembly - 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?
解决方案
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]
推荐阅读
- nginx - 如何在 Kubernetes 上访问简单的 nginx 部署?
- vhdl - vhdl 进程中的顺序语句是如何合成的?
- javascript - 使用 html js 或 reactjs 框架自动读取本地文件
- java - 有没有办法只使recyclerview中的项目透明?
- php - 两个字段等于一个的 SQL JOIN 语句 [CodeIgniter]
- strapi - Strapi 中的完整媒体 URL
- java - 我怎么不能用新信息更新我的用户资料?
- html - Firefox 插件:输入 type=“color” 关闭 Firefox 上的插件弹出窗口
- c++ - constexpr 的可变长度数组错误
- python - 如何使用 cloudinary API 下载文件?