作者DyingIce (玄冰)
看板PangSir
标题[问题] 有关区域变数的位址配置...
时间Tue Dec 14 17:47:35 2004
从上课的内容看来,
local variables 的 access,
似乎和 ebp 这个 register 有很大的关系.
就进入某个 procedure 时,
ebp 似乎是紧接着 returne address 的.
(i.e. loacal vairiables 接着在其後)
请问这种配置是种标准吗?
================
就在下有限的认知, 似乎...
ebp 就组合语言的指令来说,
似乎可以作基底定址.
(i.e. accessing ss:[ebp][esi/edi]+???)
也就是说和 ebx 的角色类似吧.
只是 ebx 是对"资料区段"(ds所指)的资料
而 ebp 是对"堆叠区段"(ss所指)的资料...
---
"Who are you?"
Allow us to introduce something...
To protect the world from devestation
To unite all peoples within our nation
To denounce the evils of truth and love
To extend our reach to the stars above
Jesse
James
Team Rocket, blast off at the speed of light
Surrender now or prepare to fight
Mewoth, That's Right!
---
"你是谁"
既然你诚心诚意的问了
我就大发慈悲的告诉你
为了防止世界被破坏
为了保护世界的和平
贯彻爱与真实的邪恶
可爱又迷人的反派角色
武藏
小次郎
我们俩个是穿梭在银河中的火箭队
白洞 白色的明天正在等着我们
喵,就是这样!
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.109.16.153
※ 编辑: DyingIce 来自: 140.109.16.153 (12/14 17:49)