mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-19 18:00:23 +08:00
preproc.c: Use 16 byte offset in "flat64" stack model
The first argument passed on stack with "flat64" stack model (stack frame with base pointer) should be pointed by [rbp + 16]. Signed-off-by: Per Jessen <per@computer.org> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
7ce4250a63
commit
53252e0cc3
@ -2150,7 +2150,7 @@ static int do_directive(Token * tline)
|
||||
/* All subsequent ARG directives are for a 64-bit stack */
|
||||
StackSize = 8;
|
||||
StackPointer = "rbp";
|
||||
ArgOffset = 8;
|
||||
ArgOffset = 16;
|
||||
LocalOffset = 0;
|
||||
} else if (nasm_stricmp(tline->text, "large") == 0) {
|
||||
/* All subsequent ARG directives are for a 16-bit stack,
|
||||
|
Loading…
x
Reference in New Issue
Block a user