RE: Suggestion for 2.3
- Posted by Brian Broker <bkb at cnw.com> Apr 30, 2001
- 428 views
Whoah... I certainly wasn't thinking of something *that* involved. I will probably experiment with simpler ideas and let everybody know how it goes... -- Brian sephiroth _ wrote: > > Kat wrote: > > Unless you translate it to C and then compile it. Surely you can find a > > dos C > > compiler that you can drop the translated code into? > > you probably could, but not many C compilers can make TSR's from source > code. here's what making a TSR involves: > > 1. write some code and hook it to int 0x1c or 0x8(for being called > regularly), 0x9(for being called on every keypress), or 0x28(for being > called when DOS is idle) > 2. make that code CAPABLE OF RESTORING ALL REGISTERS. any destroyed > registers could mean disaster > > so you can't simply write some C code on the fly and hook it to an > interrupt. it has to be specially coded. also, it must be coded in the > tiny model to make it work properly, and you'll need a C compiler > capable of inserting assembly so you could insert a pusha at the > beginning and a popa at the end > >