3 * Code to detect the surrounding DOS/Windows environment and support routines to work with it
4 * (C) 2009-2012 Jonathan Campbell.
5 * Hackipedia DOS library.
7 * This code is licensed under the LGPL.
8 * <insert LGPL legal text here>
16 #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
26 #include <hw/cpu/cpu.h>
27 #include <hw/dos/dos.h>
28 #include <hw/dos/doswin.h>
29 #include <hw/dos/dosntvdm.h>
31 const char *windows_emulation_str(uint8_t e) {
33 case WINEMU_NONE: return "None";
34 case WINEMU_WINE: return "WINE (Wine Is Not an Emulator)";
41 const char *dos_flavor_str(uint8_t f) {
43 case DOS_FLAVOR_NONE: return "None";
44 case DOS_FLAVOR_MSDOS: return "MS-DOS";
45 case DOS_FLAVOR_FREEDOS: return "FreeDOS";