x86アセンブリ言語で、メモリ内の変数の場所を特定できますか?
ここでは、メモリ内の X の場所を見つけようとしているので、その直後のアドレスに格納されている値を見つけることができます。
.686p
.model flat,stdcall
.stack 2048
.data
X byte "1234"
ExitProcess proto, exitcode:dword
.code
start:
mov ah, X;
;now how can I obtain the location of X in memory?
invoke ExitProcess, 0
end start ;what does the end statement do?