mirror of
https://github.com/zellyn/go6502.git
synced 2025-01-14 15:30:09 +00:00
Register macro name for Flavors that need it.
This commit is contained in:
parent
65c391cc46
commit
6a51d73b66
@ -165,6 +165,7 @@ func (a *Assembler) readMacro(in inst.I, ls lines.LineSource) error {
|
||||
in2, err := a.Flavor.ParseInstr(line)
|
||||
if err == nil && in2.Type == inst.TypeMacroEnd {
|
||||
a.Macros[m.Name] = m
|
||||
a.Flavor.AddMacroName(m.Name)
|
||||
return nil
|
||||
}
|
||||
m.Lines = append(m.Lines, line.Parse.Text())
|
||||
|
Loading…
x
Reference in New Issue
Block a user