mirror of
https://github.com/cc65/cc65.git
synced 2025-03-01 11:29:27 +00:00
Merge branch 'master' of https://github.com/cc65/cc65
This commit is contained in:
commit
ffaae965d4
@ -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…
x
Reference in New Issue
Block a user