]> Shamusworld >> Repos - stargem2/blobdiff - src/v6808.h
Finalizing move to trunk...
[stargem2] / src / v6808.h
index a3d6d9041efa80fb99a94c82703756195df8684f..ec19a63f9ef36ce93144a852fc85a37cac610609 100755 (executable)
@@ -3,7 +3,7 @@
 //
 // by James L. Hammons
 //
-// (c) 2004 Underground Software
+// (C) 2006 Underground Software
 //
 
 #ifndef __V6808_H__
@@ -13,9 +13,8 @@
 
 // Useful defines
 
-#define FLAG_E         0x80            // ??? Entire ???
-#define FLAG_F         0x40            // ??? Fast IRQ ???
-
+#define FLAG_E         0x80            // ??? Entire ??? [No.]
+#define FLAG_F         0x40            // ??? Fast IRQ ??? [No.]
 #define FLAG_H         0x20            // Half carry
 #define FLAG_I         0x10            // IRQ
 #define FLAG_N         0x08            // Negative
@@ -26,7 +25,7 @@
 #define V6808_ASSERT_LINE_RESET                0x0001          // v6808 RESET line
 #define V6808_ASSERT_LINE_IRQ          0x0002          // v6808 IRQ line
 #define V6808_ASSERT_LINE_NMI          0x0004          // v6808 NMI line
-#define V6808_STATE_SYNC                       0x0008          // ??? v6808 SYNC line ???
+#define V6808_STATE_WAI                                0x0008          // v6808 wait for IRQ line
 #define V6808_STATE_ILLEGAL_INST       0x0010          // Illegal instruction executed flag
 //#define V6809_START_DEBUG_LOG                0x0020          // Debug log go (temporary!)
 
@@ -41,7 +40,6 @@ struct V6808REGS
        uint8 a;                                                // 6808 A register
        uint8 b;                                                // 6808 B register
        uint32 clock;                                   // 6808 clock
-//uint32 _reserved;//  uint8 (* Fetch)(uint16&);               // Address of uint8 fetch routine
        uint8 (* RdMem)(uint16);                // Address of uint8 read routine
        void (* WrMem)(uint16, uint8);  // Address of uint8 write routine
        uint32 cpuFlags;                                // v6808 IRQ/RESET flags
@@ -49,7 +47,8 @@ struct V6808REGS
 
 // Function prototypes
 
-void Execute6808(V6808REGS *, uint32);    // Function to execute 6808 instructions
+void Execute6808(V6808REGS *, uint32); // Function to execute 6808 instructions
 uint32 GetCurrentV6808Clock(void);             // Get the clock of the currently executing CPU
+//uint8 GetCCRegister(void);                           // Hmm.
 
 #endif // __V6808_H__