mirror of
https://github.com/janet-lang/janet
synced 2024-11-10 02:39:55 +00:00
18 lines
285 B
NASM
18 lines
285 B
NASM
|
BITS 64
|
||
|
|
||
|
;;;
|
||
|
;;; Code
|
||
|
;;;
|
||
|
mov rax, 1 ; write(
|
||
|
mov rdi, 1 ; STDOUT_FILENO,
|
||
|
lea rsi, [rel msg] ; msg,
|
||
|
mov rdx, msglen ; sizeof(msg)
|
||
|
syscall ; );
|
||
|
ret ; return;
|
||
|
|
||
|
;;;
|
||
|
;;; Constants
|
||
|
;;;
|
||
|
msg: db "Hello, world!", 10
|
||
|
msglen: equ $ - msg
|