Hello,
I don´t know if union REGS <dos.h> is part of this group, but i have
a problem. At the moment i use turboc++lite and i don´t have reply
when i execute the question code. Only a black screen! Anyone help me?
What´s is wrong? This code return the DOS version.
#include <stdio.h>
#include <dos.h>
#include <conio.h> //use getch() e clrscr()
void main(void)
{
union REGS in_regs, out_regs;
in_regs.x.ax = 0x3000;
intdos(&in_regs ,&out_regs);
printf("Version %d.%d\n", out_regs.x.ax & 0xFF, out_regs.x.ax[color=blue][color=green]
>>8);[/color][/color]
}
Thx
B. Barros
I don´t know if union REGS <dos.h> is part of this group, but i have
a problem. At the moment i use turboc++lite and i don´t have reply
when i execute the question code. Only a black screen! Anyone help me?
What´s is wrong? This code return the DOS version.
#include <stdio.h>
#include <dos.h>
#include <conio.h> //use getch() e clrscr()
void main(void)
{
union REGS in_regs, out_regs;
in_regs.x.ax = 0x3000;
intdos(&in_regs ,&out_regs);
printf("Version %d.%d\n", out_regs.x.ax & 0xFF, out_regs.x.ax[color=blue][color=green]
>>8);[/color][/color]
}
Thx
B. Barros
Comment