X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=debug.c;h=4f64eb40bd9d01c69059b59f6dabf45204d529ce;hp=1b9b651515202ec2da47006af0a0d259fce563e2;hb=HEAD;hpb=bdbf34766f4d074a5933eb1326fe4ce03d249e10 diff --git a/debug.c b/debug.c index 1b9b651..bf5dbb5 100644 --- a/debug.c +++ b/debug.c @@ -1,12 +1,13 @@ // -// RMAC - Reboot's Macro Assembler for all Atari computers +// RMAC - Macro Assembler for all Atari computers // DEBUG.C - Debugging Messages -// Copyright (C) 199x Landon Dyer, 2011-2019 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2021 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) @@ -384,6 +383,8 @@ void DumpTokens(TOKEN * tokenBuffer) printf("[ENDEXPR]"); else if (*t == CR_ABSCOUNT) printf("[CR_ABSCOUNT]"); + else if (*t == CR_FILESIZE) + printf("[CR_FILESIZE]"); else if (*t == CR_DEFINED) printf("[CR_DEFINED]"); else if (*t == CR_REFERENCED) @@ -417,6 +418,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