From 44c82eb1c3f0360aa70d1ce77a16989e5567b59b Mon Sep 17 00:00:00 2001 From: Greg King Date: Tue, 21 Jul 2020 18:25:26 -0400 Subject: [PATCH] Made da65 disassemble branch instructions with relative address expression operands if there's no label. --- src/da65/handler.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/da65/handler.c b/src/da65/handler.c index f8a778b22..255b8da86 100644 --- a/src/da65/handler.c +++ b/src/da65/handler.c @@ -346,7 +346,12 @@ void OH_Relative (const OpcDesc* D) GenerateLabel (D->Flags, Addr); /* Output the line */ - OneLine (D, "%s", GetAddrArg (D->Flags, Addr)); + if (HaveLabel(Addr)) { + OneLine (D, "%s", GetAddrArg (D->Flags, Addr)); + } else { + /* No label -- make a relative address expression */ + OneLine (D, "* + (%d)", (int) Offs + 2); + } }