int86()??
Re:int86()??
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:
would become:
Simple no? You could easily make this function for your OS(If you're using the code to make one)
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);
Code: Select all
__asm__("mov ax, 0x00\n\t"
"int 0x10\n\t");