From 2ba89b1b8e5df3686a6e0b641c8399e1632e0de2 Mon Sep 17 00:00:00 2001 From: Tijmen van Nesselrooij Date: Thu, 15 Aug 2019 19:06:33 +0200 Subject: [PATCH] Clarify comment segfault behaviour when absent --- x86_64/6_clib.asm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x86_64/6_clib.asm b/x86_64/6_clib.asm index 70f968c..b167d3c 100644 --- a/x86_64/6_clib.asm +++ b/x86_64/6_clib.asm @@ -29,6 +29,9 @@ main: ; This segfaults when moved below the line "jne .fail" ; Why? + ; Because it stores the float registers on the stack + ; as well. This doesn't seem to be particularly well + ; documented. sub rsp, 8 ; allocate 8 bytes = 2 integers cmp r12, 3 ; argc == 3