This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
nasm -o fork_exec_wait_exit.o -f elf64 fork_exec_wait_exit.nasm | |
ld -e _start --stats -o fork_exec_wait_exit fork_exec_wait_exit.o | |
run: build | |
./fork_exec_wait_exit | |
clean: | |
rm -rf *.o fork_exec_wait_exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;CALL scan_num ; CX. | |
;CALL pthis | |
;DB 'A string', 0 | |
;CALL print_num ; AX. | |
include 'emu8086.inc' | |
ORG 100h | |
jmp start | |
value dw ? | |
digits dw ?,?,?,? | |
result dw 0 |