--- /dev/null
+\r
+// Cyclone 68000 Emulator - Header File\r
+\r
+// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
+// You can choose the license that has the most advantages for you.\r
+\r
+// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+extern int CycloneVer; // Version number of library\r
+\r
+struct Cyclone\r
+{\r
+ unsigned int d[8]; // [r7,#0x00]\r
+ unsigned int a[8]; // [r7,#0x20]\r
+ unsigned int pc; // [r7,#0x40] Memory Base+PC\r
+ unsigned char srh; // [r7,#0x44] Status Register high (T_S__III)\r
+ unsigned char xc; // [r7,#0x45] Extend flag (____??X?)\r
+ unsigned char flags; // [r7,#0x46] Flags (ARM order: ____NZCV)\r
+ unsigned char irq; // [r7,#0x47] IRQ level\r
+ unsigned int osp; // [r7,#0x48] Other Stack Pointer (USP/SSP)\r
+ unsigned int vector; // [r7,#0x50] IRQ vector (temporary)\r
+ int pad1[3];\r
+ int cycles; // [r7,#0x5c]\r
+ int membase; // [r7,#0x60] Memory Base (ARM address minus 68000 address)\r
+ unsigned int (*checkpc)(unsigned int pc); // [r7,#0x64] - Called to recalc Memory Base+pc\r
+ unsigned char (*read8 )(unsigned int a); // [r7,#0x68]\r
+ unsigned short (*read16 )(unsigned int a); // [r7,#0x6c]\r
+ unsigned int (*read32 )(unsigned int a); // [r7,#0x70]\r
+ void (*write8 )(unsigned int a,unsigned char d); // [r7,#0x74]\r
+ void (*write16)(unsigned int a,unsigned short d); // [r7,#0x78]\r
+ void (*write32)(unsigned int a,unsigned int d); // [r7,#0x7c]\r
+ unsigned char (*fetch8 )(unsigned int a); // [r7,#0x80]\r
+ unsigned short (*fetch16)(unsigned int a); // [r7,#0x84]\r
+ unsigned int (*fetch32)(unsigned int a); // [r7,#0x88]\r
+};\r
+\r
+void CycloneRun(struct Cyclone *pcy);\r
+\r
+#ifdef __cplusplus\r
+} // End of extern "C"\r
+#endif\r