4502 instructions INW and DEW are Zero Page, not Absolute

This commit is contained in:
gardners 2014-03-23 16:51:01 +10:30
parent adf965fc9d
commit a7994f9e85
3 changed files with 5 additions and 4 deletions

View File

@ -427,7 +427,7 @@ csg4502extensions = {
None, None, None, None, None, None, None, None, None, None, None, None, None],
'dec': [0x3A, None, None, 0xC6, 0xD6, None, 0xCE, 0xDE,
None, None, None, None, None, None, None, None, None, None, None, None, None],
'dew': [None, None, None, None, None, None, 0xC3, None,
'dew': [None, None, None, 0xC3, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None, None],
'dez': [0x3B, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None, None],
@ -437,7 +437,7 @@ csg4502extensions = {
0x59, None, None, None, None, None, 0x41, 0x51, None, 0x52, None, None, None],
'inc': [0x1A, None, None, 0xE6, 0xF6, None, 0xEE, 0xFE,
None, None, None, None, None, None, None, None, None, None, None, None, None],
'inw': [None, None, None, None, None, None, 0xE3, None,
'inw': [None, None, None, 0xE3, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None, None],
'inz': [0x1B, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None, None],

1
tests/test4502.bin Normal file
View File

@ -0,0 +1 @@
 """###''+///224477::;<<<???BCGGKOOORRWWZ[\___bbddggklllooorrttwwz{|||€€噰墘媼嫃弿拻棗洓洔湝灋灍煙Ё<EFBC83><D081><EFBFBD>膊贩换患技靠柯旅们撬怂舷弦易宗圻哌忖沣翡溏珀腚腼镲蝌鼢<E89D8C><E9BCA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@ -82,7 +82,7 @@
LDY $BCBC,X ; BC: LDY - Absolute, X
BBS3 $BF, ^-$3E ; BF: BBS3 - Zero Page, Relative
CPZ #$C2 ; C2: CPZ - Immediate
DEW $C3C3 ; C3: DEW - Absolute
DEW $C3 ; C3: DEW - Zero Page
SMB4 $C7 ; C7: SMB4 - Zero Page
ASW $CBCB ; CB: ASW - Absolute
BBS4 $CF, ^-$2E ; CF: BBS4 - Zero Page, Relative
@ -92,7 +92,7 @@
PHZ ; DB: PHZ - Implied
BBS5 $DF, ^-$1E ; DF: BBS5 - Zero Page, Relative
LDA ($E2,SP),Y ; E2: LDA - (Zero Page, SP), Y
INW $E3E3 ; E3: INW - Absolute
INW $E3 ; E3: INW - Zero Page
PHW #$E4E4 ; E4: PHW - ImmediateLong
SMB6 $E7 ; E7: SMB6 - Zero Page
EOM ; EA: EOM - Implied