Page 1 of 1
int86()??
Posted: Sat Sep 28, 2002 5:59 pm
by gtsphere
is anyone able to use this function in DJGPP? I get errors saying undefined function, but its in hte libraries... this is such a dumb problem, lol ???
Re:int86()??
Posted: Sat Sep 28, 2002 9:31 pm
by Warmaster199
If you are making an OS, you need to create your own int86(); function.
Remember that in a protected mode environment, you cannot use int86(); without a v86 handler installed. If you are making a LINUX program, int86(); will not work. It's DOS/Windows/OS2 only. Use assembler code instead... example:
Code: Select all
union REGS i;
i.x.ax = 0x00;
int86(0x10,&i,&i);
would become:
Code: Select all
__asm__("mov ax, 0x00\n\t"
"int 0x10\n\t");
Simple no? You could easily make this function for your OS(If you're using the code to make one)