Implemented more arm64 instructions

This commit is contained in:
Eduard Urbach 2025-03-13 23:12:15 +01:00
parent 29ee6730f2
commit b7d76ff3e3
Signed by: eduard
GPG key ID: 49226B848C78F6C8
18 changed files with 218 additions and 29 deletions

8
src/arm/Div.go Normal file
View file

@ -0,0 +1,8 @@
package arm
import "git.urbach.dev/cli/q/src/cpu"
// DivSigned divides source by operand and stores the value in the destination.
func DivSigned(destination cpu.Register, source cpu.Register, operand cpu.Register) uint32 {
return 0b10011010110<<21 | 0b000011<<10 | reg3(destination, source, operand)
}