RE: Suggestion for 2.3

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 30 Apr 2001, at 18:02, 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

Well, like i said, i did it in Turbo Pascal, and didn't do tiny model, and i
didn't
hook those ints you listed. And even tho it was a device driver, i didn't put it
in the device driver chain, that's how i make it re-configureable *while it was 
running*. 

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu