]> Shamusworld >> Repos - stargem2/blobdiff - src/v6808.h
Change V6808 clock to 64-bit, added possible "don't branch" optimization
[stargem2] / src / v6808.h
index ec19a63f9ef36ce93144a852fc85a37cac610609..2b25aee042beaa9498af14590ffe17299066c3d7 100755 (executable)
@@ -39,16 +39,17 @@ struct V6808REGS
        uint8 cc;                                               // 6808 Condition Code register
        uint8 a;                                                // 6808 A register
        uint8 b;                                                // 6808 B register
-       uint32 clock;                                   // 6808 clock
+       uint64 clock;                                   // 6808 clock
        uint8 (* RdMem)(uint16);                // Address of uint8 read routine
        void (* WrMem)(uint16, uint8);  // Address of uint8 write routine
        uint32 cpuFlags;                                // v6808 IRQ/RESET flags
+       uint32 clockOverrun;                    // Amount of overflow between runs
 };
 
 // Function prototypes
 
 void Execute6808(V6808REGS *, uint32); // Function to execute 6808 instructions
-uint32 GetCurrentV6808Clock(void);             // Get the clock of the currently executing CPU
+uint64 GetCurrentV6808Clock(void);             // Get the clock of the currently executing CPU
 //uint8 GetCCRegister(void);                           // Hmm.
 
 #endif // __V6808_H__