作者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)