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:
parent
eb094ecf6a
commit
44c82eb1c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user