X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=direct.c;h=b7dfb853791d4e236d8803c2ec4ca576b20312d0;hp=6a41e82ed9991b9b9a5cd6f8506f42b5b0494b7d;hb=2161b198b7b333147c89ef0346d8e9bb6ab9ffd9;hpb=945e321301df72bccb8d6abf2975b6871926b9a0 diff --git a/direct.c b/direct.c index 6a41e82..b7dfb85 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++) + 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;