fixed bit field field the encoding fixes should be
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 0 | M | register_list | |||||||
1011010xxxxxxxxx
if ConditionPassed() then {
let registers : bits(16) = ((0b0 @ M) @ 0b000000) @ register_list;
let UnalignedAllowed : bool = false;
if BitCount(registers) < 1 then {
throw(Error_Unpredictable())
};
execute_aarch32_instrs_PUSH_Op_A_txt(UnalignedAllowed, registers)
};
()
if BitCount(registers) == 0 & not_bool(GuestTransferEmpty()) then {
throw(Error_Undefined())
};
address : bits(32) = R_read(13) - 4 * BitCount(registers);
GuestTransfer(address, 4 * BitCount(registers), true);
foreach (i from 0 to 14 by 1 in inc) {
if [registers[i]] == 0b1 then {
if i == 13 & i != LowestSetBit(registers) then {
MemA_set(address, 4) = __UNKNOWN_bits(32)
} else {
if UnalignedAllowed then {
MemU_set(address, 4) = R_read(i)
} else {
MemA_set(address, 4) = R_read(i)
}
};
address = address + 4
};
()
};
if [registers[15]] == 0b1 then {
if UnalignedAllowed then {
MemU_set(address, 4) = PCStoreValue()
} else {
MemA_set(address, 4) = PCStoreValue()
}
};
R_set(13) = R_read(13) - 4 * BitCount(registers)
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.