Menu

#296 push and pop

v211
open
nobody
5
2013-12-20
2013-12-20
hierarch
No

32 bit:
push eax
invoke OutputDebugStringA,addr szTextA
pop eax
no error...

64 bit:
push rax
invoke OutputDebugStringA,addr szTextA
pop rax
run error...

Discussion

  • hierarch

    hierarch - 2013-12-20

    ...
    .const
    szTextA CHAR "jwasm",NULL
    .code
    ...
    push rax
    invoke OutputDebugStringA,addr szTextA
    pop rax

    invoke MessageBoxA,NULL,NULL,NULL,MB_OK
    

    ...

     
  • japheth

    japheth - 2013-12-20

    In 64-bit, you must be careful with push/pop if you used OPTION WIN64:2 in your source. See warning in the documentation for more details.

     

Log in to post a comment.