]> Shamusworld >> Repos - thunder/blobdiff - src/v6808.h
Removed useless cruft, fixed off-by-one bug in screen render.
[thunder] / src / v6808.h
diff --git a/src/v6808.h b/src/v6808.h
deleted file mode 100644 (file)
index 196ce3e..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Virtual 6808 Header file
-//
-// by James Hammons
-//
-// (C) 2006 Underground Software
-//
-
-#ifndef __V6808_H__
-#define __V6808_H__
-
-#include <stdint.h>
-
-// Useful defines
-
-#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
-#define FLAG_Z         0x04            // Zero
-#define FLAG_V         0x02            // oVerflow
-#define FLAG_C         0x01            // Carry
-
-#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_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!)
-
-// Useful structs
-
-struct V6808REGS
-{
-       uint16_t pc;                                    // 6808 PC register
-       uint16_t x;                                             // 6808 X index register
-       uint16_t s;                                             // 6808 System stack pointer
-       uint8_t cc;                                             // 6808 Condition Code register
-       uint8_t a;                                              // 6808 A register
-       uint8_t b;                                              // 6808 B register
-       uint64_t clock;                                 // 6808 clock
-       uint8_t (* RdMem)(uint16_t);    // Address of uint8_t read routine
-       void (* WrMem)(uint16_t, uint8_t);      // Address of uint8_t write routine
-       uint32_t cpuFlags;                              // v6808 IRQ/RESET flags
-       uint32_t clockOverrun;                  // Amount of overflow between runs
-};
-
-// Function prototypes
-
-void Execute6808(V6808REGS *, uint32_t);       // Function to execute 6808 instructions
-uint64_t GetCurrentV6808Clock(void);           // Get the clock of the currently executing CPU
-//uint8_t GetCCRegister(void);                         // Hmm.
-
-#endif // __V6808_H__
-