1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-06-15 18:29:47 +00:00

disasm: correct switched X and Y indirect modes, fix spacing

This commit is contained in:
Zellyn Hunter 2013-02-27 22:43:31 -08:00
parent e8738b3d74
commit a8a8074b63

View File

@ -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 " "
}