#include "Pico.h"\r
\r
\r
-// to select core, define EMU_C68K, EMU_M68K or EMU_A68K in your makefile\r
+// to select core, define EMU_C68K, EMU_M68K or EMU_A68K in your makefile or project\r
\r
#ifdef __cplusplus\r
extern "C" {\r
unsigned char sram_slave; // EEPROM slave word for X24C02 and better SRAMs\r
unsigned char prot_bytes[2]; // simple protection fakeing\r
unsigned short dma_bytes; //\r
- unsigned char pad1[6];\r
+ unsigned char pad[2];\r
+ unsigned int frame_count; // mainly for movies\r
};\r
\r
// some assembly stuff depend on these, do not touch!\r
// MCD\r
#include "cd/cd_sys.h"\r
#include "cd/LC89510.h"\r
+#include "cd/gfx_cd.h"\r
+\r
+struct mcd_misc\r
+{\r
+ unsigned short hint_vector;\r
+ unsigned char busreq;\r
+ unsigned char pad0;\r
+\r
+};\r
\r
typedef struct\r
{\r
- unsigned char bios[0x20000];\r
+ unsigned char bios[0x20000]; // 128K\r
union {\r
- unsigned char prg_ram[0x80000];\r
+ unsigned char prg_ram[0x80000]; // 512K\r
unsigned char prg_ram_b[4][0x20000];\r
};\r
- unsigned char word_ram[0x40000];\r
+ unsigned char word_ram[0x40000]; // 256K\r
+ unsigned char bram[0x2000]; // 8K\r
unsigned char s68k_regs[0x200];\r
- unsigned char m68k_regs[0x10];\r
CDD cdd;\r
CDC cdc;\r
_scd scd;\r
+ Rot_Comp rot_comp;\r
+ struct mcd_misc m;\r
} mcd_state;\r
\r
#define Pico_mcd ((mcd_state *)Pico.rom)\r
extern struct Pico Pico;\r
extern struct PicoSRAM SRam;\r
extern int emustatus;\r
+int CheckDMA(void);\r
\r
// cd/Pico.c\r
int PicoInitMCD(void);\r