93c5aa8a |
1 | /* all data is big endian */ |
2 | |
8689c962 |
3 | #define CMD_PREFIX 0x5a |
f0e06736 |
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[] */ |
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] */ |
f0e06736 |
9 | #define CMD_VRAM_RECV 0xc6 /* recv from MD: vram[64k] */ |
10 | #define CMD_TEST 0xc7 /* test code */ |
8689c962 |
11 | |
f0e06736 |
12 | #define CMD_FIRST CMD_PC_SEND |
272bd2ec |
13 | #define CMD_LAST CMD_TEST |
93c5aa8a |
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 |