Question: can a __interrupt routine set ax or al register on return #856
-
for a reverse engineering project i need to implement two interrupt routines that return values through ax and al register im not able to change the code that calls the interrupt - its still the original code i want to reverse
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
OW uses two forms of interrupt routines. First one which you use just now and second form which enable manipulate with entry/return registers. It is form with parameter
|
Beta Was this translation helpful? Give feedback.
-
_dos_setvect does not work with the INPACK parameter - can't find something that works in the reference |
Beta Was this translation helpful? Give feedback.
-
what _dos_setvect has with interrupt routines and its argument? |
Beta Was this translation helpful? Give feedback.
-
_dos_setvect wants a but my interrupt_24h has one parameter - should i just cast?
or does that not work |
Beta Was this translation helpful? Give feedback.
-
You must use correct type below is fully compilable sample, no errors
and disassembled code
|
Beta Was this translation helpful? Give feedback.
-
sorry i forgot to write that im using "wcl.exe -bt=dos starter.cpp" to build so its the C, C++ difference here your sample build with
|
Beta Was this translation helpful? Give feedback.
-
it fixes simple cast |
Beta Was this translation helpful? Give feedback.
it fixes simple cast
_dos_setvect(0x24, (void __interrupt (__far *)( void ))interrupt_24h); // fails