no message
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1312
This commit is contained in:
parent
7b27e666f2
commit
55591a56da
18 changed files with 246 additions and 41 deletions
|
@ -839,7 +839,7 @@ Bitu DPMI::RealModeCallback(void)
|
|||
reg_eip = RealOff(CALLBACK_RealPointer(callback.rmCallbackReturn));
|
||||
// call protected mode func
|
||||
SetVirtualIntFlag(false);
|
||||
SETFLAGBIT(IF,false);
|
||||
// SETFLAGBIT(IF,false);
|
||||
SETFLAGBIT(TF,false);
|
||||
CPU_Push32(flags.word);
|
||||
CPU_CALL(dpmi.client.bit32,dpmi.rmCallback[num].codeSelector,dpmi.rmCallback[num].codeOffset);
|
||||
|
@ -900,7 +900,7 @@ Bitu DPMI::CallRealIRETFrame(void)
|
|||
SegSet16(cs,RealSeg(CALLBACK_RealPointer(callback.rmIntFrameReturn)));
|
||||
reg_ip = RealOff(CALLBACK_RealPointer(callback.rmIntFrameReturn));
|
||||
SetVirtualIntFlag(false);
|
||||
SETFLAGBIT(IF,false);
|
||||
// SETFLAGBIT(IF,false);
|
||||
SETFLAGBIT(TF,false);
|
||||
CPU_CALL(false,newCS,newIP);
|
||||
return 0;
|
||||
|
|
|
@ -438,6 +438,7 @@ static Bit8u MemoryRegion(void) {
|
|||
|
||||
static Bitu INT67_Handler(void) {
|
||||
Bitu i;
|
||||
LOG(LOG_MISC,LOG_ERROR)("EMS: Call %04X %04X %04X %04X",reg_ax,reg_bx,reg_cx,reg_dx);
|
||||
switch (reg_ah) {
|
||||
case 0x40: /* Get Status */
|
||||
reg_ah=EMM_NO_ERROR;
|
||||
|
|
|
@ -107,6 +107,7 @@ static INLINE bool InvalidHandle(Bitu handle) {
|
|||
|
||||
Bitu XMS_QueryFreeMemory(Bit16u& largestFree, Bit16u& totalFree) {
|
||||
/* Scan the tree for free memory and find largest free block */
|
||||
|
||||
totalFree=(Bit16u)(MEM_FreeTotal()*4);
|
||||
largestFree=(Bit16u)(MEM_FreeLargest()*4);
|
||||
if (!totalFree) return XMS_OUT_OF_SPACE;
|
||||
|
@ -245,7 +246,7 @@ static bool multiplex_xms(void) {
|
|||
};
|
||||
|
||||
Bitu XMS_Handler(void) {
|
||||
// LOG(LOG_MISC,LOG_ERROR)("XMS: CALL %02X",reg_ah);
|
||||
LOG(LOG_MISC,LOG_ERROR)("XMS: CALL %02X",reg_ah);
|
||||
switch (reg_ah) {
|
||||
|
||||
case XMS_GET_VERSION: /* 00 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue