Implement op -0x7f (turning point!)

This commit is contained in:
Takashi Toyoshima 2014-12-06 23:29:28 +09:00
parent 428c8b54c5
commit 34f60ed8b6

78
6502.S
View File

@ -462,6 +462,14 @@ op64:
op67: op67:
op6b: op6b:
op6f: op6f:
op72:
op73:
op74:
op77:
op7a:
op7b:
op7c:
op7f:
_nop _nop
_decode _decode
@ -823,39 +831,49 @@ op6e: // ROR - Absolute
_toAddr _toAddr
_decode _decode
op70: op70: // BVS (V==1)
b quit movs r0, #FLAG_V
op71: tst SR, r0
b quit beq 1f
op72: _bxx
b quit 1:
op73: _decode
b quit
op74: op71: // ADC - (Indirect), Y
b quit _fromIndirectIndex
op75: _adc
b quit _decode
op76:
b quit op75: // ADC - Zero Page, X
op77: _fromZeroIndex RX
b quit _adc
_decode
op76: // ROR - Zero Page, X
_fromZeroIndex RX
_ror
_toAddr
_decode
op78: // SEI op78: // SEI
_sex FLAG_I _sex FLAG_I
_decode _decode
op79:
b quit op79: // ADC - Absolute, Y
op7a: _fromAbsoluteIndexed RY
b quit _adc
op7b: _decode
b quit
op7c: op7d: // ADC - Absolute, X
b quit _fromAbsoluteIndexed RX
op7d: _adc
b quit _decode
op7e:
b quit op7e: // ROR - Absolute, X
op7f: _fromAbsoluteIndexed RX
b quit _ror
_decode
op80: op80:
b quit b quit
op81: op81: