From 14d71a07dafa023ba83c2bdc6837d4ecc9de12ba Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 5 Oct 2025 22:07:40 -0700 Subject: hello works! yay Force-Push: yes Change-Id: I6c70991d16bd27da2b75ee0666203f043714a685 --- exit-code.S | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 exit-code.S (limited to 'exit-code.S') diff --git a/exit-code.S b/exit-code.S deleted file mode 100644 index 4c723e8..0000000 --- a/exit-code.S +++ /dev/null @@ -1,27 +0,0 @@ -/* - * This file was a very early example, written by consulting [1]. It was - * useful primarily to see how the GNU assembler handles these opcodes, to - * better understand the encoding. - * - * [1] https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html - * - * - * gcc -o quine -nostartfiles -nostdlib quine.S && ./quine ; echo $? - * - * or - * - * as -o quine.o quine.S && ld -s -o quine quine.o && ./quine; echo $? - * - * Can't use nasm, nasm is 32-bit only. - */ -.text - -.global _start - -_start: - //mov $60, %rax - //mov $42, %rdi - mov $60, %eax - mov $42, %edi - syscall - -- cgit 1.4.1