Implemented more arm64 instructions
This commit is contained in:
@ -4,5 +4,10 @@ import "git.urbach.dev/cli/q/src/cpu"
|
||||
|
||||
// CompareRegisterNumber is an alias for a subtraction that updates the conditional flags and discards the result.
|
||||
func CompareRegisterNumber(register cpu.Register, number int) uint32 {
|
||||
return encodeRegisterNumberFlags(0b11, 0b11111, register, number, true)
|
||||
return addRegisterNumber(0b11, 1, ZR, register, number)
|
||||
}
|
||||
|
||||
// CompareRegisterRegister is an alias for a subtraction that updates the conditional flags and discards the result.
|
||||
func CompareRegisterRegister(reg1 cpu.Register, reg2 cpu.Register) uint32 {
|
||||
return addRegisterRegister(0b11, 1, ZR, reg1, reg2)
|
||||
}
|
||||
|
Reference in New Issue
Block a user