[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNTlib - new functions



Petr Stehlik wrote:
> 
> On Tue, 05 Jan 1999 09:19:01 +0100, Julian F. Reschke wrote:
> 
> JFR>> You know, writting the file name as it is (say "HELLO WORLD") causes
> JFR>> very bad things to your directory structure
> 
> JFR>It should be fixed where it´s broken, not in the library. So I would
> JFR>prefer to see a TSR hooking into GEMDOS
> 
> Yes, this would be a general and proper solution. But it would force
> people to load yet another TSR and it would probably collide with
> some other GEMDOS extension out there. But if spreaded with source code
> and well documented it might become a nice GDIALOG, maybe.
> 
> Is it possible to write _easily_ a TSR for fixing GEMDOS in GCC? (I´ve
> written the algorithm for fixing the filenames in C and I would be lazy
> to rewrite it to asm). What are the general rules for writting TRAP
> handlers and TSRs in GCC?

This shouldn't be a problem. You just have to write the hook itself
in assembler code. You can then call the conversion function written
in C.

Regards, jr