Improved assembler

This commit is contained in:
Eduard Urbach 2024-06-26 14:14:11 +02:00
parent 47d94acd43
commit c5b61c1148
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 85 additions and 46 deletions

View file

@ -32,7 +32,7 @@ func (f *Function) CompileVariableDefinition(expr *expression.Expression) error
return err
}
reg, exists := f.CPU.FindFree()
reg, exists := f.CPU.FindFree(f.CPU.General)
if !exists {
panic("no free registers")