Implemented bitwise AND on arm64

This commit is contained in:
2025-03-14 17:45:39 +01:00
parent 72272ed9af
commit e123a26a1d
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.