File: programming.md | Updated: 11/18/2025
Guide to writing programs for bootOS.
cpu 8086
org 0x7c00
; Your code here
int 0x20 ; Exit
cpu 8086
org 0x7c00
start:
mov bx,message
loop:
mov al,[bx]
test al,al
jz done
int 0x22
inc bx
jmp loop
done:
int 0x20
message:
db "Hello, World!",0x0d,0x0a,0
nasm -f bin program.asm -o program.bin
xxd -p -c 16 program.bin > program.hex
Then use enter command in bootOS to input the hex.