updates for new logging system
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@695
This commit is contained in:
parent
dff67638e9
commit
f79eaaba75
57 changed files with 405 additions and 416 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -44,18 +44,18 @@ static Bitu INT1A_Handler(void) {
|
|||
case 0x02: /* GET REAL-TIME CLOCK TIME (AT,XT286,PS) */
|
||||
reg_dx=reg_cx=0;
|
||||
CALLBACK_SCF(false);
|
||||
LOG_WARN("INT1A:02:Faked RTC get time call");
|
||||
LOG(LOG_BIOS,"INT1A:02:Faked RTC get time call");
|
||||
break;
|
||||
case 0x04: /* GET REAL-TIME ClOCK DATA (AT,XT286,PS) */
|
||||
reg_dx=reg_cx=0;
|
||||
CALLBACK_SCF(false);
|
||||
LOG_WARN("INT1A:04:Faked RTC get date call");
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT1A:04:Faked RTC get date call");
|
||||
break;
|
||||
case 0x80: /* Pcjr Setup Sound Multiplexer */
|
||||
LOG_WARN("INT1A:80:Setup tandy sound multiplexer to %d",reg_al);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT1A:80:Setup tandy sound multiplexer to %d",reg_al);
|
||||
break;
|
||||
case 0x81: /* Tandy sound system checks */
|
||||
LOG_WARN("INT1A:81:Tandy DAC Check failing");
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT1A:81:Tandy DAC Check failing");
|
||||
break;
|
||||
/*
|
||||
INT 1A - Tandy 2500, Tandy 1000L series - DIGITAL SOUND - INSTALLATION CHECK
|
||||
|
@ -68,7 +68,7 @@ static Bitu INT1A_Handler(void) {
|
|||
clear on return, then call AH=84h"Tandy"
|
||||
*/
|
||||
default:
|
||||
LOG_WARN("INT1A:Undefined call %2X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT1A:Undefined call %2X",reg_ah);
|
||||
}
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
@ -96,7 +96,8 @@ static Bitu INT11_Handler(void) {
|
|||
internal modem installed (PC/Convertible)
|
||||
14-15 number of parallel ports installed
|
||||
*/
|
||||
reg_eax=0x104D;
|
||||
reg_ax=0x104D;
|
||||
LOG(LOG_BIOS,"INT11:Equipment list returned %X",reg_ax);
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
||||
|
@ -132,7 +133,7 @@ static Bitu INT12_Handler(void) {
|
|||
};
|
||||
|
||||
static Bitu INT17_Handler(void) {
|
||||
LOG_ERROR("INT17:Not supported call for bios printer support");
|
||||
LOG(LOG_BIOS,"INT17:Function %X",reg_ah);
|
||||
switch(reg_ah) {
|
||||
case 0x00: /* PRINTER: Write Character */
|
||||
reg_ah=1; /* Report a timeout */
|
||||
|
@ -146,7 +147,7 @@ static Bitu INT17_Handler(void) {
|
|||
E_Exit("Unhandled INT 17 call %2X",reg_ah);
|
||||
};
|
||||
return CBRET_NONE;
|
||||
};
|
||||
}
|
||||
|
||||
static void WaitFlagEvent(void) {
|
||||
PhysPt where=Real2Phys(mem_readd(BIOS_WAIT_FLAG_POINTER));
|
||||
|
@ -157,10 +158,10 @@ static void WaitFlagEvent(void) {
|
|||
static Bitu INT15_Handler(void) {
|
||||
switch (reg_ah) {
|
||||
case 0x06:
|
||||
LOG_WARN("Calling unkown int15 function 6");
|
||||
LOG(LOG_BIOS,"INT15 Unkown Function 6");
|
||||
break;
|
||||
case 0xC0: /* Get Configuration*/
|
||||
LOG_WARN("Request BIOS Configuration INT 15 C0");
|
||||
LOG(LOG_ERROR|LOG_BIOS,"Request BIOS Configuration INT 15 C0");
|
||||
CALLBACK_SCF(true);
|
||||
break;
|
||||
case 0x4f: /* BIOS - Keyboard intercept */
|
||||
|
@ -198,7 +199,7 @@ static Bitu INT15_Handler(void) {
|
|||
CALLBACK_SCF(true);
|
||||
}
|
||||
} else {
|
||||
LOG_WARN("INT15:84: Unknown Bios Joystick functionality.");
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT15:84:Unknown Bios Joystick functionality.");
|
||||
}
|
||||
break;
|
||||
case 0x86: /* BIOS - WAIT (AT,PS) */
|
||||
|
@ -220,18 +221,16 @@ static Bitu INT15_Handler(void) {
|
|||
reg_ah=0;
|
||||
break;
|
||||
case 0xc2: /* BIOS PS2 Pointing Device Support */
|
||||
case 0xc4: /* BIOS POS Programma option Select */
|
||||
/*
|
||||
Damn programs should use the mouse drivers
|
||||
So let's fail these calls
|
||||
*/
|
||||
CALLBACK_SCF(true);
|
||||
break;
|
||||
case 0xc4: /* BIOS POS Programma option Select */
|
||||
LOG_WARN("INT15:C4:Call for POS Function %2x",reg_al);
|
||||
LOG(LOG_BIOS,"INT15:Function %X called,bios mouse not supported",reg_ah);
|
||||
CALLBACK_SCF(true);
|
||||
break;
|
||||
default:
|
||||
LOG_WARN("INT15:Unknown call %2X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT15:Unknown call %2X",reg_ah);
|
||||
reg_ah=0x86;
|
||||
CALLBACK_SCF(false);
|
||||
}
|
||||
|
@ -242,7 +241,7 @@ static Bitu INT1_Single_Step(void) {
|
|||
static bool warned=false;
|
||||
if (!warned) {
|
||||
warned=true;
|
||||
LOG_WARN("INT 1:Single Step called");
|
||||
LOG(LOG_CPU,"INT 1:Single Step called");
|
||||
}
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -34,10 +34,10 @@ static Bitu INT13_SmallHandler(void) {
|
|||
case 0x0:
|
||||
reg_ah=0x00;
|
||||
CALLBACK_SCF(false);
|
||||
LOG_DEBUG("reset disk return succesfull");
|
||||
LOG(LOG_BIOS,"reset disk return succesfull");
|
||||
break;
|
||||
case 0x02: /* Read Disk Sectors */
|
||||
LOG_DEBUG("INT13:02:Read Disk Sectors not supported failing");
|
||||
LOG(LOG_BIOS,"INT13:02:Read Disk Sectors not supported failing");
|
||||
reg_ah=0x80;
|
||||
CALLBACK_SCF(true);
|
||||
break;
|
||||
|
@ -50,17 +50,17 @@ static Bitu INT13_SmallHandler(void) {
|
|||
reg_ah=0x80;
|
||||
CALLBACK_SCF(true);
|
||||
}
|
||||
LOG_DEBUG("INT 13:04 Verify sector used on %d, with result %d",reg_dl,reg_ah);
|
||||
LOG(LOG_BIOS,"INT 13:04 Verify sector used on %d, with result %d",reg_dl,reg_ah);
|
||||
break;
|
||||
|
||||
case 0x08: /* Get Drive Parameters */
|
||||
LOG_DEBUG("INT13:08:Get Drive parameters not supported failing");
|
||||
LOG(LOG_BIOS,"INT13:08:Get Drive parameters not supported failing");
|
||||
reg_ah=0xff;
|
||||
CALLBACK_SCF(true);
|
||||
break;
|
||||
case 0xff:
|
||||
default:
|
||||
LOG_WARN("Illegal int 13h call %2X Fail it",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"Illegal int 13h call %2X Fail it",reg_ah);
|
||||
reg_ah=0xff;
|
||||
CALLBACK_SCF(true);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -312,8 +312,7 @@ static Bitu INT16_Handler(void) {
|
|||
reg_al=mem_readb(BIOS_KEYBOARD_FLAGS1);
|
||||
break;
|
||||
case 0x03: /* SET TYPEMATIC RATE AND DELAY */
|
||||
//Have to implement this trhough SDL
|
||||
LOG_DEBUG("INT16:Unhandled Typematic Rate Call %2X",reg_al);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT16:Unhandled Typematic Rate Call %2X",reg_al);
|
||||
break;
|
||||
case 0x05: /* STORE KEYSTROKE IN KEYBOARD BUFFER */
|
||||
//TODO make add_key bool :)
|
||||
|
@ -326,10 +325,10 @@ static Bitu INT16_Handler(void) {
|
|||
break;
|
||||
case 0x55:
|
||||
/* Weird call used by some dos apps */
|
||||
LOG_DEBUG("INT16:55:Word TSR compatible call");
|
||||
LOG(LOG_BIOS,"INT16:55:Word TSR compatible call");
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("INT16:Unhandled call %02X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_BIOS,"INT16:Unhandled call %02X",reg_ah);
|
||||
break;
|
||||
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -67,7 +67,7 @@ public:
|
|||
device_EMM(){name="EMMXXXX0";}
|
||||
bool Read(Bit8u * data,Bit16u * size) { return false;}
|
||||
bool Write(Bit8u * data,Bit16u * size){
|
||||
LOG_DEBUG("Write to ems device");
|
||||
LOG(LOG_IOCTL,"EMS:Write to device");
|
||||
return false;
|
||||
}
|
||||
bool Seek(Bit32u * pos,Bit32u type){return false;}
|
||||
|
@ -367,7 +367,7 @@ static Bit8u EMM_PartialPageMapping(void) {
|
|||
reg_al=2+reg_bx*(2+sizeof(EMM_Mapping));
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
return EMM_FUNC_NOSUP;
|
||||
}
|
||||
return EMM_NO_ERROR;
|
||||
|
@ -391,7 +391,7 @@ static Bit8u HandleNameSearch(void) {
|
|||
reg_bx=EMM_MAX_HANDLES;
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
return EMM_FUNC_NOSUP;
|
||||
}
|
||||
return EMM_NO_ERROR;
|
||||
|
@ -417,7 +417,7 @@ static Bit8u MemoryRegion(void) {
|
|||
Bit8u buf_src[EMM_PAGE_SIZE];
|
||||
Bit8u buf_dest[EMM_PAGE_SIZE];
|
||||
if (reg_al>1) {
|
||||
LOG_ERROR("EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
return EMM_FUNC_NOSUP;
|
||||
}
|
||||
LoadMoveRegion(SegPhys(ds)+reg_si,region);
|
||||
|
@ -578,7 +578,7 @@ static Bitu INT67_Handler(void) {
|
|||
reg_ah=EMM_NO_ERROR;
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Call %2X Subfunction %2X not supported",reg_ah,reg_al);
|
||||
reg_ah=EMM_FUNC_NOSUP;
|
||||
break;
|
||||
}
|
||||
|
@ -615,7 +615,7 @@ static Bitu INT67_Handler(void) {
|
|||
break;
|
||||
case 0x53: // Set/Get Handlename
|
||||
if (reg_al==0x00) { // Get Name not supported
|
||||
LOG_ERROR("EMS:Get handle name not supported",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Get handle name not supported",reg_ah);
|
||||
reg_ah=EMM_FUNC_NOSUP;
|
||||
} else { // Set name, not supported but faked
|
||||
reg_ah=EMM_NO_ERROR;
|
||||
|
@ -626,7 +626,7 @@ static Bitu INT67_Handler(void) {
|
|||
break;
|
||||
case 0x57: /* Memory region */
|
||||
reg_ah=MemoryRegion();
|
||||
if (reg_ah) LOG_WARN("ems 57 move failed");
|
||||
if (reg_ah) LOG(LOG_ERROR,"EMS:Function 57 move failed");
|
||||
break;
|
||||
case 0x58: // Get mappable physical array address array
|
||||
if (reg_al==0x00) {
|
||||
|
@ -642,11 +642,12 @@ static Bitu INT67_Handler(void) {
|
|||
reg_ah = EMM_NO_ERROR;
|
||||
break;
|
||||
case 0xDE: /* VCPI Functions */
|
||||
LOG_ERROR("VCPI Functions %X not supported",reg_al);
|
||||
errorlevel=1;
|
||||
E_Exit("Protected mode not supported");
|
||||
reg_ah=EMM_FUNC_NOSUP;
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("EMS:Call %2X not supported",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_MISC,"EMS:Call %2X not supported",reg_ah);
|
||||
reg_ah=EMM_FUNC_NOSUP;
|
||||
break;
|
||||
}
|
||||
|
@ -660,7 +661,7 @@ void EMS_Init(Section* sec) {
|
|||
Bitu size=section->Get_int("emssize");
|
||||
if (!size) return;
|
||||
if ((size*(1024/16))>EMM_MAX_PAGES) {
|
||||
LOG_DEBUG("EMS Max size is %d",EMM_MAX_PAGES/(1024/16));
|
||||
LOG_MSG("EMS Max size is %d",EMM_MAX_PAGES/(1024/16));
|
||||
emm_page_count=EMM_MAX_PAGES;
|
||||
} else {
|
||||
emm_page_count=size*(1024/16);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -42,7 +42,7 @@ static Bitu INT10_Handler(void) {
|
|||
break;
|
||||
case 0x01: /* Set TextMode Cursor Shape */
|
||||
vga.internal.cursor=reg_cx; // maybe write some memory somewhere
|
||||
LOG_DEBUG("INT10:01:Set textmode cursor shape partially supported: %X",reg_cx);
|
||||
LOG(LOG_INT10,"INT10:01:Set textmode cursor shape partially supported: %X",reg_cx);
|
||||
break;
|
||||
case 0x02: /* Set Cursor Pos */
|
||||
//TODO Check some shit but not really usefull
|
||||
|
@ -54,11 +54,11 @@ static Bitu INT10_Handler(void) {
|
|||
reg_dh=CURSOR_POS_ROW(reg_bh);
|
||||
break;
|
||||
case 0x04: /* read light pen pos YEAH RIGHT */
|
||||
LOG_WARN("INT10:04:Ligthpen not supported");
|
||||
/* Light pen is not supported */
|
||||
reg_ah=0;
|
||||
break;
|
||||
case 0x05: /* Set Active Page */
|
||||
if (reg_al & 0x80) LOG_DEBUG("Func %x",reg_al);
|
||||
if (reg_al & 0x80) LOG(LOG_INT10,"Func %x",reg_al);
|
||||
else INT10_SetActivePage(reg_al);
|
||||
break;
|
||||
case 0x06: /* Scroll Up */
|
||||
|
@ -81,12 +81,10 @@ static Bitu INT10_Handler(void) {
|
|||
break;
|
||||
case 0x0B: /* Set Background/Border Colour & Set Palette*/
|
||||
if(!warned_int10_0b) {
|
||||
LOG_WARN("INT 10:0B Unsupported: Set Background/border colour & Set Pallete");
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function 0B Unsupported: Set Background/border colour & Set Pallete");
|
||||
warned_int10_0b=true;
|
||||
}
|
||||
break;
|
||||
E_Exit("Unsupported int 10 call %02X" ,reg_ah);
|
||||
break;
|
||||
case 0x0C: /* Write Graphics Pixel */
|
||||
INT10_PutPixel(reg_cx,reg_dx,reg_bh,reg_al);
|
||||
break;
|
||||
|
@ -137,7 +135,7 @@ static Bitu INT10_Handler(void) {
|
|||
INT10_GetDACBlock(reg_bx,reg_cx,SegPhys(es)+reg_dx);
|
||||
break;
|
||||
default:
|
||||
LOG_WARN("INT10:10:Unhandled EGA/VGA Palette Function %2X",reg_al);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function 10:Unhandled EGA/VGA Palette Function %2X",reg_al);
|
||||
}
|
||||
break;
|
||||
case 0x11: /* Character generator functions */
|
||||
|
@ -182,12 +180,12 @@ static Bitu INT10_Handler(void) {
|
|||
break;
|
||||
default:
|
||||
reg_cx=16;
|
||||
LOG_DEBUG("INT10:11:30 Request for font %2X",reg_bh);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Fucntion 11:30 Request for font %2X",reg_bh);
|
||||
}
|
||||
reg_dl=real_readb(BIOSMEM_SEG,BIOSMEM_NB_ROWS);
|
||||
break;
|
||||
default:
|
||||
LOG_WARN("INT10:11:Unsupported character generator call %2X",reg_al);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function 11:Unsupported character generator call %2X",reg_al);
|
||||
}
|
||||
break;
|
||||
case 0x12: /* alternate function select */
|
||||
|
@ -200,7 +198,7 @@ static Bitu INT10_Handler(void) {
|
|||
break;
|
||||
}
|
||||
default:
|
||||
LOG_WARN("Alternate functions select %2X not handled",reg_bl);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function 12:Call %2X not handled",reg_bl);
|
||||
}
|
||||
break;
|
||||
case 0x13: /* Write String */
|
||||
|
@ -217,7 +215,6 @@ static Bitu INT10_Handler(void) {
|
|||
reg_al=0x1A;
|
||||
break;
|
||||
}
|
||||
LOG_DEBUG("INT10:1A:Display Combination call %2X",reg_al);
|
||||
break;
|
||||
case 0x1B: /* functionality State Information */
|
||||
switch (reg_bx) {
|
||||
|
@ -226,15 +223,15 @@ static Bitu INT10_Handler(void) {
|
|||
reg_al=0x1B;
|
||||
break;
|
||||
default:
|
||||
LOG_WARN("INT10:1B:Unhandled call BX %2X",reg_bx);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function 1B:Unhandled call BX %2X",reg_bx);
|
||||
}
|
||||
break;
|
||||
case 0xff:
|
||||
if (!warned_ff) LOG_WARN("INT10:FF:Weird NC call");
|
||||
if (!warned_ff) LOG(LOG_INT10,"INT10:FF:Weird NC call");
|
||||
warned_ff=true;
|
||||
break;
|
||||
default:
|
||||
LOG_WARN("Unhandled INT 10 call %2X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_INT10,"Function %2X not supported",reg_ah);
|
||||
};
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
@ -273,8 +270,6 @@ void INT10_Init(Section* sec) {
|
|||
INT10_InitVGA();
|
||||
/* Setup the INT 10 vector */
|
||||
call_10=CALLBACK_Allocate();
|
||||
//TODO ERRORS ERRORS ERRORS
|
||||
if (call_10==-1) E_Exit("Error can't allocate Video Int 10 CallBack\n");
|
||||
CALLBACK_Setup(call_10,&INT10_Handler,CB_IRET);
|
||||
RealSetVec(0x10,CALLBACK_RealPointer(call_10));
|
||||
//Init the 0x40 segment and init the datastructures in the the video rom area
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -266,7 +266,7 @@ INLINE static void WriteChar(Bit16u col,Bit16u row,Bit8u page,Bit8u chr,Bit8u at
|
|||
fontdata=&int10_font_16[chr*16];
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("INT10:Teletype Illegal Font Height");
|
||||
LOG(LOG_ERROR|LOG_INT10,"Teletype Illegal Font Height");
|
||||
return;
|
||||
}
|
||||
x=8*col;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -259,7 +259,7 @@ void INT10_SetVideoMode(Bit8u mode) {
|
|||
mode&=mode & 127;
|
||||
line=FindVideoMode(mode);
|
||||
if (line==0xff) {
|
||||
LOG_ERROR("INT10:Trying to set non supported video mode %X",mode);
|
||||
LOG(LOG_ERROR|LOG_INT10,"INT10:Trying to set non supported video mode %X",mode);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -314,7 +314,7 @@ void INT10_SetVideoMode(Bit8u mode) {
|
|||
IO_Read(VGAREG_ACTL_RESET);
|
||||
|
||||
//Set the palette
|
||||
if ((modeset_ctl&0x08)==0x8) LOG_DEBUG("INT10:Mode set without palette");
|
||||
if ((modeset_ctl&0x08)==0x8) LOG(LOG_INT10,"Mode set without palette");
|
||||
if((modeset_ctl&0x08)==0) {
|
||||
// Set the PEL mask
|
||||
IO_Write(VGAREG_PEL_MASK,vga_modes[line].pelmask);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -86,7 +86,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
case CTEXT:
|
||||
case MTEXT:
|
||||
default:
|
||||
LOG_WARN("INT10:PutPixel Unhandled memory model %d",curmode->memmodel);
|
||||
LOG(LOG_ERROR|LOG_INT10,"PutPixel Unhandled memory model %d",curmode->memmodel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ void INT10_GetPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u * color) {
|
|||
case CTEXT:
|
||||
case MTEXT:
|
||||
default:
|
||||
LOG_WARN("INT10:GetPixel Unhanled memory model");
|
||||
LOG(LOG_ERROR|LOG_INT10,"GetPixel Unhandled memory model %d",curmode->memmodel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -567,7 +567,7 @@ static Bitu INT33_Handler(void) {
|
|||
reg_cl=0; /* Hmm ps2 irq dunno */
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("Mouse Function %2X",reg_ax);
|
||||
LOG(LOG_ERROR|LOG_MOUSE,"Mouse Function %2X",reg_ax);
|
||||
}
|
||||
return CBRET_NONE;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
* Copyright (C) 2002-2003 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -118,7 +118,7 @@ Bitu XMS_Handler(void) {
|
|||
case XMS_LOCAL_ENABLE_A20: /* 05 */
|
||||
case XMS_LOCAL_DISABLE_A20: /* 06 */
|
||||
case XMS_QUERY_A20: /* 07 */
|
||||
LOG_WARN("XMS:Unhandled call %2X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_MISC,"XMS:Unhandled call %2X",reg_ah);
|
||||
break;
|
||||
case XMS_QUERY_FREE_EXTENDED_MEMORY: /* 08 */
|
||||
/* Scan the tree for free memory and find largest free block */
|
||||
|
@ -316,7 +316,7 @@ foundnew:
|
|||
reg_dx=xms_handles[reg_dx].size;
|
||||
break;
|
||||
case XMS_RESIZE_EXTENDED_MEMORY_BLOCK: /* 0f */
|
||||
LOG_WARN("XMS:Unhandled call %2X",reg_ah);
|
||||
LOG(LOG_ERROR|LOG_MISC,"XMS:Unhandled call %2X",reg_ah);
|
||||
break;
|
||||
case XMS_ALLOCATE_UMB: /* 10 */
|
||||
reg_ax=0;
|
||||
|
@ -325,7 +325,8 @@ foundnew:
|
|||
break;
|
||||
case XMS_DEALLOCATE_UMB: /* 11 */
|
||||
default:
|
||||
LOG_WARN("XMS:Unhandled call %2X",reg_ah);break;
|
||||
LOG(LOG_ERROR|LOG_MISC,"XMS:Unhandled call %2X",reg_ah);
|
||||
break;
|
||||
|
||||
}
|
||||
return CBRET_NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue