flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 05 Oct 2009, 19:02
I think you get the error in RET actually because with POP RDI you removed the return address from the stack.
I don't remember how the calling convention was but check with this: Code: ; remove pop rdi ;replace add eax, edi with this: add eax, [rsp+8] |
|||
![]() |
|
fpga 05 Oct 2009, 19:06
You are spot on!!!
Thanks very much I need to read up on this |
|||
![]() |
|
LocoDelAssembly 05 Oct 2009, 19:10
Take a look at this: http://www.x86-64.org/documentation/abi.pdf
|
|||
![]() |
|
fpga 05 Oct 2009, 19:35
I had no awareness
a) that the function return address was before the parameters on the stack, b) that rsp is the stack pointer c) or that +8 means +8 bytes ie the next 64 bit word on stack Thank you |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.