mirror of
https://github.com/zellyn/go6502.git
synced 2025-03-22 18:30:12 +00:00
disasm: correct switched X and Y indirect modes, fix spacing
This commit is contained in:
parent
e8738b3d74
commit
a8a8074b63
@ -50,9 +50,9 @@ func addrString(pc uint16, byte1, byte2 byte, length int, mode int) string {
|
||||
case cpu.MODE_ZP_Y:
|
||||
return fmt.Sprintf("$%02X,Y ", byte1)
|
||||
case cpu.MODE_INDIRECT_Y:
|
||||
return fmt.Sprintf("($%02X,X) ", byte1)
|
||||
return fmt.Sprintf("($%02X),Y", byte1)
|
||||
case cpu.MODE_INDIRECT_X:
|
||||
return fmt.Sprintf("($%02X),Y ", byte1)
|
||||
return fmt.Sprintf("($%02X,X)", byte1)
|
||||
case cpu.MODE_A:
|
||||
return " "
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user