We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62bbe6 commit 7568399Copy full SHA for 7568399
baby_asm/Makefile
@@ -0,0 +1,5 @@
1
+baby_asm: baby_asm.S
2
+ gcc baby_asm.S -s -nostartfiles -nostdlib -no-pie -o baby_asm
3
+
4
+clean:
5
+ $(RM) baby_asm
baby_asm/baby_asm
4.41 KB
baby_asm/baby_asm.S
@@ -0,0 +1,17 @@
+.intel_syntax noprefix
+.globl _start
+_start:
+ mov r8, 1
6
+ inc r8
7
+ add r8, 25
8
+ add r8, r8
9
+ imul r8, 10
10
+ # Ignore below, padding + cleaning up with exit(0) sycall
11
+ nop
12
13
14
15
+ mov rax, 60
16
+ xor rdi, rdi
17
+ syscall
0 commit comments