]> Shamusworld >> Repos - rmac/blobdiff - debug.c
Long forgotten helper script which is used to create tables for VS builds
[rmac] / debug.c
diff --git a/debug.c b/debug.c
index 1b9b651515202ec2da47006af0a0d259fce563e2..e3ef93fd458b31cb956dcf888ea27cbc1f3869b6 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -7,6 +7,7 @@
 //
 
 #include "debug.h"
+#include "6502.h"
 #include "amode.h"
 #include "direct.h"
 #include "expr.h"
@@ -220,8 +221,6 @@ int mdump(char * start, LONG count, int flg, LONG base)
                                start[i+2] & 0xFF, start[i+3] & 0xFF);
                        i += 4;
                        break;
-               case 3:
-                       break;
                }
 
                if (base != -1)
@@ -417,6 +416,10 @@ void DumpTokens(TOKEN * tokenBuffer)
 //
 int dump_everything(void)
 {
+       // FFS
+       if ((currentorg[1] - currentorg[0]) == 0)
+               sect[M6502].sfcode = NULL;
+
        for(int i=1; i<NSECTS; i++)
        {
                if (sect[i].scattr & SUSED)