diff --git a/src/ints/int10_misc.cpp b/src/ints/int10_misc.cpp index 0d57017d..31462394 100644 --- a/src/ints/int10_misc.cpp +++ b/src/ints/int10_misc.cpp @@ -154,7 +154,7 @@ RealPt INT10_EGA_RIL_GetVersionPt(void) { return RealMake(0xc000,0x30); } -static void EGA_RIL(Bit16u dx, Bitu& port, Bitu& regs) { +static void EGA_RIL(Bit16u dx, Bit16u& port, Bit16u& regs) { port = 0; regs = 0; //if nul is returned it's a single register port switch(dx) { @@ -193,8 +193,8 @@ static void EGA_RIL(Bit16u dx, Bitu& port, Bitu& regs) { } void INT10_EGA_RIL_ReadRegister(Bit8u & bl, Bit16u dx) { - Bitu port = 0; - Bitu regs = 0; + Bit16u port = 0; + Bit16u regs = 0; EGA_RIL(dx,port,regs); if(regs == 0) { if(port) bl = IO_Read(port); @@ -208,8 +208,8 @@ void INT10_EGA_RIL_ReadRegister(Bit8u & bl, Bit16u dx) { } void INT10_EGA_RIL_WriteRegister(Bit8u & bl, Bit8u bh, Bit16u dx) { - Bitu port = 0; - Bitu regs = 0; + Bit16u port = 0; + Bit16u regs = 0; EGA_RIL(dx,port,regs); if(regs == 0) { if(port) IO_Write(port,bl); @@ -228,8 +228,8 @@ void INT10_EGA_RIL_WriteRegister(Bit8u & bl, Bit8u bh, Bit16u dx) { } void INT10_EGA_RIL_ReadRegisterRange(Bit8u ch, Bit8u cl, Bit16u dx, PhysPt dst) { - Bitu port = 0; - Bitu regs = 0; + Bit16u port = 0; + Bit16u regs = 0; EGA_RIL(dx,port,regs); if(regs == 0) { LOG(LOG_INT10,LOG_ERROR)("EGA RIL range read with port %x called",port); @@ -247,8 +247,8 @@ void INT10_EGA_RIL_ReadRegisterRange(Bit8u ch, Bit8u cl, Bit16u dx, PhysPt dst) } void INT10_EGA_RIL_WriteRegisterRange(Bit8u ch, Bit8u cl, Bit16u dx, PhysPt src) { - Bitu port = 0; - Bitu regs = 0; + Bit16u port = 0; + Bit16u regs = 0; EGA_RIL(dx,port,regs); if(regs == 0) { LOG(LOG_INT10,LOG_ERROR)("EGA RIL range write called with port %x",port); @@ -278,7 +278,7 @@ void INT10_EGA_RIL_WriteRegisterRange(Bit8u ch, Bit8u cl, Bit16u dx, PhysPt src) */ void INT10_EGA_RIL_ReadRegisterSet(Bit16u cx, PhysPt tbl) { /* read cx register sets */ - for (Bitu i=0; i