diff --git a/src/build/core/TokenToRegister.go b/src/build/core/TokenToRegister.go index 6dd6c8c..a7e32f3 100644 --- a/src/build/core/TokenToRegister.go +++ b/src/build/core/TokenToRegister.go @@ -19,8 +19,8 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error { return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, t.Position) } - f.RegisterRegister(asm.MOVE, register, variable.Register) f.UseVariable(variable) + f.RegisterRegister(asm.MOVE, register, variable.Register) return nil case token.Number, token.Rune: