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 4 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],

BIN
tests/test4502.bin Normal file

Binary file not shown.

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