fix nasm test

This commit is contained in:
Brian Seymour 2021-01-22 02:48:39 -06:00
parent 32452894c5
commit 014ddb3559
1 changed files with 12 additions and 12 deletions

View File

@ -1,18 +1,18 @@
SECTION .data
good: db "good", 0x0a, 0x0
txtlen: equ $ - good
good: db "good", 0x0
txtlen: equ $ - good
SECTION .text
GLOBAL _start
_start:
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall