Improved code generation
This commit is contained in:
parent
75672c1e16
commit
0a661b4345
9 changed files with 70 additions and 23 deletions
|
@ -23,7 +23,8 @@ func (f *Function) Execute(operation token.Token, register cpu.Register, value *
|
|||
return f.ExecuteRegisterRegister(operation, register, f.cpu.Output[0])
|
||||
}
|
||||
|
||||
tmp := f.cpu.MustUseFree(f.cpu.General)
|
||||
tmp := f.cpu.MustFindFree(f.cpu.General)
|
||||
f.cpu.Use(tmp)
|
||||
defer f.cpu.Free(tmp)
|
||||
|
||||
err := f.ExpressionToRegister(value, tmp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue