Added more tests
This commit is contained in:
@ -50,13 +50,3 @@ func (f *Function) CompileCall(root *expression.Expression) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// CompileSyscall executes a syscall.
|
||||
func (f *Function) CompileSyscall(expr *expression.Expression) error {
|
||||
parameters := expr.Children[1:]
|
||||
registers := f.cpu.Syscall[:len(parameters)]
|
||||
err := f.ExpressionsToRegisters(parameters, registers)
|
||||
f.assembler.Syscall()
|
||||
f.sideEffects++
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user