1
0
mirror of https://github.com/cc65/cc65.git synced 2025-03-01 11:29:27 +00:00
This commit is contained in:
mrdudz 2020-07-22 15:56:23 +02:00
commit ffaae965d4

View File

@ -346,7 +346,12 @@ void OH_Relative (const OpcDesc* D)
GenerateLabel (D->Flags, Addr); GenerateLabel (D->Flags, Addr);
/* Output the line */ /* 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);
}
} }