mirror of
https://github.com/cc65/cc65.git
synced 2025-04-09 10:39:40 +00:00
Add a goto indirect jump from pointer
This commit is contained in:
parent
37f00e6644
commit
c2220f3c30
@ -58,6 +58,7 @@
|
||||
|
||||
struct Segments;
|
||||
struct LiteralPool;
|
||||
struct CodeEntry;
|
||||
|
||||
|
||||
|
||||
@ -138,6 +139,7 @@ struct SymEntry {
|
||||
struct {
|
||||
unsigned Label;
|
||||
Collection *DefsOrRefs;
|
||||
struct CodeEntry *IndJumpFrom;
|
||||
} L;
|
||||
|
||||
/* Value of SP adjustment needed after forward 'goto' */
|
||||
|
@ -777,6 +777,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
|
||||
|
||||
/* Set a new label number */
|
||||
Entry->V.L.Label = GetLocalLabel ();
|
||||
Entry->V.L.IndJumpFrom = NULL;
|
||||
|
||||
/* Create Collection for label definition and references */
|
||||
Entry->V.L.DefsOrRefs = NewCollection ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user