Implemented return values

This commit is contained in:
Eduard Urbach 2024-06-29 21:06:59 +02:00
parent 67b3a3d820
commit a0edc45e19
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 113 additions and 61 deletions

View file

@ -22,7 +22,7 @@ const (
)
var (
CallRegisters = []cpu.Register{RDI, RSI, RDX, RCX, R8, R9}
CallRegisters = SyscallRegisters
GeneralRegisters = []cpu.Register{RBX, RBP, R12, R13, R14, R15}
SyscallRegisters = []cpu.Register{RAX, RDI, RSI, RDX, R10, R8, R9}
ReturnValueRegisters = []cpu.Register{RAX, RCX, R11}