Implemented register calls

This commit is contained in:
2025-03-02 17:53:18 +01:00
parent d7f30d8319
commit c3054369e3
16 changed files with 133 additions and 43 deletions

View File

@ -19,7 +19,7 @@ func (f *Function) CallSafe(fn *Function, registers []cpu.Register) {
}
}
f.Call(fn.UniqueName)
f.Label(asm.CALL, fn.UniqueName)
for _, register := range slices.Backward(f.CPU.General) {
if f.RegisterIsUsed(register) {