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 ecm Homepage E-mail, Düsseldorf, Germany, 12.05.2012, 01:27

> 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]

That doesn't seem to have any advantages over just executing the corresponding int opcode? Additionally, as opposed to the int instruction, this one needs a segment register (in your example, ss) pointing to the IVT area again. (Of course the pushf, call far (or pushf, push cs, call to where a jmp far is) sequence is useful when calling an interrupt handler that isn't actually stored in the IVT.)

> 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

Hahah~ (You really shouldn't use the stack at 10000h though.)

---
l

 

Complete thread:

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