5 typedef unsigned short uint16_t;
6 typedef unsigned char uint8_t;
8 typedef struct ASMInstr {
10 uint8_t op_type[MAX_OPERANDS]; /* see OP_xxx */
13 const ASMInstr asm_instrs[] = {
23 printf("sizeof(asm_instrs[]) = %d\n", sizeof(asm_instrs));
26 for (i = 0; i < sizeof(asm_instrs)/sizeof(asm_instrs[0]); ++i) {
27 printf("%d.: %d { %d %d %d }\n", i,
29 asm_instrs[i].op_type[0],
30 asm_instrs[i].op_type[1],
31 asm_instrs[i].op_type[2]