3 typedef unsigned short uint16_t;
4 typedef unsigned char uint8_t;
6 typedef struct ASMInstr {
8 uint8_t op_type[MAX_OPERANDS]; /* see OP_xxx */
11 const ASMInstr asm_instrs[] = {
21 printf("sizeof(asm_instrs[]) = %d\n", sizeof(asm_instrs));
24 for (i = 0; i < sizeof(asm_instrs)/sizeof(asm_instrs[0]); ++i) {
25 printf("%d.: %d { %d %d %d }\n", i,
27 asm_instrs[i].op_type[0],
28 asm_instrs[i].op_type[1],
29 asm_instrs[i].op_type[2]