dpmi_int function -> interruptx

DOS specific questions.
Post Reply
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

dpmi_int function -> interruptx

Post by Cpcdos »

Hello,
for "emulate" interruptx of QuickBasic i use

Code: Select all

TYPE RegTypeX AS __dpmi_regs
#define INTERRUPTX(v,r) __dpmi_int( v, @r )
but dpmi_int function use 2 arguments
in quickbasic, there are 3

Code: Select all

interruptx(intnum AS INTEGER,inreg AS Registers, outreg AS Registers)
how resolve this ?

Thank

ps:
i have read this
https://courses.engr.illinois.edu/ece39 ... ulate.html
i not found a solution
marcov
Posts: 3455
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: dpmi_int function -> interruptx

Post by marcov »

There is no need for two "register" arguments. The same record is used to pass the initial parameters, and get the modified ones back.

Why QB used two sets of registers , I have no idea.
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Re: dpmi_int function -> interruptx

Post by Cpcdos »

Okay thank you
i have translated in "asm" quote and this worked :-)

Best regards
Post Reply