Implemented bitwise AND on arm64

This commit is contained in:
Eduard Urbach 2025-03-14 17:45:39 +01:00
parent 8fcc57cee6
commit c5cc88c2b0
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 119 additions and 5 deletions

View file

@ -14,7 +14,7 @@ func SubRegisterRegister(destination cpu.Register, source cpu.Register, operand
// subRegisterNumber subtracts the register and optionally updates the condition flags based on the result.
func subRegisterNumber(destination cpu.Register, source cpu.Register, number int, flags uint32) uint32 {
return flags<<29 | 0b110100010<<23 | reg2imm(destination, source, number)
return flags<<29 | 0b110100010<<23 | reg2Imm(destination, source, number)
}
// subRegisterRegister subtracts the registers and optionally updates the condition flags based on the result.