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 #if TARGET_MSDOS == 32
32 void *dpmi_phys_addr_map(uint32_t phys,uint32_t size) {
38 mov bx,word ptr phys+2
40 mov si,word ptr size+2
44 mov word ptr retv+2,bx
51 void dpmi_phys_addr_free(void *base) {
55 mov bx,word ptr base+2