diff --git a/src/main/acio/acio.h b/src/main/acio/acio.h index 0636e95..f92855a 100644 --- a/src/main/acio/acio.h +++ b/src/main/acio/acio.h @@ -44,6 +44,8 @@ enum ac_io_node_type { AC_IO_NODE_TYPE_PANB = 0x090E0000, AC_IO_NODE_TYPE_BMPU = 0x0B000000, AC_IO_NODE_TYPE_BI2A = 0x0D060000, + AC_IO_NODE_TYPE_BIOB = 0x0D050100, + AC_IO_NODE_TYPE_BI2B = 0x0D060100, }; #pragma pack(push, 1) diff --git a/src/main/bio2/bio2.h b/src/main/bio2/bio2.h index 5a95f7a..370bc30 100644 --- a/src/main/bio2/bio2.h +++ b/src/main/bio2/bio2.h @@ -11,6 +11,7 @@ enum bio2_bi2a_cmd { BIO2_BI2A_CMD_INIT = 0x0100, BIO2_BI2A_CMD_WATCHDOG = 0x0120, BIO2_BI2A_CMD_POLL = 0x0152, // For IIDX + BIO2_BI2A_CMD_POLL_WD = 0x0153, // For IIDX // For games using libacio for BIO2 communication BIO2_BI2A_CMD_ACIO_POLL_NOWD = 0x0112, BIO2_BI2A_CMD_ACIO_POLL_WD = 0x0113, @@ -18,4 +19,4 @@ enum bio2_bi2a_cmd { BIO2_BI2A_CMD_TAPELED_SEND = 0x0141, }; -#endif \ No newline at end of file +#endif diff --git a/src/main/bio2emu-iidx/bi2a.c b/src/main/bio2emu-iidx/bi2a.c index 3c90d24..cd2b56a 100644 --- a/src/main/bio2emu-iidx/bi2a.c +++ b/src/main/bio2emu-iidx/bi2a.c @@ -91,11 +91,12 @@ void bio2_emu_bi2a_dispatch_request( break; case BIO2_BI2A_CMD_WATCHDOG: - log_misc("BIO2_BI2A_CMD_WATCHDOGX(%d)", req->addr); + log_misc("BIO2_BI2A_CMD_WATCHDOG(%d)", req->addr); bio2_emu_bi2a_send_status(&bio2port->acio, req, 0x00); break; case BIO2_BI2A_CMD_POLL: + case BIO2_BI2A_CMD_POLL_WD: // log_misc("BIO2_BI2A_CMD_POLL"); bio2_emu_bi2a_send_state(&bio2port->acio, req); break;