hello world test
This commit is contained in:
parent
27bce83c5f
commit
06fca94a96
3 changed files with 16 additions and 0 deletions
BIN
helloworld/hello
Executable file
BIN
helloworld/hello
Executable file
Binary file not shown.
16
helloworld/hello.asm
Normal file
16
helloworld/hello.asm
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
section .data
|
||||||
|
text db "Hello World",10
|
||||||
|
|
||||||
|
section .text
|
||||||
|
global _start
|
||||||
|
|
||||||
|
_start:
|
||||||
|
mov rax, 1
|
||||||
|
mov rdi, 1
|
||||||
|
mov rsi, text
|
||||||
|
mov rdx, 14
|
||||||
|
syscall
|
||||||
|
|
||||||
|
mov rax, 60
|
||||||
|
mov edi, 0
|
||||||
|
syscall
|
BIN
helloworld/hello.o
Normal file
BIN
helloworld/hello.o
Normal file
Binary file not shown.
Loading…
Reference in a new issue