diff 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
line wrap: on
line diff
--- a/lwlink/lwlink.h	Sun Mar 22 22:11:12 2009 +0000
+++ b/lwlink/lwlink.h	Sun Mar 29 14:52:28 2009 +0000
@@ -39,10 +39,13 @@
 	symtab_t *next;			// next symbol
 };
 
+#define RELOC_NORM	0		// all default (16 bit)
+#define RELOC_8BIT	1		// only use the low 8 bits for the reloc
 typedef struct reloc_s reloc_t;
 struct reloc_s
 {
 	int offset;				// where in the section
+	int flags;				// flags for the relocation
 	lw_expr_stack_t *expr;	// the expression to calculate it
 	reloc_t *next;			// ptr to next relocation
 };