From 2570e48b56d6d875bec7352a0b9e13419d0673d2 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Sat, 17 Feb 2018 12:19:13 -0800 Subject: [PATCH] more --- src/hardware/pc98_fm.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/hardware/pc98_fm.cpp b/src/hardware/pc98_fm.cpp index b304cc106..9c82459cb 100644 --- a/src/hardware/pc98_fm.cpp +++ b/src/hardware/pc98_fm.cpp @@ -64,9 +64,24 @@ REG8 keystat_getjoy(void) { return 0xFF;//TODO } +void pc98_fm86_write(Bitu port,Bitu val,Bitu iolen) { + LOG_MSG("pc98fm write port=0x%lx val=0x%lx",port,val); +} + +Bitu pc98_fm86_read(Bitu port,Bitu iolen) { + LOG_MSG("pc98fm read port=0x%lx",port); + + return ~0; +} + // four I/O ports, 2 ports apart void cbuscore_attachsndex(UINT port, const IOOUT *out, const IOINP *inp) { LOG_MSG("cbuscore_attachsndex(port=0x%x)",port); + + for (unsigned int i=0;i < 4;i++) { + IO_RegisterReadHandler(port+(i*4),pc98_fm86_read,IO_MB); + IO_RegisterWriteHandler(port+(i*4),pc98_fm86_write,IO_MB); + } } int pc98_fm_irq = 3; /* TODO: Make configurable */ @@ -253,13 +268,6 @@ void fmtimer_setreg(UINT reg, REG8 value) { ///////////////////////////////////////////////////////////// -void pc98_fm86_write(Bitu port,Bitu val,Bitu iolen) { -} - -Bitu pc98_fm86_read(Bitu port,Bitu iolen) { - return ~0; -} - static void pc98_mix_CallBack(Bitu len) { unsigned int s = len;