X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=listing.c;h=68d6c6f42141ad952bb4d841e94c8eb2693d3b52;hp=3d632560ab89ccf8ce561a29b8d9fb6e10628f74;hb=052be802baa4836564801c780b1d432cfe17c576;hpb=a5aa8711ae41356bb9c4c853bc07d96efae0b5d6 diff --git a/listing.c b/listing.c index 3d63256..68d6c6f 100644 --- 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;