17 lines
218 B
NASM
17 lines
218 B
NASM
|
.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
|