# HG changeset patch # User Shinji KONO # Date 1531778879 -32400 # Node ID 1d3057b6b786443666670b60596c08db392daf1e # Parent 52f7ad4c2ebbdc006cb5f65411103a6fa66baebf rmb counter on pass 2 diff -r 52f7ad4c2ebb -r 1d3057b6b786 a09.c --- a/a09.c Tue Jul 17 06:41:02 2018 +0900 +++ b/a09.c Tue Jul 17 07:07:59 2018 +0900 @@ -1171,7 +1171,7 @@ void os9begin() { generate(); - os9=1; // contiguous code generation ( i.e. ignore org nor rmb ) + os9=1; // contiguous code generation ( seprate rmb and code ) oldlc = loccounter = rmbcounter = rmbmode = 0; reset_crc(); putword(0x87cd); @@ -1193,6 +1193,7 @@ } prevloc = codeptr; rmbmode = 1; // next org works on rmb + rmbcounter=0; loccounter = 0x10000-codeptr; // should start at 0 } @@ -1203,6 +1204,7 @@ putbyte((crc>>16)&0xff); putbyte((crc>>8)&0xff); putbyte(crc&0xff); + os9 = 0; } @@ -1647,6 +1649,7 @@ pass=2; prevloc = 0; loccounter=0; + rmbcounter=0; errors=0; generating=0; terminate=0;