diff --git a/src/hardware/cmos.cpp b/src/hardware/cmos.cpp index 08b08b0d..e44933b1 100644 --- a/src/hardware/cmos.cpp +++ b/src/hardware/cmos.cpp @@ -175,6 +175,7 @@ static Bit8u cmos_readreg(Bit32u port) { case 0x18: /* Extended memory in KB High Byte */ case 0x30: /* Extended memory in KB Low Byte */ case 0x31: /* Extended memory in KB High Byte */ +// LOG(LOG_BIOS,LOG_NORMAL)("CMOS:Read from reg %F : %04X",cmos.reg,cmos.regs[cmos.reg]); return cmos.regs[cmos.reg]; default: LOG(LOG_BIOS,LOG_NORMAL)("CMOS:Read from reg %F",cmos.reg); @@ -182,6 +183,11 @@ static Bit8u cmos_readreg(Bit32u port) { } } +void CMOS_SetRegister(Bitu regNr, Bit8u val) +{ + cmos.regs[regNr] = val; +}; + void CMOS_Init(Section* sec) { IO_RegisterWriteHandler(0x70,cmos_selreg,"CMOS"); IO_RegisterWriteHandler(0x71,cmos_writereg,"CMOS");