Archived
1
0
This repository has been archived on 2025-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
asm_libs/examples/HWA/main.asm

34 lines
329 B
NASM
Raw Normal View History

2022-11-06 13:51:51 +03:00
format ELF
public _start
extrn print.int
extrn print.bin
extrn print.str
extrn print.nl
extrn exit
macro nl {
2022-11-06 18:21:21 +03:00
call print.nl
2022-11-06 13:51:51 +03:00
}
section '.strtab'
str1 db "Hello world!", 0
section '.text' executable
_start:
2022-11-06 18:21:21 +03:00
push dword 123
call print.int
nl
2022-11-06 13:51:51 +03:00
2022-11-06 18:21:21 +03:00
push dword 123
call print.bin
nl
2022-11-06 13:51:51 +03:00
2022-11-06 18:21:21 +03:00
push str1
call print.str
nl
2022-11-06 13:51:51 +03:00
2022-11-06 18:21:21 +03:00
call exit