X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fv6808.h;fp=src%2Fv6808.h;h=4ab68a68afb0427313c6951f3c0c21711619843f;hb=e3ad811139308bfe8a818cf5e42e7553785fea82;hp=2b25aee042beaa9498af14590ffe17299066c3d7;hpb=0c6f353827a94eb52c21e677658000f98452b247;p=stargem2 diff --git a/src/v6808.h b/src/v6808.h index 2b25aee..4ab68a6 100755 --- a/src/v6808.h +++ b/src/v6808.h @@ -9,7 +9,7 @@ #ifndef __V6808_H__ #define __V6808_H__ -#include "types.h" +#include // Useful defines @@ -33,23 +33,24 @@ struct V6808REGS { - uint16 pc; // 6808 PC register - uint16 x; // 6808 X index register - uint16 s; // 6808 System stack pointer - uint8 cc; // 6808 Condition Code register - uint8 a; // 6808 A register - uint8 b; // 6808 B register - 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 + 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 read routine + void (* WrMem)(uint16_t, uint8_t); // Address of uint8 write routine + uint32_t cpuFlags; // v6808 IRQ/RESET flags + uint32_t clockOverrun; // Amount of overflow between runs }; // Function prototypes -void Execute6808(V6808REGS *, uint32); // Function to execute 6808 instructions -uint64 GetCurrentV6808Clock(void); // Get the clock of the currently executing CPU +void Execute6808(V6808REGS *, uint32_t); // Function to execute 6808 instructions +uint64_t GetCurrentV6808Clock(void); // Get the clock of the currently executing CPU //uint8 GetCCRegister(void); // Hmm. #endif // __V6808_H__ +