Hi,
I want to know how to interface with DOS/BIOS interrupts
e.g. INT10H,INT21H in VC++6.0 .
In older Borland compiler(v2.01) I know how to interface with
DOS/BIOS interrupts.e.g. following code was used:
#include<dos.h>
main()
{int ascii,scan;
union REGS i,o; /*i and o represent unions of type REGS*/
while(!kbhit());
i.h.ah=(some int value) /*to give input value*/
int86(22,&i,&o); /*fn int86 invokes interrupt 22*/
ascii=o.h.al; /*to get ascii value of key hited*/
scan=o.h.ah; /*to get scan value*/
}
Now same doesn't work in microsoft vc++6.0 or in
Borland command line 5.5 compiler.Because it doesn't
recognises REGS unoin.Also when I checked dos.h header file
I didn't found any REGS whereas in dos.h header file of Borland
2.01 compiler I found union REGS.
Can anyone tell what is correct code to interface with DOS/BIOS
routines in microsoft vc++6.0/borland5.5.Also do I need another
header file with dos.h. Please clarify.
Manmohan Singh.