Separated compiler into its own package
This commit is contained in:
@ -41,7 +41,7 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error {
|
||||
f.count.data++
|
||||
label := fmt.Sprintf("%s_data_%d", f.Name, f.count.data)
|
||||
value := t.Bytes[1 : len(t.Bytes)-1]
|
||||
f.assembler.SetData(label, value)
|
||||
f.Assembler.SetData(label, value)
|
||||
f.RegisterLabel(asm.MOVE, register, label)
|
||||
return nil
|
||||
|
||||
|
Reference in New Issue
Block a user