fix nasm test
This commit is contained in:
parent
32452894c5
commit
014ddb3559
|
@ -1,18 +1,18 @@
|
||||||
SECTION .data
|
SECTION .data
|
||||||
good: db "good", 0x0a, 0x0
|
good: db "good", 0x0
|
||||||
txtlen: equ $ - good
|
txtlen: equ $ - good
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
GLOBAL _start
|
GLOBAL _start
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
;sys_write
|
;sys_write
|
||||||
mov rax, 1
|
mov rax, 1
|
||||||
mov rdi, 1
|
mov rdi, 1
|
||||||
mov rsi, good
|
mov rsi, good
|
||||||
mov rdx, txtlen
|
mov rdx, txtlen
|
||||||
syscall
|
syscall
|
||||||
;sys_exit
|
;sys_exit
|
||||||
mov rax, 60
|
mov rax, 60
|
||||||
mov rdi, 0
|
mov rdi, 0
|
||||||
syscall
|
syscall
|
||||||
|
|
Loading…
Reference in New Issue