X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.h;h=f7c3aafd8a3fde6c5c4a876230a3afb3ec01422a;hp=8759eda1dcbd9c41a996f1a5be7fae3847d1c08b;hb=3f2bccb78ab4cd59654d521c8aedfe5512ee6608;hpb=062214e62031c26d372edc2e68473ebb64f6a506 diff --git a/sect.h b/sect.h index 8759eda..f7c3aaf 100644 --- a/sect.h +++ b/sect.h @@ -25,6 +25,9 @@ //#define D_rlong(lw) {*chptr++=(char)(lw>>16);*chptr++=(char)(lw>>24);\ // *chptr++=(char)lw;*chptr++=(char)(lw>>8); \ // sloc+=4; ch_size += 4;if(orgactive) orgaddr += 4;} +// Fill n bytes with zeroes +#define D_ZEROFILL(n) {memset(chptr, 0, n); chptr+=n; sloc+=n; ch_size+=n;\ + if (orgactive) orgaddr+=n;} #define NSECTS 16 // Max. number of sections