mirror of
https://github.com/cc65/cc65.git
synced 2024-10-04 18:57:06 +00:00
Only for jumps, the lib uses named asm labels in branches
This commit is contained in:
parent
c3d809b129
commit
2af76c7cff
@ -429,7 +429,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
|
|||||||
/* If we don't have the label, it's a forward ref - create it unless
|
/* If we don't have the label, it's a forward ref - create it unless
|
||||||
** it's an external function.
|
** it's an external function.
|
||||||
*/
|
*/
|
||||||
if (Label == 0 && IsLocalLabelName(Arg)) {
|
if (Label == 0 && (OPC->OPC != OP65_JMP || IsLocalLabelName(Arg)) ) {
|
||||||
/* Generate a new label */
|
/* Generate a new label */
|
||||||
Label = CS_NewCodeLabel (S, Arg, Hash);
|
Label = CS_NewCodeLabel (S, Arg, Hash);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user