From 7fc8678eecebd12588bbef797b816dc4ded37bec Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Tue, 12 Jun 2018 23:34:16 +0200 Subject: [PATCH] Better logging when shortening jumps --- src/main/scala/millfork/assembly/mos/opt/JumpShortening.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/millfork/assembly/mos/opt/JumpShortening.scala b/src/main/scala/millfork/assembly/mos/opt/JumpShortening.scala index 78eadbb4..8b1a8189 100644 --- a/src/main/scala/millfork/assembly/mos/opt/JumpShortening.scala +++ b/src/main/scala/millfork/assembly/mos/opt/JumpShortening.scala @@ -65,6 +65,7 @@ object JumpShortening { if (bra != JMP) { val result = line.copy(opcode = bra, addrMode = AddrMode.Relative) ErrorReporting.debug("Changing branch from long to short") + ErrorReporting.trace(info.statusBefore.toString) ErrorReporting.trace(line.toString) ErrorReporting.trace(" ↓") ErrorReporting.trace(result.toString)