View Full Version: some notes

dex >>DexOS >>some notes


redaman- 06-17-2006
some notes
HI all I work in the internals of :reda4 languaje and perhaps you can help me I try some changes in handling the keyboard and the mouse, for now, the lang is in a simulator in win and the event dispacher only triger a vector of execution (in reda4) then... I need change the interrupt service in Dex4U , I can change the source code of kernel for make the interrupts what I need but i prefer not modify the kernel and perhaps some system call can modify this vectors. a good new aproach for interrupts I found in ... http://www.ultratechnology.com/blog.htm other point.. why need load a table of name system calls (why not define a place static) or ... why not use the assembly INT for call this routines ? pablo (6-0) 8)

Dex- 06-17-2006

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:

redaman- 06-17-2006

ok, I reformulate this point. why you code this mov ah,9 ----> call print int 40h when you can make a int table int 10 <- print int 12 <-- gotoxy .. .. .. and then when 1 system table for the programer be more simple. I don't know how int are posible...but 256 sure wasting 8 bytes for put a jump instruction.....32 system calll I read again your systems call, mi interface is 20 words MSEC (milliseconds) TIME (h m s) DATE (y m d) RESET (this shoutdown) RUN (this run another program) Vesa like.. BPP (for now a constant in 32) SW (screen width) SH (screen height) FRAMEV (adrees of video memory(buffer really)) REDRAW (copy buffer) Keyboard and Mouse UPDATE (event listener... I need erase this word... sure this word disapear) >KEY ( assign triger event to every key) START! (assign trigger event for clik the mouse) MOTION! (assign trigger event for motion mouse) END! (assign trigger event for unclik the mouse) DIR (path of disk) FILE (every file in disk) LOAD (load from disk) SAVE (save to disk) MEM (address of start free memory) I not have yet words for SOUND and NET but not much Thanks for the reference to MOUSE IRQ, I sure I can make the TEST, when work somthing i post here. PS: good ear your !!!! (dios te oiga!!!) :roll:

Dex- 06-17-2006

We had a vote to which sys to use and this is the sys that won :wink: http://dex.7.forumer.com/viewtopic.php?t=44 Look forward to what you come up with :)

redaman- 06-17-2006

sorry, I not read this topic... very well, I post my comment in

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.