9 lines
234 B
Go
Raw Normal View History

2024-07-28 13:42:51 +00:00
package x64
2024-08-07 17:39:10 +00:00
import "git.akyoto.dev/cli/q/src/cpu"
2024-07-28 13:42:51 +00:00
// NegateRegister negates the value in the register.
func NegateRegister(code []byte, register cpu.Register) []byte {
return encode(code, AddressDirect, 0b011, register, 8, 0xF7)
}