comparison 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
comparison
equal deleted inserted replaced
11:ce7323f9b937 12:111e5defb8ab
931 case 3: putword(operand); 931 case 3: putword(operand);
932 } 932 }
933 break; 933 break;
934 case 4: case 6: offs=(unsigned short)operand-loccounter-codeptr-2; 934 case 4: case 6: offs=(unsigned short)operand-loccounter-codeptr-2;
935 if(offs<-128||offs>=128||opsize==3||unknown||!certain) { 935 if(offs<-128||offs>=128||opsize==3||unknown||!certain) {
936 if((!unknown)&&opsize==2&&(offs<-128||offs>=128) ) 936 if((!unknown)&&opsize==2&&(offs<-128||offs>=128) )
937 error|=16; 937 error|=16;
938 // offs--; 938 offs--;
939 // opsize=3; 939 opsize=3;
940 // postbyte++; 940 postbyte++;
941 } 941 }
942 putbyte(postbyte); 942 putbyte(postbyte);
943 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); 943 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);
944 if(opsize==3)putword(offs); 944 if(opsize==3)putword(offs);
945 else putbyte(offs); 945 else putbyte(offs);