Mercurial > hg > Members > kono > os9 > sbc09
comparison src/a09.c @ 118:8f2154d95a04
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 04 Jan 2019 10:47:39 +0900 |
parents | 844305752064 |
children | b4e43c5bc0fd |
comparison
equal
deleted
inserted
replaced
117:f8f44153f8c1 | 118:8f2154d95a04 |
---|---|
657 4=pcrelative(with postbyte) 5=indirect 6=pcrel&indirect*/ | 657 4=pcrelative(with postbyte) 5=indirect 6=pcrel&indirect*/ |
658 char opsize; /*desired operand size 0=dunno,1=5,2=8,3=16*/ | 658 char opsize; /*desired operand size 0=dunno,1=5,2=8,3=16*/ |
659 short operand; | 659 short operand; |
660 unsigned char postbyte; | 660 unsigned char postbyte; |
661 | 661 |
662 int dpsetting; | 662 int dpsetting = 0; |
663 | 663 |
664 | 664 |
665 int scanindexreg() | 665 int scanindexreg() |
666 { | 666 { |
667 char c; | 667 char c; |
822 if(*srcptr==',') { | 822 if(*srcptr==',') { |
823 srcptr++; | 823 srcptr++; |
824 scanindexed(); | 824 scanindexed(); |
825 } else { | 825 } else { |
826 if(opsize==0) { | 826 if(opsize==0) { |
827 if(unknown||!certain||dpsetting==-1|| | 827 if(unknown||dpsetting==-1|| // omit !certain |
828 (unsigned short)(operand-dpsetting*256)>=256) | 828 ((((operand&0xff00)>>8))!=dpsetting)) |
829 opsize=3; else opsize=2; | 829 opsize=3; else opsize=2; |
830 } | 830 } |
831 if(opsize==1)opsize=2; | 831 if(opsize==1)opsize=2; |
832 if(mode==5){ | 832 if(mode==5){ |
833 postbyte=0x8f; | 833 postbyte=0x8f; |