These files are used to start DOSEMU as well as hold globally called functions and global vars.
These are the functions defined in dos.c.
Arguments are:
These are the functions defined in emu.c.
call the emulate function by way of the dll headers. Always make sure that this line is the first of emu.c and link emu.o as the first object file to the lib
The IRQ numbers to monitor are taken from config.sillyint, each bit corresponding to one IRQ. The higher 16 bit are defining the use of SIGIO
Arguments are:
DOSEMU must not work within the 1 meg DOS limit, so start of code is loaded at a higher address, at some time this could conflict with other shared libs. If DOSEMU is compiled statically (without shared libs), and org instruction is used to provide the jump above 1 meg.
These are the functions defined in include/emu.h.
Arguments are:
The `vm86_struct` is used to pass all the necessary status/registers to DOSEMU when running in vm86 mode.
-----
We assume system call restarting... under linux 0.99pl8 and earlier, this was the default. SA_RESTART was defined in 0.99pl8 to explicitly request restarting (and thus does nothing). However, if this ever changes, I want to be safe
-----
DOSEMU keeps system wide configuration status in a structure called config.
-----
The var `fatalerr` can be given a true value at any time to have DOSEMU exit on the next return from vm86 mode.