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

@ -3,7 +3,7 @@ package x64
import "git.akyoto.dev/cli/q/src/build/cpu"
const (
RAX = iota
RAX cpu.Register = iota
RCX
RDX
RBX
@ -21,8 +21,6 @@ const (
R15
)
const SyscallReturn = RAX
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}