Hi, If i understand what you want to do, this module may help, as it demos hooking into the key board, if it does do what you want, let me know and i will add a mouse IRQ hook up.
http://jas2o.forthworks.com/dexforum/index.php?topic=83.0
Next you can get the address of the call table and call it directly if you want to, but too me it is much more convenient to call function by a name, so you know what the function does, rather than a address + a number *4 etc.
As for int's, Dex4u has a set of ints (int 40h), you can also use, here is a hello world! example:
use32 ; we want 32bit addressing
ORG 0x200000 ; where our program is loaded to
jmp start ; jump to the start of program.
db 'DEX1' ; Dex4u checks for this, to make shore it a valid Dex4u file.
;----------------------------------------------------;
; Start of program. ;
;----------------------------------------------------;
start:
mov ax,18h ; load ax nonlinear data desetor
mov ds,ax ; move it into DS and ES
mov es,ax ; as you can not move it directly.
mov esi,Msg1 ; Move offset to string
mov ah,9 ; Call print function
int 40h
mov ah,02h ; Wait for keypress
int 40h
ret
Msg1 db 'Hello World!', 13, 0
Note: We have kept the function numbers the same as Dos, as far as possable.
Good luck.
PS: Your football team, will probly win the world cup :wink: