Created
November 30, 2015 21:38
-
-
Save mwhudson/505e53d5f24a22764ed2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime.exit looks like this: | |
TEXT runtime·exit(SB),NOSPLIT,$0 | |
MOVL $252, AX // syscall number | |
MOVL code+0(FP), BX | |
INVOKE_SYSCALL | |
INT $3 // not reached | |
RET | |
asmfmt writes this as: | |
TEXT runtime·exit(SB), NOSPLIT, $0 | |
MOVL $252, AX // syscall number | |
MOVL code+0(FP), BX | |
INVOKE_SYSCALL | |
INT $3 // not reached | |
RET | |
but I think: | |
TEXT runtime·exit(SB), NOSPLIT, $0 | |
MOVL $252, AX // syscall number | |
MOVL code+0(FP), BX | |
INVOKE_SYSCALL | |
INT $3 // not reached | |
RET | |
is better. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you intend to have a tab after
MOVL
on line 22?