X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;h=cbb15187fa8f6514af7386463d1f1ac1b128e99f;hp=7a88a5610693f2271e5154f75aab471d0b0bf887;hb=2161b198b7b333147c89ef0346d8e9bb6ab9ffd9;hpb=945e321301df72bccb8d6abf2975b6871926b9a0 diff --git a/sect.c b/sect.c index 7a88a56..cbb1518 100644 --- a/sect.c +++ b/sect.c @@ -130,6 +130,11 @@ void SwitchSection(int sno) challoc = cp->challoc; ch_size = cp->ch_size; chptr = cp->chptr + ch_size; + if (m6502) + { + // For 6502 mode, add the last org'd address + chptr = cp->chptr + orgaddr; + } } else challoc = ch_size = 0;