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 |
| 0 | 1 | 1 | 0 | 0 | imm5 | Rn | Rt | ||||||||
01100xxxxxxxxxxx
if ConditionPassed() then {
let 't = UInt(Rt);
let 'n = UInt(Rn);
let imm32 : bits(32) = ZeroExtend(imm5 @ 0b00, 32);
let index : bool = true;
let add : bool = true;
let wback : bool = false;
execute_aarch32_instrs_STR_i_OpT_A_txt(add, imm32, index, n, t, wback)
};
()
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 | Rt | imm8 | |||||||||
10010xxxxxxxxxxx
if ConditionPassed() then {
let 't = UInt(Rt);
let 'n = 13;
let imm32 : bits(32) = ZeroExtend(imm8 @ 0b00, 32);
let index : bool = true;
let add : bool = true;
let wback : bool = false;
execute_aarch32_instrs_STR_i_OpT_A_txt(add, imm32, index, n, t, wback)
};
()
let offset_addr : bits(32) = if add then R_read(n) + imm32 else
R_read(n) - imm32;
let address : bits(32) = if index then offset_addr else R_read(n);
if not_bool(wback) & t != 15 then {
AArch32_SetLSInstructionSyndrome(4, false, t, false)
};
MemU_set(address, 4) = R_read(t);
if wback then {
R_set(n) = offset_addr
};
()
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.