| 1 | /* all data is big endian */ |
| 2 | |
| 3 | #define CMD_PREFIX 0x5a |
| 4 | #define CMD_PC_SEND 0xc1 /* send to MD: addr[3], len[3], data[] */ |
| 5 | #define CMD_PC_RECV 0xc2 /* recv from MD: addr[3], len[3], data[] */ |
| 6 | #define CMD_JUMP 0xc3 /* jump to addr: addr[3] */ |
| 7 | #define CMD_IOSEQ 0xc4 /* perform i/o ops: count[2], [type[1], addr[3], data[{0,1,2,4}]]* */ |
| 8 | #define CMD_LOADSTATE 0xc5 /* load PD state: vram[64k], cram[128], vsram[128], vdp[32] */ |
| 9 | #define CMD_VRAM_RECV 0xc6 /* recv from MD: vram[64k] */ |
| 10 | #define CMD_TEST 0xc7 /* test code */ |
| 11 | |
| 12 | #define CMD_FIRST CMD_PC_SEND |
| 13 | #define CMD_LAST CMD_TEST |
| 14 | |
| 15 | #define IOSEQ_R8 0xb0 |
| 16 | #define IOSEQ_R16 0xb1 |
| 17 | #define IOSEQ_R32 0xb2 |
| 18 | #define IOSEQ_W8 0xb3 |
| 19 | #define IOSEQ_W16 0xb4 |
| 20 | #define IOSEQ_W32 0xb5 |