]> Shamusworld >> Repos - rmac/blobdiff - direct.c
Version bump for last commit. ;-)
[rmac] / direct.c
index 6a41e82ed9991b9b9a5cd6f8506f42b5b0494b7d..aebe56648760f3ee3add972e7ef1b68eb56c44de 100644 (file)
--- 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;