Mercurial > hg-old > index.cgi
comparison lwasm/lwasm.h @ 204:048ebb85f6ef
Added 8 bit external references for base page addressing mode
author | lost |
---|---|
date | Sun, 29 Mar 2009 14:52:28 +0000 |
parents | 6ddc861a07d4 |
children | 59a138df0401 |
comparison
equal
deleted
inserted
replaced
203:2c1afbdb2de0 | 204:048ebb85f6ef |
---|---|
35 // structure for tracking sections | 35 // structure for tracking sections |
36 typedef struct section_reloc_list_s section_reloc_list_t; | 36 typedef struct section_reloc_list_s section_reloc_list_t; |
37 struct section_reloc_list_s | 37 struct section_reloc_list_s |
38 { | 38 { |
39 int offset; // offset into section | 39 int offset; // offset into section |
40 int relocsize; // size of relocation in bytes | |
40 lwasm_expr_stack_t *expr; // value definition | 41 lwasm_expr_stack_t *expr; // value definition |
41 int context; // symbol context (for local syms) | 42 int context; // symbol context (for local syms) |
42 section_reloc_list_t *next; // next relocation | 43 section_reloc_list_t *next; // next relocation |
43 }; | 44 }; |
44 | 45 |
111 int forceglobal; // force a "global" symbol definition if constant | 112 int forceglobal; // force a "global" symbol definition if constant |
112 | 113 |
113 // the following are used for obj format - for external references, inter-section | 114 // the following are used for obj format - for external references, inter-section |
114 // references, and intrasection relocations | 115 // references, and intrasection relocations |
115 int relocoff; // offset into insn where relocation value goes | 116 int relocoff; // offset into insn where relocation value goes |
117 int reloc8bit; // size of relocation (0 = 16 bit, 1 = 8 bit) | |
116 lwasm_expr_stack_t *exprs[4]; // non-constant expression values | 118 lwasm_expr_stack_t *exprs[4]; // non-constant expression values |
117 int exprvals[4]; // constant expression values | 119 int exprvals[4]; // constant expression values |
118 char *exprends[4]; // pointer to character after end of expression | 120 char *exprends[4]; // pointer to character after end of expression |
119 | 121 |
120 sectiontab_t *sect; // which section is the line in? | 122 sectiontab_t *sect; // which section is the line in? |