Improved x64 encoder
This commit is contained in:
parent
2c2b6e93db
commit
53379ff5bc
9 changed files with 214 additions and 49 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 encode(code, 1, AddressDirect, byte(source), byte(destination), 0x89)
|
||||
return encode(code, AddressDirect, source, destination, 8, 0x89)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue