Hello, I have a question with accessing stack variables - I am using NASM. Here is what I did on the calling side:
push msg ; msg is a null-terminated string
call print
add esp, 4
And for the callee:
print:
mov si, [esp-4]
; more code...
For some reason, esp-4 doesn't seem to hold the address of msg?
push msg ; msg is a null-terminated string
call print
add esp, 4
And for the callee:
print:
mov si, [esp-4]
; more code...
For some reason, esp-4 doesn't seem to hold the address of msg?