Added call registers

This commit is contained in:
2024-06-27 14:25:53 +02:00
parent 735057ac74
commit dc497ba4fb
8 changed files with 53 additions and 44 deletions

View File

@ -21,6 +21,9 @@ const (
R15
)
var GeneralRegisters = []cpu.Register{RBX, RBP, R12, R13, R14, R15}
var SyscallRegisters = []cpu.Register{RAX, RDI, RSI, RDX, R10, R8, R9}
var ReturnValueRegisters = []cpu.Register{RAX, RCX, R11}
var (
CallRegisters = []cpu.Register{RDI, RSI, RDX, RCX, R8, R9}
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}
)