IF LOCAL is not implemented you can always try and use a STRUCTURE where you define the stacK layout in you PROC.
Code: |
|
STRUC frame_stru
local_1 dd ?
local_2 dd ?
local_3 dd ?
ebp dd ?
eip dd ?
arg_1 dd ?
arg_2 dd ?
ENDS
|
|
Then you can access local variables by name like this:
Code: |
|
mov eax,[ebp+frame_stru.local_1] ; or minus depending
|
|
It is an ancient technique that was used before LOCAL have been implemented. You can always fall back to it when in need.
LOCAL is internally implemented in MASM (not a user macro). Same is true for my own assembler: SOL_ASM. FASM implements it as an user macro AFAIK. GAS does not have it either way but i guess you can implement it this way.