Added more tests

This commit is contained in:
Eduard Urbach 2024-06-24 17:51:24 +02:00
parent 9e3af3b01c
commit c1d3e0d11b
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 142 additions and 25 deletions

10
src/build/arch/x64/Add.go Normal file
View file

@ -0,0 +1,10 @@
package x64
import (
"git.akyoto.dev/cli/q/src/build/cpu"
)
// AddRegNum adds a number to the given register.
func AddRegNum(code []byte, destination cpu.Register, number int) []byte {
return numberToRegister(0x83, 0x81, 0b000, code, destination, number)
}