Improved function names

This commit is contained in:
Eduard Urbach 2024-06-25 23:37:14 +02:00
parent 37e222e022
commit 871ebc147f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
19 changed files with 94 additions and 114 deletions

View file

@ -2,8 +2,8 @@ package x64
import "git.akyoto.dev/cli/q/src/build/cpu"
// PushReg pushes the value inside the register onto the stack.
func PushReg(code []byte, register cpu.Register) []byte {
// PushRegister pushes the value inside the register onto the stack.
func PushRegister(code []byte, register cpu.Register) []byte {
if register >= 8 {
code = append(code, REX(0, 0, 0, 1))
register -= 8