fix/work around some gcc Wall warnings
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3192
This commit is contained in:
parent
3d40069e4a
commit
c78a9f6c03
41 changed files with 280 additions and 219 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 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
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: bios.cpp,v 1.71 2008-07-19 13:28:03 qbix79 Exp $ */
|
||||
/* $Id: bios.cpp,v 1.72 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
|
@ -624,8 +624,8 @@ static Bitu INT15_Handler(void) {
|
|||
MEM_A20_Enable(true);
|
||||
Bitu bytes = reg_cx * 2;
|
||||
PhysPt data = SegPhys(es)+reg_si;
|
||||
PhysPt source = mem_readd(data+0x12) & 0x00FFFFFF + (mem_readb(data+0x16)<<24);
|
||||
PhysPt dest = mem_readd(data+0x1A) & 0x00FFFFFF + (mem_readb(data+0x1E)<<24);
|
||||
PhysPt source = (mem_readd(data+0x12) & 0x00FFFFFF) + (mem_readb(data+0x16)<<24);
|
||||
PhysPt dest = (mem_readd(data+0x1A) & 0x00FFFFFF) + (mem_readb(data+0x1E)<<24);
|
||||
MEM_BlockCopy(dest,source,bytes);
|
||||
reg_ax = 0x00;
|
||||
MEM_A20_Enable(enabled);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 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
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: ems.cpp,v 1.56 2007-11-01 12:11:40 qbix79 Exp $ */
|
||||
/* $Id: ems.cpp,v 1.57 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1029,7 +1029,7 @@ static Bitu V86_Monitor() {
|
|||
Bitu which=(rm_val >> 3) & 7;
|
||||
if ((rm_val<0xc0) || (rm_val>=0xe8))
|
||||
E_Exit("Invalid opcode 0x0f 0x22 %x caused a protection fault!",rm_val);
|
||||
Bit32u crx;
|
||||
Bit32u crx=0;
|
||||
switch (rm_val&7) {
|
||||
case 0: crx=reg_eax; break;
|
||||
case 1: crx=reg_ecx; break;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: int10_modes.cpp,v 1.78 2008-05-10 17:33:28 c2woody Exp $ */
|
||||
/* $Id: int10_modes.cpp,v 1.79 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -248,14 +248,14 @@ static Bit8u text_palette[64][3]=
|
|||
|
||||
static Bit8u mtext_palette[64][3]=
|
||||
{
|
||||
0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00,
|
||||
0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
|
||||
0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
|
||||
0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f,
|
||||
0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00,
|
||||
0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
|
||||
0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
|
||||
0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f
|
||||
{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},
|
||||
{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},
|
||||
{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},
|
||||
{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},
|
||||
{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},{0x00,0x00,0x00},
|
||||
{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},
|
||||
{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},{0x2a,0x2a,0x2a},
|
||||
{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f},{0x3f,0x3f,0x3f}
|
||||
};
|
||||
|
||||
static Bit8u ega_palette[64][3]=
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: int10_put_pixel.cpp,v 1.21 2008-06-14 19:31:04 qbix79 Exp $ */
|
||||
/* $Id: int10_put_pixel.cpp,v 1.22 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
|
@ -41,7 +41,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
color&=3;
|
||||
old^=color << (2*(3-(x&3)));
|
||||
} else {
|
||||
old=old&cga_masks[x&3]|((color&3) << (2*(3-(x&3))));
|
||||
old=(old&cga_masks[x&3])|((color&3) << (2*(3-(x&3))));
|
||||
}
|
||||
real_writeb(0xb800,off,old);
|
||||
} else {
|
||||
|
@ -53,7 +53,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
old^=(color&1) << (7-(x&7));
|
||||
old^=((color&2)>>1) << ((7-(x&7))+8);
|
||||
} else {
|
||||
old=old&(~(0x101<<(7-(x&7)))) | ((color&1) << (7-(x&7))) | (((color&2)>>1) << ((7-(x&7))+8));
|
||||
old=(old&(~(0x101<<(7-(x&7))))) | ((color&1) << (7-(x&7))) | (((color&2)>>1) << ((7-(x&7))+8));
|
||||
}
|
||||
real_writew(0xb800,off,old);
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
color&=1;
|
||||
old^=color << ((7-(x&7)));
|
||||
} else {
|
||||
old=old&cga_masks2[x&7]|((color&1) << ((7-(x&7))));
|
||||
old=(old&cga_masks2[x&7])|((color&1) << ((7-(x&7))));
|
||||
}
|
||||
real_writeb(0xb800,off,old);
|
||||
}
|
||||
|
@ -106,9 +106,9 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
if (color & 0x80) { IO_Write(0x3ce,0x3);IO_Write(0x3cf,0x18); }
|
||||
//Perhaps also set mode 1
|
||||
/* Calculate where the pixel is in video memory */
|
||||
if (CurMode->plength!=real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE))
|
||||
if (CurMode->plength!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE))
|
||||
LOG(LOG_INT10,LOG_ERROR)("PutPixel_EGA_p: %x!=%x",CurMode->plength,real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE));
|
||||
if (CurMode->swidth!=real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
if (CurMode->swidth!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
LOG(LOG_INT10,LOG_ERROR)("PutPixel_EGA_w: %x!=%x",CurMode->swidth,real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
|
||||
PhysPt off=0xa0000+real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE)*page+
|
||||
((y*real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8+x)>>3);
|
||||
|
@ -127,7 +127,7 @@ void INT10_PutPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u color) {
|
|||
mem_writeb(PhysMake(0xa000,y*320+x),color);
|
||||
break;
|
||||
case M_LIN8: {
|
||||
if (CurMode->swidth!=real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
if (CurMode->swidth!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
LOG(LOG_INT10,LOG_ERROR)("PutPixel_VGA_w: %x!=%x",CurMode->swidth,real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
|
||||
PhysPt off=S3_LFB_BASE+y*real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8+x;
|
||||
mem_writeb(off,color);
|
||||
|
@ -149,7 +149,7 @@ void INT10_GetPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u * color) {
|
|||
Bit16u off=(y>>1)*80+(x>>2);
|
||||
if (y&1) off+=8*1024;
|
||||
Bit8u val=real_readb(0xb800,off);
|
||||
*color=(val>>(((3-x&3))*2)) & 3 ;
|
||||
*color=(val>>(((3-(x&3)))*2)) & 3 ;
|
||||
}
|
||||
break;
|
||||
case M_CGA2:
|
||||
|
@ -157,15 +157,15 @@ void INT10_GetPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u * color) {
|
|||
Bit16u off=(y>>1)*80+(x>>3);
|
||||
if (y&1) off+=8*1024;
|
||||
Bit8u val=real_readb(0xb800,off);
|
||||
*color=(val>>(((7-x&7)))) & 1 ;
|
||||
*color=(val>>(((7-(x&7))))) & 1 ;
|
||||
}
|
||||
break;
|
||||
case M_EGA:
|
||||
{
|
||||
/* Calculate where the pixel is in video memory */
|
||||
if (CurMode->plength!=real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE))
|
||||
if (CurMode->plength!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE))
|
||||
LOG(LOG_INT10,LOG_ERROR)("GetPixel_EGA_p: %x!=%x",CurMode->plength,real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE));
|
||||
if (CurMode->swidth!=real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
if (CurMode->swidth!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
LOG(LOG_INT10,LOG_ERROR)("GetPixel_EGA_w: %x!=%x",CurMode->swidth,real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
|
||||
PhysPt off=0xa0000+real_readw(BIOSMEM_SEG,BIOSMEM_PAGE_SIZE)*page+
|
||||
((y*real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8+x)>>3);
|
||||
|
@ -186,7 +186,7 @@ void INT10_GetPixel(Bit16u x,Bit16u y,Bit8u page,Bit8u * color) {
|
|||
*color=mem_readb(PhysMake(0xa000,320*y+x));
|
||||
break;
|
||||
case M_LIN8: {
|
||||
if (CurMode->swidth!=real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
if (CurMode->swidth!=(Bitu)real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8)
|
||||
LOG(LOG_INT10,LOG_ERROR)("GetPixel_VGA_w: %x!=%x",CurMode->swidth,real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8);
|
||||
PhysPt off=S3_LFB_BASE+y*real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS)*8+x;
|
||||
*color = mem_readb(off);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 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
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: */
|
||||
/* $Id: int10_video_state.cpp,v 1.2 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
|
@ -178,7 +178,8 @@ bool INT10_VideoState_Save(Bitu state,RealPt buffer) {
|
|||
Bit16u crt_reg=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
|
||||
|
||||
IO_WriteB(0x3c4,0x08);
|
||||
Bitu seq_8=IO_ReadB(0x3c5);
|
||||
// Bitu seq_8=IO_ReadB(0x3c5);
|
||||
IO_ReadB(0x3c5);
|
||||
// real_writeb(base_seg,base_dest+0x00,IO_ReadB(0x3c5));
|
||||
IO_WriteB(0x3c5,0x06); // unlock s3-specific registers
|
||||
|
||||
|
@ -332,7 +333,8 @@ bool INT10_VideoState_Restore(Bitu state,RealPt buffer) {
|
|||
|
||||
Bitu seq_idx=IO_ReadB(0x3c4);
|
||||
IO_WriteB(0x3c4,0x08);
|
||||
Bitu seq_8=IO_ReadB(0x3c5);
|
||||
// Bitu seq_8=IO_ReadB(0x3c5);
|
||||
IO_ReadB(0x3c5);
|
||||
// real_writeb(base_seg,base_dest+0x00,IO_ReadB(0x3c5));
|
||||
IO_WriteB(0x3c5,0x06); // unlock s3-specific registers
|
||||
|
||||
|
@ -342,7 +344,7 @@ bool INT10_VideoState_Restore(Bitu state,RealPt buffer) {
|
|||
}
|
||||
IO_WriteB(0x3c4,seq_idx);
|
||||
|
||||
Bitu crtc_idx=IO_ReadB(0x3d4);
|
||||
// Bitu crtc_idx=IO_ReadB(0x3d4);
|
||||
|
||||
// unlock s3-specific registers
|
||||
IO_WriteW(crt_reg,0x4838);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2002-2007 The DOSBox Team
|
||||
* Copyright (C) 2002-2008 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
|
||||
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: int10_vptable.cpp,v 1.1 2007-10-08 20:22:13 c2woody Exp $ */
|
||||
/* $Id: int10_vptable.cpp,v 1.2 2008-08-06 18:32:35 c2woody Exp $ */
|
||||
|
||||
#include "dosbox.h"
|
||||
#include "mem.h"
|
||||
|
@ -489,7 +489,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
}
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // sequencer registers",seq_regs[0],seq_regs[1],seq_regs[2],seq_regs[3]);
|
||||
LOG_MSG(" 0x%02x, // misc output registers",IO_ReadB(0x3cc));
|
||||
Bitu crtc_regs[4];
|
||||
Bitu crtc_regs[0x19];
|
||||
Bit16u crt_addr=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
|
||||
for (ct=0; ct<0x19; ct++) {
|
||||
IO_WriteB(crt_addr,ct);
|
||||
|
@ -504,7 +504,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, // crtc registers 16-24",
|
||||
crtc_regs[0x10],crtc_regs[0x11],crtc_regs[0x12],crtc_regs[0x13],
|
||||
crtc_regs[0x14],crtc_regs[0x15],crtc_regs[0x16],crtc_regs[0x17],crtc_regs[0x18]);
|
||||
Bitu attr_regs[4];
|
||||
Bitu attr_regs[0x14];
|
||||
for (ct=0; ct<0x14; ct++) {
|
||||
IO_ReadB(crt_addr+6);
|
||||
IO_WriteB(0x3c0,ct);
|
||||
|
@ -518,7 +518,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
attr_regs[0x0c],attr_regs[0x0d],attr_regs[0x0e],attr_regs[0x0f]);
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // attr registers 16-19",
|
||||
attr_regs[0x10],attr_regs[0x11],attr_regs[0x12],attr_regs[0x13]);
|
||||
Bitu gfx_regs[4];
|
||||
Bitu gfx_regs[9];
|
||||
for (ct=0; ct<0x09; ct++) {
|
||||
IO_WriteB(0x3ce,ct);
|
||||
gfx_regs[ct]=IO_ReadB(0x3cf);
|
||||
|
@ -547,7 +547,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
}
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // sequencer registers",seq_regs[0],seq_regs[1],seq_regs[2],seq_regs[3]);
|
||||
LOG_MSG(" 0x%02x, // misc output registers",IO_ReadB(0x3cc));
|
||||
Bitu crtc_regs[4];
|
||||
Bitu crtc_regs[0x19];
|
||||
Bit16u crt_addr=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
|
||||
for (ct=0; ct<0x19; ct++) {
|
||||
IO_WriteB(crt_addr,ct);
|
||||
|
@ -562,7 +562,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, // crtc registers 16-24",
|
||||
crtc_regs[0x10],crtc_regs[0x11],crtc_regs[0x12],crtc_regs[0x13],
|
||||
crtc_regs[0x14],crtc_regs[0x15],crtc_regs[0x16],crtc_regs[0x17],crtc_regs[0x18]);
|
||||
Bitu attr_regs[4];
|
||||
Bitu attr_regs[0x14];
|
||||
for (ct=0; ct<0x14; ct++) {
|
||||
IO_ReadB(crt_addr+6);
|
||||
IO_WriteB(0x3c0,ct);
|
||||
|
@ -576,7 +576,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
attr_regs[0x0c],attr_regs[0x0d],attr_regs[0x0e],attr_regs[0x0f]);
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // attr registers 16-19",
|
||||
attr_regs[0x10],attr_regs[0x11],attr_regs[0x12],attr_regs[0x13]);
|
||||
Bitu gfx_regs[4];
|
||||
Bitu gfx_regs[9];
|
||||
for (ct=0; ct<0x09; ct++) {
|
||||
IO_WriteB(0x3ce,ct);
|
||||
gfx_regs[ct]=IO_ReadB(0x3cf);
|
||||
|
@ -604,7 +604,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
}
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // sequencer registers",seq_regs[0],seq_regs[1],seq_regs[2],seq_regs[3]);
|
||||
LOG_MSG(" 0x%02x, // misc output registers",IO_ReadB(0x3cc));
|
||||
Bitu crtc_regs[4];
|
||||
Bitu crtc_regs[0x19];
|
||||
Bit16u crt_addr=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
|
||||
for (ct=0; ct<0x19; ct++) {
|
||||
IO_WriteB(crt_addr,ct);
|
||||
|
@ -619,7 +619,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, // crtc registers 16-24",
|
||||
crtc_regs[0x10],crtc_regs[0x11],crtc_regs[0x12],crtc_regs[0x13],
|
||||
crtc_regs[0x14],crtc_regs[0x15],crtc_regs[0x16],crtc_regs[0x17],crtc_regs[0x18]);
|
||||
Bitu attr_regs[4];
|
||||
Bitu attr_regs[0x14];
|
||||
for (ct=0; ct<0x14; ct++) {
|
||||
IO_ReadB(crt_addr+6);
|
||||
IO_WriteB(0x3c0,ct);
|
||||
|
@ -633,7 +633,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
attr_regs[0x0c],attr_regs[0x0d],attr_regs[0x0e],attr_regs[0x0f]);
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // attr registers 16-19",
|
||||
attr_regs[0x10],attr_regs[0x11],attr_regs[0x12],attr_regs[0x13]);
|
||||
Bitu gfx_regs[4];
|
||||
Bitu gfx_regs[9];
|
||||
for (ct=0; ct<0x09; ct++) {
|
||||
IO_WriteB(0x3ce,ct);
|
||||
gfx_regs[ct]=IO_ReadB(0x3cf);
|
||||
|
@ -659,7 +659,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
}
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // sequencer registers",seq_regs[0],seq_regs[1],seq_regs[2],seq_regs[3]);
|
||||
LOG_MSG(" 0x%02x, // misc output registers",IO_ReadB(0x3cc));
|
||||
Bitu crtc_regs[4];
|
||||
Bitu crtc_regs[0x19];
|
||||
Bit16u crt_addr=real_readw(BIOSMEM_SEG,BIOSMEM_CRTC_ADDRESS);
|
||||
for (ct=0; ct<0x19; ct++) {
|
||||
IO_WriteB(crt_addr,ct);
|
||||
|
@ -674,7 +674,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, 0x%02x, // crtc registers 16-24",
|
||||
crtc_regs[0x10],crtc_regs[0x11],crtc_regs[0x12],crtc_regs[0x13],
|
||||
crtc_regs[0x14],crtc_regs[0x15],crtc_regs[0x16],crtc_regs[0x17],crtc_regs[0x18]);
|
||||
Bitu attr_regs[4];
|
||||
Bitu attr_regs[0x14];
|
||||
for (ct=0; ct<0x14; ct++) {
|
||||
IO_ReadB(crt_addr+6);
|
||||
IO_WriteB(0x3c0,ct);
|
||||
|
@ -688,7 +688,7 @@ void INT10_GenerateVideoParameterTable(void) {
|
|||
attr_regs[0x0c],attr_regs[0x0d],attr_regs[0x0e],attr_regs[0x0f]);
|
||||
LOG_MSG(" 0x%02x, 0x%02x, 0x%02x, 0x%02x, // attr registers 16-19",
|
||||
attr_regs[0x10],attr_regs[0x11],attr_regs[0x12],attr_regs[0x13]);
|
||||
Bitu gfx_regs[4];
|
||||
Bitu gfx_regs[9];
|
||||
for (ct=0; ct<0x09; ct++) {
|
||||
IO_WriteB(0x3ce,ct);
|
||||
gfx_regs[ct]=IO_ReadB(0x3cf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue