Implemented more arm64 instructions
This commit is contained in:
parent
29ee6730f2
commit
b7d76ff3e3
18 changed files with 218 additions and 29 deletions
8
src/arm/Div.go
Normal file
8
src/arm/Div.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue