9086/boot_code/dos_layer.asm

17 lines
218 B
NASM
Raw Permalink Normal View History

2023-03-14 07:20:30 +00:00
.ORG 0x84 ; INT 21
DW 0xFFFF ; Code Segment
DW PRINT_INT_HANDLE ; Program Counter
PRINT_INT_HANDLE:
push AX
CMP AH,#0x02
jz PRINT_CHAR
pop AX
iret
PRINT_CHAR:
MOV AL,DL
out byte #0xA5
POP AX
iret