Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. runtime.exit looks like this:
  2.  
  3. TEXT runtime·exit(SB),NOSPLIT,$0
  4. MOVL $252, AX // syscall number
  5. MOVL code+0(FP), BX
  6. INVOKE_SYSCALL
  7. INT $3 // not reached
  8. RET
  9.  
  10. asmfmt writes this as:
  11.  
  12. TEXT runtime·exit(SB), NOSPLIT, $0
  13. MOVL $252, AX // syscall number
  14. MOVL code+0(FP), BX
  15. INVOKE_SYSCALL
  16. INT $3 // not reached
  17. RET
  18.  
  19. but I think:
  20.  
  21. TEXT runtime·exit(SB), NOSPLIT, $0
  22. MOVL $252, AX // syscall number
  23. MOVL code+0(FP), BX
  24. INVOKE_SYSCALL
  25. INT $3 // not reached
  26. RET
  27.  
  28. is better.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement