X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=direct.c;h=900c629a3b686d392b207cf4e36bad04adab8991;hp=aebe56648760f3ee3add972e7ef1b68eb56c44de;hb=a3feec3b2d24d0f4685549a5059a210e074c2b99;hpb=005275defacb4b5d2f511bf7357ac7720f807761 diff --git a/direct.c b/direct.c index aebe566..900c629 100644 --- a/direct.c +++ b/direct.c @@ -27,7 +27,6 @@ TOKEN exprbuf[128]; // Expression buffer SYM * symbolPtr[1000000]; // Symbol pointers table static long unused; // For supressing 'write' warnings char buffer[256]; // Scratch buffer for messages -int stringtype; // Non-zero if we need any special string conversions // Function prototypes int d_unimpl(void); @@ -983,19 +982,19 @@ int d_dc(WORD siz) for(;; tok++) { // dc.b 'string' [,] ... - if (siz == SIZB && *tok == STRING && (tok[2] == ',' || tok[2] == EOL)) + if (siz == SIZB && (*tok == STRING || *tok == STRINGA8) && (tok[2] == ',' || tok[2] == EOL)) { uint32_t i = strlen(string[tok[1]]); if ((challoc - ch_size) < i) chcheck(i); - if (stringtype == NORMAL) + if (*tok == STRING) { for(p=string[tok[1]]; *p!=EOS; p++) D_byte(*p); } - else if(stringtype == A8INT) + else if(*tok == STRINGA8) { for(p=string[tok[1]]; *p!=EOS; p++) D_byte(strtoa8[*p]);