mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
Made da65 disassemble branch instructions with relative address expression operands if there's no label.
This commit is contained in:
@@ -346,7 +346,12 @@ void OH_Relative (const OpcDesc* D)
|
|||||||
GenerateLabel (D->Flags, Addr);
|
GenerateLabel (D->Flags, Addr);
|
||||||
|
|
||||||
/* Output the line */
|
/* Output the line */
|
||||||
|
if (HaveLabel(Addr)) {
|
||||||
OneLine (D, "%s", GetAddrArg (D->Flags, Addr));
|
OneLine (D, "%s", GetAddrArg (D->Flags, Addr));
|
||||||
|
} else {
|
||||||
|
/* No label -- make a relative address expression */
|
||||||
|
OneLine (D, "* + (%d)", (int) Offs + 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user