25 lines
238 B
NASM
25 lines
238 B
NASM
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
|