X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=direct.c;h=aebe56648760f3ee3add972e7ef1b68eb56c44de;hp=6a41e82ed9991b9b9a5cd6f8506f42b5b0494b7d;hb=968958cccf9201debee2cb0d4856cb5b55c6867d;hpb=ff2052bcaa1428a33a202822a81a6f9b8e567ef4 diff --git a/direct.c b/direct.c index 6a41e82..aebe566 100644 --- a/direct.c +++ b/direct.c @@ -27,6 +27,7 @@ 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); @@ -989,8 +990,21 @@ int d_dc(WORD siz) if ((challoc - ch_size) < i) chcheck(i); - for(p=string[tok[1]]; *p!=EOS; p++) - D_byte(*p); + if (stringtype == NORMAL) + { + for(p=string[tok[1]]; *p!=EOS; p++) + D_byte(*p); + } + else if(stringtype == A8INT) + { + for(p=string[tok[1]]; *p!=EOS; p++) + D_byte(strtoa8[*p]); + } + else + { + error("String format not supported... yet"); + } + tok += 2; goto comma;