feat: hello_world
This commit is contained in:
parent
23c3689f26
commit
bc03da310d
2 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
16
001-hello_world.s
Normal file
16
001-hello_world.s
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
.global _start
|
||||||
|
.intel_syntax noprefix
|
||||||
|
|
||||||
|
_start:
|
||||||
|
mov rax, 1
|
||||||
|
mov rdi, 1
|
||||||
|
lea rsi, [hello_world]
|
||||||
|
mov rdx, 13
|
||||||
|
syscall
|
||||||
|
|
||||||
|
//exit
|
||||||
|
mov rax, 60
|
||||||
|
syscall
|
||||||
|
|
||||||
|
hello_world:
|
||||||
|
.asciz "Hello World\n"
|
Loading…
Add table
Add a link
Reference in a new issue