]> Shamusworld >> Repos - rmac/blobdiff - direct.c
6502 mode: fix clearing of its RAM space with each .6502 invocation. Also fixed chptr...
[rmac] / direct.c
index 6a41e82ed9991b9b9a5cd6f8506f42b5b0494b7d..b7dfb853791d4e236d8803c2ec4ca576b20312d0 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++)
+            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;