Mercurial > hg > Members > kono > os9 > sbc09
diff a09.c @ 12:111e5defb8ab
boot is called, rti failed
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Jul 2018 00:37:24 +0900 |
parents | ce7323f9b937 |
children | bb6a2a9f59f1 |
line wrap: on
line diff
--- a/a09.c Fri Jul 06 18:31:38 2018 +0900 +++ b/a09.c Sat Jul 07 00:37:24 2018 +0900 @@ -933,11 +933,11 @@ break; case 4: case 6: offs=(unsigned short)operand-loccounter-codeptr-2; if(offs<-128||offs>=128||opsize==3||unknown||!certain) { - if((!unknown)&&opsize==2&&(offs<-128||offs>=128) ) - error|=16; - // offs--; - // opsize=3; - // postbyte++; + if((!unknown)&&opsize==2&&(offs<-128||offs>=128) ) + error|=16; + offs--; + opsize=3; + postbyte++; } putbyte(postbyte); if (debug) fprintf(stderr,"DEBUG: doaddress: mode=%d, opsize=%d, error=%d, postbyte=%02X, operand=%04X offs=%d\n",mode,opsize,error,postbyte,operand,offs);