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 Arjay, 12.05.2012, 01:07

> > iirc rayer does some rom programming stuffs, maybe it's for that?
> Yes :)
No AMIS then ;-)

> OK I'll rewrite it to call old ISR via INT.
Depending on what it is you need to do you could also use a FAR CALL to simulate the INT call, e.g.

xor bp,bp
pushf
call FAR [BP+0084]


where 0084 is the int offset in the IVT, Int 21h in this case. Nasty trick but sometimes useful. Not an easy example to follow but this old short code of mine uses it:

N MSG2MARK.COM
E 0100  50 53 20 FF 41 43 41 44 41 4D 59 21 FF 24 FF 0D
E 0110  52 4A 1A C0 18 E4 53 5A 5B 33 ED 8E D5 C1 E2 08
E 0120  0D 00 52 80 EC 49 BC FD FF 9C FF 9E 84 00 E9 CF
E 0130  FE 47 52 45 45 54 49 4E 47 53 20 32 4D 41 52 4B

RCX
40

W

Q

 

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