hexed: add simple io commands
[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}]]* */
8#define CMD_TEST 0xc5 /* test code */
8689c962 9
272bd2ec 10#define CMD_FIRST CMD_MD_SEND
11#define CMD_LAST CMD_TEST
93c5aa8a 12
13#define IOSEQ_R8 0xb0
14#define IOSEQ_R16 0xb1
15#define IOSEQ_R32 0xb2
16#define IOSEQ_W8 0xb3
17#define IOSEQ_W16 0xb4
18#define IOSEQ_W32 0xb5