Added call registers

This commit is contained in:
2024-06-27 14:25:53 +02:00
parent 735057ac74
commit dc497ba4fb
8 changed files with 53 additions and 44 deletions

View File

@ -29,12 +29,12 @@ func (f *Function) CompileVariableDefinition(expr *expression.Expression) error
return err
}
f.CPU.Use(reg)
f.Variables[name] = &Variable{
variable := &Variable{
Name: name,
Register: reg,
}
f.Variables[name] = variable
f.CPU.Use(reg)
return nil
}