Implemented more arm64 instructions
This commit is contained in:
parent
29ee6730f2
commit
b7d76ff3e3
18 changed files with 218 additions and 29 deletions
|
@ -8,7 +8,5 @@ import (
|
|||
// and stores the values of two registers to the calculated address.
|
||||
// This is the pre-index version of the instruction so the offset is applied to the base register before the memory access.
|
||||
func StorePair(reg1 cpu.Register, reg2 cpu.Register, base cpu.Register, offset int) uint32 {
|
||||
offset /= 8
|
||||
offset &= 0b111_1111
|
||||
return 0b1010100110<<22 | uint32(offset)<<15 | uint32(reg2)<<10 | uint32(base)<<5 | uint32(reg1)
|
||||
return 0b1010100110<<22 | pair(reg1, reg2, base, offset/8)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue