--- np2/bios/bios.c 2004/02/09 20:39:39 1.36 +++ np2/bios/bios.c 2004/02/16 05:09:00 1.38 @@ -139,13 +139,12 @@ static void bios_vectorset(void) { static void bios_screeninit(void) { - UINT ax; + REG8 al; - ax = 0x0a04; - ax += (np2cfg.dipsw[1] & 0x04) >> 1; - ax += (np2cfg.dipsw[1] & 0x08) >> 3; - CPU_AX = ax; - bios0x18(); + al = 4; + al += (np2cfg.dipsw[1] & 0x04) >> 1; + al += (np2cfg.dipsw[1] & 0x08) >> 3; + bios0x18_0a(al); } @@ -161,7 +160,7 @@ static const UINT16 biosoffset[0x20] = { BIOSOFST_EOIS, BIOSOFST_EOIS, BIOSOFST_EOIS, BIOSOFST_EOIS, BIOSOFST_18, BIOSOFST_19, BIOSOFST_1a, BIOSOFST_1b, - BIOSOFST_1c, BIOSOFST_IRET, BIOSOFST_1e, BIOSOFST_IRET}; + BIOSOFST_1c, BIOSOFST_IRET, BIOSOFST_1e, BIOSOFST_1f}; void bios_init(void) { @@ -195,7 +194,7 @@ void bios_init(void) { } SETBIOSMEM16(BIOS_BASE + BIOSOFST_IRET, 0x50cf); SETBIOSMEM16(BIOS_BASE + BIOSOFST_WAIT, 0xcf90); - for (i=(BIOS_BASE+BIOSOFST_EOIM); i<=(BIOS_BASE+BIOSOFST_1c); i+=2) { + for (i=(BIOS_BASE+BIOSOFST_EOIM); i<=(BIOS_BASE+BIOSOFST_1f); i+=2) { SETBIOSMEM16(i, 0xcf90); } CopyMemory(mem + BIOS_BASE + BIOSOFST_PRT, printmain, sizeof(printmain)); @@ -368,6 +367,10 @@ UINT MEMCALL biosfunc(UINT32 adrs) { bios0x1c(); return(1); + case BIOS_BASE + BIOSOFST_1f: + CPU_REMCLOCK -= 200; + return(1); + case BIOS_BASE + BIOSOFST_WAIT: CPU_STI; if (fddmtr_biosbusy) { // ver0.26