File: interrupts.md | Updated: 11/18/2025
Complete reference for all bootOS interrupt services.
Purpose: Return control to bootOS
Parameters: None
Returns: Does not return
Example:
int 0x20 ; Exit to OS
Purpose: Read keyboard with echo
Returns: AL = ASCII key
Example:
int 0x21 ; Read key into AL
Purpose: Display character
Parameters: AL = character
Example:
mov al,'A'
int 0x22 ; Print 'A'
Purpose: Load file from disk
Parameters:
Returns: CF = 0 (success) or 1 (error)
Example:
mov bx,filename
mov di,buffer
int 0x23
jc error
Purpose: Save file to disk
Parameters:
Returns: CF = 0 (success) or 1 (error)
Purpose: Delete file
Parameters: DS:BX = Filename
Returns: CF = 0 (success) or 1 (error)