Mercurial > hg > Members > kono > os9 > sbc09
changeset 39:1d3057b6b786
rmb counter on pass 2
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jul 2018 07:07:59 +0900 |
parents | 52f7ad4c2ebb |
children | b8fa36c04ff7 |
files | a09.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;