--- np2/bios/sxsibios.c 2004/03/04 17:43:50 1.13 +++ np2/bios/sxsibios.c 2004/03/22 05:38:47 1.15 @@ -374,7 +374,7 @@ REG8 scsibios_operate(void) { // ---- np2sysp -#if defined(SUPPORT_SASI) || defined(SUPPORT_SCSI) +#if defined(SUPPORT_IDEIO) || defined(SUPPORT_SASI) || defined(SUPPORT_SCSI) typedef struct { UINT16 ax; UINT16 cx; @@ -433,7 +433,7 @@ static void reg_load(UINT seg, UINT off) B1BREG r; MEML_READSTR(seg, off, &r, sizeof(r)); - CPU_FLAGL = i286_membyte_read(seg, off + 0x16); + CPU_FLAGL = MEML_READ8(seg, off + 0x16); CPU_AX = LOADINTELWORD(r.r_ax); CPU_BX = LOADINTELWORD(r.r_bx); CPU_CX = LOADINTELWORD(r.r_cx); @@ -459,11 +459,11 @@ static void reg_store(UINT seg, UINT off STOREINTELWORD(r.r_si, CPU_SI); STOREINTELWORD(r.r_ds, CPU_DS); MEML_WRITESTR(seg, off, &r, sizeof(r)); - i286_membyte_write(seg, off + 0x16, CPU_FLAGL); + MEML_WRITE8(seg, off + 0x16, CPU_FLAGL); } #endif -#if defined(SUPPORT_SASI) +#if defined(SUPPORT_IDEIO) || defined(SUPPORT_SASI) void np2sysp_sasi(const void *arg1, long arg2) { UINT seg;