9086/boot_code/dos_layer.asm

25 lines
238 B
NASM
Raw Normal View History

2023-03-14 07:20:30 +00:00
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
INIT_INT_VECT_TABLE:
push AX
push DI
MOV DI,#0x0084
MOV AX,#0xFFFF
STOSW
MOV AX,#PRINT_INT_HANDLE
STOSW
POP DI
POP AX
RET