📄 nanochess/bootOS/api/services

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

Service Calls Guide

Practical guide for using bootOS services.

String Output Pattern

print_string:
    mov al,[bx]
    test al,al
    jz .done
    int 0x22
    inc bx
    jmp print_string
.done:
    ret

File Operations

; Load file
push cs
pop ds
mov bx,filename
mov di,buffer
int 0x23
jc error

; Process data
; ...

; Save file
mov bx,outname
mov di,buffer
int 0x24

Related Documents