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 - calling old INT problem (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 14.05.2012, 00:07

Here's a better one I came up with just now. Note that it takes 2 more bytes than your last suggestion, but importantly it correctly preserves the caller's interrupt flag. It also preserves their trace, direction, and overflow flags. Which happen to be the flags stored in the high byte of the flag word. Look for yourself:

1319:0100 55                push    bp
1319:0101 89E5              mov     bp, sp
1319:0103 50                push    ax
1319:0104 9F                lahf
1319:0105 886606            mov     [bp+06], ah
1319:0108 58                pop     ax
1319:0109 5D                pop     bp

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