Skip to content

Commit 23af72c

Browse files
committed
Adds asm
1 parent eaabd69 commit 23af72c

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

asm/hello

1.03 KB
Binary file not shown.

asm/hello.asm

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
global _start
2+
3+
section .text
4+
_start:
5+
6+
mov rax, 0
7+
mov rdi, 0
8+
mov rsi, buf
9+
mov rdx, length
10+
syscall
11+
push rax
12+
13+
mov rax, 1
14+
mov rdi, 1
15+
mov rsi, buf
16+
pop rdx
17+
;mov rdx, length
18+
syscall
19+
20+
mov rax, 60
21+
mov rdi, 0
22+
syscall
23+
24+
section .data
25+
;msg: db 'Hello, ASM!',0x0A
26+
length: dd 16
27+
28+
section .bss
29+
buf: resb 16

asm/hello.o

1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)