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:
Per Jessen 2010-02-11 00:16:59 +03:00 committed by Cyrill Gorcunov
parent 7ce4250a63
commit 53252e0cc3

View File

@ -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,