X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.h;h=073d625d62779f2b6db06e1af063cbdff909026b;hp=f2aee8da27ac65d4fe504a08ac4449d9a1a9f859;hb=c2caacfdc844e2f8b5d05b0699fbacc04b4ce8ea;hpb=582df8950c285e1746d0c4a9e3ead6545c962dc8 diff --git a/sect.h b/sect.h index f2aee8d..073d625 100644 --- a/sect.h +++ b/sect.h @@ -23,6 +23,15 @@ *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