mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-12-21 18:29:45 +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 {
|
||||
return func(s *State, line []uint8, opcode 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 {
|
||||
value++
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user