;[]-------------------------------------------------------------------------[]
;|	Program name: 2_2_3.ASM                                              |
;|	Image   file: 2_2_3.COM                                              |
;|	Note        : The basic TSR program.                                 |
;|                    It can be triggered by INT 05H.                        |
;[]-------------------------------------------------------------------------[]


cseg	segment
	assume	cs:cseg,ds:cseg
	org	100H
start:
	jmp	initialize

;---------------------------------------

new_int05	proc	far

	sti				; Enable interrupt

;
; Your program can be inserted here.
;

	iret				; Use IRET to return

new_int05	endp

;---------------------------------------

initialize:

	mov	dx,offset new_int05	; Set the INT 05H interrupt vector
	mov	al,05H
	mov	ah,25H
	int	21H

	mov	dx,offset initialize	; Terminate and stay resident
	int	27H

cseg	ends
	end	start
