Hi !
Again I must ask back: Do you want to make sure that the TSR that
provides the routine below _runs_ under DOSEMU or do you want
this routine to become _part_ of DOSEMU so that you no longer
need the TSR ?
In the first case I guess it should work right away without any
changes, shouldn�t it ? In the second you have to replace the
direct register access by accesses to the register structure
inside dosemu (this could mess up things badly, though). However,
I�m unfortunately not skilled enough to tell you how to do the
latter.
Sorry,
Karsten
> My doubt is how do I code, or call, that the
> callback routine in DOSEMU
> The example below, show the procedure in the TSR application service, which
> running on DOS. How
> would it look like converted for DOSEMU ?
>
> /*------------------------------
> Handle call back routine
> */
> void interrupt (*RotCmd) (void);
>
> void CallBackRot(void)
> {
> if (!Ptr->rotserv)
> return;
> RotCmd = Ptr->rotserv;
> _ES = FP_SEG (Ptr->Args); // _ES is real register of CPU
> _BX = FP_OFF (Ptr->Args);
> (*RotCmd) ();
> }