summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorPer Jessen <per@computer.org>2010-02-11 00:16:59 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2010-02-11 21:28:22 +0300
commit53252e0cc3d44a781643da3958060548695e457e (patch)
tree30cd18d5fe6a506e56d38a1d80f93db51ed39fe6 /preproc.c
parent7ce4250a630b69f0b2a8b50127e31f349e06dce3 (diff)
downloadnasm-53252e0cc3d44a781643da3958060548695e457e.tar.gz
nasm-53252e0cc3d44a781643da3958060548695e457e.tar.bz2
nasm-53252e0cc3d44a781643da3958060548695e457e.zip
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>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 45c0264..b5c95af 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,