hexed: support PicoDrive savestate loading (only VDP+VRAM for now)
[megadrive.git] / hexed / transfer.h
CommitLineData
93c5aa8a 1/* all data is big endian */
2
8689c962 3#define CMD_PREFIX 0x5a
4#define CMD_MD_SEND 0xc1 /* send to MD: addr[3], len[3], data[] */
5#define CMD_MD_RECV 0xc2 /* recv from MD: addr[3], len[3], data[] */
272bd2ec 6#define CMD_JUMP 0xc3 /* jump to addr: addr[3] */
93c5aa8a 7#define CMD_IOSEQ 0xc4 /* perform i/o ops: count[2], [type[1], addr[3], data[{0,1,2,4}]]* */
4e6ba16d 8#define CMD_LOADSTATE 0xc5 /* load PD state: vram[64k], cram[128], vsram[128], vdp[32] */
9#define CMD_TEST 0xc6 /* test code */
8689c962 10
272bd2ec 11#define CMD_FIRST CMD_MD_SEND
12#define CMD_LAST CMD_TEST
93c5aa8a 13
14#define IOSEQ_R8 0xb0
15#define IOSEQ_R16 0xb1
16#define IOSEQ_R32 0xb2
17#define IOSEQ_W8 0xb3
18#define IOSEQ_W16 0xb4
19#define IOSEQ_W32 0xb5