Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Protectmode handler called from realmode (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 12.08.2010, 21:24

> add word ptr es:[edi+2Eh],4 {or "6"?}     {sets SP}

Did you try 6 already? Should be right. Also, you should restore the flags too.

> Set_rm_interrupt($13,new13h);
> {restores normal state}

Needs to use old13h.

With your current code, it might be a problem that other Int13 calls will get to your handler too. Instead of simulating an iret, you should chain to the old RM Int13 handler. (Simply set cs and ip appropriately, instead of from the stack.)

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 284 users online (0 registered, 284 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum