Improved x64 encoder
This commit is contained in:
parent
b776775f8f
commit
2c2b6e93db
15 changed files with 317 additions and 53 deletions
|
@ -19,5 +19,5 @@ func MoveRegisterNumber32(code []byte, destination cpu.Register, number uint32)
|
|||
|
||||
// MoveRegisterRegister64 moves a register value into another register.
|
||||
func MoveRegisterRegister64(code []byte, destination cpu.Register, source cpu.Register) []byte {
|
||||
return regReg(code, byte(source), byte(destination), 0x89)
|
||||
return encode(code, 1, AddressDirect, byte(source), byte(destination), 0x89)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue