Mercurial > hg-old > index.cgi
comparison lwlink/lwlink.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 | 857cb407229e |
children | 42df94f30d82 |
comparison
equal
deleted
inserted
replaced
203:2c1afbdb2de0 | 204:048ebb85f6ef |
---|---|
37 int offset; // local offset | 37 int offset; // local offset |
38 // int realval; // resolved value | 38 // int realval; // resolved value |
39 symtab_t *next; // next symbol | 39 symtab_t *next; // next symbol |
40 }; | 40 }; |
41 | 41 |
42 #define RELOC_NORM 0 // all default (16 bit) | |
43 #define RELOC_8BIT 1 // only use the low 8 bits for the reloc | |
42 typedef struct reloc_s reloc_t; | 44 typedef struct reloc_s reloc_t; |
43 struct reloc_s | 45 struct reloc_s |
44 { | 46 { |
45 int offset; // where in the section | 47 int offset; // where in the section |
48 int flags; // flags for the relocation | |
46 lw_expr_stack_t *expr; // the expression to calculate it | 49 lw_expr_stack_t *expr; // the expression to calculate it |
47 reloc_t *next; // ptr to next relocation | 50 reloc_t *next; // ptr to next relocation |
48 }; | 51 }; |
49 | 52 |
50 typedef struct fileinfo_s fileinfo_t; | 53 typedef struct fileinfo_s fileinfo_t; |