Курсовая работа: Низькорівневе програмування контроллера клавіатури
@@End: pop DS
popa
iret
endp KeyboardInterrupt
PROC SetKeyboardInterrupt NEAR
pusha
push ES
mov AX,0
mov ES,AX
mov AX,[ES:9*4]
mov [OldKbdIntOffset],AX
mov ax,[ES:9*4+2]
mov [OldKbdIntSegment],AX
cli
mov AX,offset KeyboardInterrupt
mov [ES:9*4],AX
mov AX,CS
mov [ES:9*4+2],AX
sti
pop ES
popa
ret
ENDP SetKeyboardInterrupt
PROC RestoreOldKeyboardInterrupt NEAR
pusha
push ES
mov AX,0
mov ES,AX
cli