]> Shamusworld >> Repos - rmac/blobdiff - sect.h
Modified IMACRO and IREPT to store line numbers during definition - error now correct...
[rmac] / sect.h
diff --git a/sect.h b/sect.h
index f2aee8da27ac65d4fe504a08ac4449d9a1a9f859..073d625d62779f2b6db06e1af063cbdff909026b 100644 (file)
--- a/sect.h
+++ b/sect.h
                                                *chptr++=(uint8_t)((lw)>>8); \
                                                *chptr++=(uint8_t)(lw); \
                                                sloc += 4; ch_size += 4; if(orgactive) orgaddr += 4;}
+#define D_quad(qw)     {*chptr++=(uint8_t)((qw)>>56); \
+                                               *chptr++=(uint8_t)((qw)>>48);\
+                                               *chptr++=(uint8_t)((qw)>>40);\
+                                               *chptr++=(uint8_t)((qw)>>32);\
+                                               *chptr++=(uint8_t)((qw)>>24);\
+                                               *chptr++=(uint8_t)((qw)>>16);\
+                                               *chptr++=(uint8_t)((qw)>>8); \
+                                               *chptr++=(uint8_t)(qw); \
+                                               sloc += 8; ch_size += 8; if(orgactive) orgaddr += 8;}
 #define D_rword(w)     {*chptr++=(uint8_t)(w); *chptr++=(uint8_t)((w)>>8); \
                                                sloc+=2; ch_size+=2;if(orgactive) orgaddr += 2;}
 #define D_single(w) {chcheck(4);*chptr++ = ((char *)&w)[3]; \
@@ -70,7 +79,9 @@
 
 #else
 
-#error Please implement a non-byte swapped D_extend!
+WARNING(Please implement a non-byte swapped D_extend!)
+//stopgap for now, until this can be implemented proppa-ly :-P
+#define D_extend(w) {chcheck(12); chptr+=12; sloc+=12; ch_size+=12; if(orgactive) orgaddr +=12;}
 
 #endif
 // Fill n bytes with zeroes