Bernd Blaauw escribiÃ:

Arkady,
is the auto-loadhigh part of Cutemouse difficult to integrate into other programs?
I'm thinking about FreeCOM and KEYB. not DISPLAY, as that will become a driver file anyway.

Unless I am wrong, no big deal here, would be a question of creating a UMB MCB, and copy the resident code/data there.
The fact that it works depends greatly in the segment registers being used correctly. I have cleaned this up in this first rewrite version, but there's still something that I'd need before doing this.
First, the resident code is fully in assembler, EXCEPT for the return instructions. The resident procedures are of the form:
===
procedure XXX; assembler;
asm
...
end;
===
whenever I call them from other places, or store their addresses (in Pascal pointers are always far), I have to declare them far.
However, I have manually tried to place RET instructions and making calls using only offsets just to see how it feels, and I have noticed that it crashes.
So in order to get more control, I'd like to rewrite the whole of the resident part as a chunk in NASM and try to link. But this will not come soon in time.
BTW, as I don't want to waste any single byte and mess with linker/code placement (I still ignore if {$L directive will link object code IN THE SAME PLACE where it appears), perhaps turning that all into assembler and creating other MCBs to place the resident stuff, will happen at the same time. No sooner than KEYB2 pre2.


Aitor


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to