vga-logic-processor-examples/dpmi.h

19 lines
373 B
C

#ifndef __DPMI_H__
#define __DPMI_H__
#include <sys/types.h>
#pragma pack(push,1)
struct dpmiRealModeRegs {
uint32_t edi,esi,ebp,reserved;
uint32_t ebx,edx,ecx,eax;
uint16_t flags,es,ds,fs,gs,ip,cs,sp,ss;
};
#pragma paack(pop)
void *dpmiAllocateDOSMemory(int size);
void dpmiDeallocateDOSMemory();
void dpmiInt(int interruptNo, struct dpmiRealModeRegs *);
#endif