package x64 import ( "git.akyoto.dev/cli/q/src/build/cpu" ) // AddRegisterNumber adds a number to the given register. func AddRegisterNumber(code []byte, destination cpu.Register, number int) []byte { return encodeNum(code, AddressDirect, 0, destination, number, 0x83, 0x81) } // AddRegisterRegister adds a register value into another register. func AddRegisterRegister(code []byte, destination cpu.Register, operand cpu.Register) []byte { return encode(code, AddressDirect, operand, destination, 8, 0x01) }