]> 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 9ef0bcb2065c1ed1f5248a7ed0d9ba35f379d699..e3ef93fd458b31cb956dcf888ea27cbc1f3869b6 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -1,12 +1,13 @@
 //
 // RMAC - Reboot's Macro Assembler for all Atari computers
 // DEBUG.C - Debugging Messages
-// Copyright (C) 199x Landon Dyer, 2011-2018 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2019 Reboot and Friends
 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
 // Source utilised with the kind permission of Landon Dyer
 //
 
 #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)