flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 18 Jul 2006, 16:21
right.
EIP is not general-purpose register, and you can't directly access it. ESP is pointer to top of stack, when it's value is changed "push", "call", "ret" etc. instructions won't work EBP is used as frame pointer in procedures, you can use it yourself, but not inside "proc" - declared procedure. i suggest not to use it unless you know what you are doing. |
|||
![]() |
|
Reverend 19 Jul 2006, 19:00
The thread is in 'Windows' section so remember that you have to preserve EBX, EDI and ESI. Push them, use in any way you want and pop them to return their values.
|
|||
![]() |
|
vid 19 Jul 2006, 22:05
Reverend: you forgot EBP... there are so called "leaf" procs which don't have stack frame even in "good" win32 code
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.