]> Shamusworld >> Repos - thunder/blobdiff - src/v63701.h
Emulator working with YM2151 and V63701 emus in place.
[thunder] / src / v63701.h
index 47c5b1802d386f164b380f06e42b433e9b8dcc84..2e711dcb0d5a6cb09b7b25c20ff0f148f7afa7d3 100644 (file)
@@ -105,8 +105,8 @@ struct V63701REGS
        Word outputCompare;                             // 63701 Output Compare register
        uint8_t ddr1;
        uint8_t ddr2;
-       uint8_t port1;
-       uint8_t port2;
+       uint8_t port1data;
+       uint8_t port2data;
        uint8_t ramCtrl;
        uint8_t cWriteLatch;                    // Counter write latch
        uint8_t cReadLatch;                             // Counter read latch
@@ -128,5 +128,11 @@ uint64_t GetCurrentV63701Clock(void);              // Get the clock of the currently executi
 uint8_t InternalRegisterRead(uint16_t);
 void InternalRegisterWrite(uint16_t, uint8_t);
 
+// These functions must be implemented by the user...
+extern uint8_t V63701ReadPort1(void);
+extern uint8_t V63701ReadPort2(void);
+extern void V63701WritePort1(uint8_t);
+extern void V63701WritePort2(uint8_t);
+
 #endif // __V63701_H__