mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
pkg(nasm-2.15.5): Add nasm 2.15.5
This commit is contained in:
parent
a5ba0f5ee6
commit
05dc79d9f8
7 changed files with 90 additions and 0 deletions
18
packages/nasm/2.15.5/test.nasm64.asm
vendored
Normal file
18
packages/nasm/2.15.5/test.nasm64.asm
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue