From 548e3475fb3461446425bc89ee8d266f5893d84a Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 2 Aug 2024 10:46:39 +0200 Subject: [PATCH] Improved visualization of register usage --- src/build/core/TokenToRegister.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: