diff options
author | Irene Knapp <ireneista@irenes.space> | 2025-10-11 18:50:36 -0700 |
---|---|---|
committer | Irene Knapp <ireneista@irenes.space> | 2025-10-11 18:50:36 -0700 |
commit | e6048584116fbc1ea0a53298b2807cc9b7d8c4d0 (patch) | |
tree | 03087454f93bca68572a4c2abcf9b0a9308ca10b | |
parent | 4ccde781d12f3aa416aaa2f0f57de29d6e2f062b (diff) |
write better comments in exit-code.gnu.asm
as part of the process of not having to think about it anymore now that it has served its purpose Force-Push: yes Change-Id: I8f39548fcd3aa08e6415a82b8b7452620ba9c0e5
-rw-r--r-- | exit-code.gnu.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/exit-code.gnu.asm b/exit-code.gnu.asm index 4c723e8..48b7e62 100644 --- a/exit-code.gnu.asm +++ b/exit-code.gnu.asm @@ -6,21 +6,23 @@ * [1] https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html * * - * gcc -o quine -nostartfiles -nostdlib quine.S && ./quine ; echo $? + * gcc -o exit-code -nostartfiles -nostdlib exit-code.gnu.asm && ./exit-code ; echo $? * * or * - * as -o quine.o quine.S && ld -s -o quine quine.o && ./quine; echo $? + * as -o exit-code.o exit-code.gnu.asm && ld -s -o exit-code exit-code.o && ./exit-code; echo $? * * Can't use nasm, nasm is 32-bit only. + * + * Since you get a nice clean file, you can then do: + * + * objdump --disassemble exit-code */ .text .global _start _start: - //mov $60, %rax - //mov $42, %rdi mov $60, %eax mov $42, %edi syscall |