![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 28
Rep Power: 0
![]() |
Can anyone tell me wha next code doesn't compile:
#include <stdio.h>
#include <dos.h>
union REGS regs;
main(argc, argv)
int argc;
char *argv[];
{
if (argc == 2)
modeset(atoi(argv[1]));
if (argc != 2)
printf("EGA Mode is %d", modeget());
}
modeset(mode)
int mode;
{
regs.h.a1 = mode;
regs.h.ah = 0;
int86(0x10, ®s, ®s);
}
modeget(){
regs.h.a1 = 0;
regs.h.ah = 0x0f;
int86(0x10, ®s, ®s);
return(regs.h.a1);
}![]() |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|