piston/packages/nasm/2.15.5/test.nasm64.asm

18 lines
251 B
NASM
Raw Permalink Normal View History

2021-03-13 13:04:46 +01:00
SECTION .data
good: db "OK", 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