1 #ifndef AS_DCPU16_H_PTFNJB09
2 #define AS_DCPU16_H_PTFNJB09
7 char *label
; /* set if a label points here */
8 char *opcode
; /* tokenized instruction text */
9 struct operand_
*operands
; /* list of operands */
10 unsigned int ready
: 1; /* bytecode computed? */
11 unsigned int length
; /* number of words of bytecode */
12 DCPU16_WORD instr_words
[];
17 struct operand_
*next
;
18 char *operand
; /* tokenized operand text */
22 #define IL_SIZE(entries) (((entries) * sizeof(struct instruction_ *)) + sizeof(struct instruction_list_))
24 struct instruction_list_
{
27 struct instruction_
*instr
[];
31 /* note label table holds its own structs, not pointers like instruction list */
33 char *label
; /* name of label */
34 struct instruction_
**instr
; /* pointer into instruction list table */
35 unsigned int ready
: 1; /* do we know where this label is yet? */
39 #define LL_SIZE(entries) (((entries) * sizeof(struct label_ *)) + sizeof(struct label_list_))
44 struct label_ label
[];
47 #endif /* AS_DCPU16_H_PTFNJB09 */