Improved x64 encoder
This commit is contained in:
parent
c1d3e0d11b
commit
81fcb50e77
5 changed files with 46 additions and 23 deletions
|
@ -6,5 +6,5 @@ import (
|
|||
|
||||
// SubRegNum subtracts a number from the given register.
|
||||
func SubRegNum(code []byte, destination cpu.Register, number int) []byte {
|
||||
return numberToRegister(0x83, 0x81, 0b101, code, destination, number)
|
||||
return numRegReg(code, 0x83, 0x81, 0b101, byte(destination), number)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue