Added more tests
This commit is contained in:
parent
9e3af3b01c
commit
c1d3e0d11b
5 changed files with 142 additions and 25 deletions
10
src/build/arch/x64/Add.go
Normal file
10
src/build/arch/x64/Add.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue