Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

indirect far jmp (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 11.05.2012, 22:31

> I placed old vector at INT 85h, I'm not sure if it's safe to call int from
> another int, I don't want to mess up something. Also it increase stack
> usage, probably not problem. And I have to change ISR because it will
> return back instead of case FAR JMP... (it's INT 13h handler hook)

It's OK to call one INT from within another -- that happens all the time. You just need to be sure there aren't going to be any reentrancy issues. So, if you're vector address is stored at INT 13h in the IVT and the old INT 13h vector is stored at INT 85h, you can just issue an INT 85h. But, it will be processed as a (INT) CALL, not a JMP.

That being said, what you're doing is probably not a good idea -- using the IVT as storage space for some of your program's internal data. I'll rant one more time about AMIS here, which is what I think you should be doing instead.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum