int86()??

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gtsphere

int86()??

Post 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 ???
Warmaster199

Re:int86()??

Post 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)
Post Reply