mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-22 09:30:19 +00:00
Double read on INC to pass a2audit tests
This commit is contained in:
parent
696038fa30
commit
cd9c4e2b41
@ -13,6 +13,10 @@ func buildOpTransfer(regSrc int, regDst int) opFunc {
|
|||||||
func buildOpIncDec(inc bool) opFunc {
|
func buildOpIncDec(inc bool) opFunc {
|
||||||
return func(s *State, line []uint8, opcode opcode) {
|
return func(s *State, line []uint8, opcode opcode) {
|
||||||
value := resolveValue(s, line, opcode)
|
value := resolveValue(s, line, opcode)
|
||||||
|
if opcode.addressMode == modeAbsoluteX || opcode.addressMode == modeAbsoluteY {
|
||||||
|
// Double read, needed to pass A2Audit for the Language Card
|
||||||
|
value = resolveValue(s, line, opcode)
|
||||||
|
}
|
||||||
if inc {
|
if inc {
|
||||||
value++
|
value++
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user