Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

interrupt hokking

This is my code to hook the key board intr. .it doesnot work
why?
when i run it seems that the procedure executes itself but the sys hangs it self


assume cs:code

code segment


mov ax,0
mov ds,ax
mov es,ax


ADDR DD ?
NEW PROC FAR

mov ah,0ah
mov al,42h
mov bh,00h
mov cx,05h
int 10h

jmp far ptr addr
IRET
NEW ENDP



main:


MOV AX,CS
MOV DS,AX

MOV AX,3516H
INT 21H


MOV WORD PTR ADDR,BX
MOV WORD PTR ADDR+2,ES

MOV AX,2516h
MOV DX,OFFSET NEW
INT 21H

mov ah,4ch
int 21h
code ends
end main


Sign In or Register to comment.