From a8a8074b63d1c6c16d5c9b3868fc3867799eb7f1 Mon Sep 17 00:00:00 2001 From: Zellyn Hunter Date: Wed, 27 Feb 2013 22:43:31 -0800 Subject: [PATCH] disasm: correct switched X and Y indirect modes, fix spacing --- asm/disasm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asm/disasm.go b/asm/disasm.go index 8bd12ff..7379589 100644 --- a/asm/disasm.go +++ b/asm/disasm.go @@ -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 " " }