1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-06-06 20:29:34 +00:00

Register macro name for Flavors that need it.

This commit is contained in:
Zellyn Hunter 2014-06-19 16:46:48 -07:00
parent 65c391cc46
commit 6a51d73b66

View File

@ -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())