1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Made da65 disassemble branch instructions with relative address expression operands if there's no label.

This commit is contained in:
Greg King 2020-07-21 18:25:26 -04:00
parent eb094ecf6a
commit 44c82eb1c3

View File

@ -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);
}
}