📄 nanochess/bootOS/user-guide/programming

File: programming.md | Updated: 11/18/2025

Creating Programs for bootOS

Guide to writing programs for bootOS.

Basic Structure

    cpu 8086
    org 0x7c00

    ; Your code here

    int 0x20        ; Exit

Hello World

    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

Building

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.

Related Documents