]> Shamusworld >> Repos - rmac/blobdiff - listing.c
6502 support added back from original Madmac sources!
[rmac] / listing.c
index 3d632560ab89ccf8ce561a29b8d9fb6e10628f74..68d6c6f42141ad952bb4d841e94c8eb2693d3b52 100644 (file)
--- a/listing.c
+++ b/listing.c
@@ -301,11 +301,14 @@ void listeol(void)
        {
                ch = sect[lcursect].sfcode;
 
+               if (lcursect != M6502)
+        {
                for(; ch!=NULL; ch=ch->chnext)
                {
                        if (lsloc >= ch->chloc && lsloc < (ch->chloc + ch->ch_size))
                                break;
                }
+        }
 
                // Fatal: Can't find chunk holding code
                if (ch == NULL)
@@ -331,7 +334,8 @@ nochunk:
                                strncpy(lnimage + LOC_COL, buf, 8);
                        }
 
-                       if (lsloc >= (ch->chloc + ch->ch_size))
+                       if (lcursect != M6502 &&
+                    lsloc >= (ch->chloc + ch->ch_size))
                        {
                                if ((ch = ch->chnext) == NULL)
                                        goto nochunk;