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 RayeR Homepage, CZ, 13.05.2012, 17:15

> In general, I pass the entire original callers flags register, unchanged,
> to the old interrupt handler (whether I CALL it or JMP to it). I don't
> assume that the only thing that matters is one or two of the flags (like CF
> or ZF). In particular, modifying the Interrupt Flag or Direction flag can
> cause all kinds of problems, though modifying any flag other than the
> one(s) used to pass parameter(s) as defined by the API are potentially
> disastrous.

Well I did it this way:


INT     OLD_INT13H
push ax
pushf
pop ax
add sp,byte 8
push ax
sub sp,byte 6
pop ax
IRET


So all regs and flags are preserved but this is also +3 bytes increase size like above cm's code :P Damn it...

---
DOS gives me freedom to unlimited HW access.

 

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