From 53252e0cc3d44a781643da3958060548695e457e Mon Sep 17 00:00:00 2001 From: Per Jessen Date: Thu, 11 Feb 2010 00:16:59 +0300 Subject: [PATCH] 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 Signed-off-by: Cyrill Gorcunov --- preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preproc.c b/preproc.c index 45c02647..b5c95af4 100644 --- a/preproc.c +++ b/preproc.c @@ -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, -- 2.11.4.GIT