Implemented more arm64 instructions

This commit is contained in:
Eduard Urbach 2025-03-13 13:17:58 +01:00
parent 296fc37265
commit c4d763839a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
23 changed files with 290 additions and 53 deletions

View file

@ -9,6 +9,6 @@ import (
// 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 &= 0b1111111
offset &= 0b111_1111
return 0b1010100110<<22 | uint32(offset)<<15 | uint32(reg2)<<10 | uint32(base)<<5 | uint32(reg1)
}