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 | 0 | 1 | 1 | 1 | 0 | Rm | Rn | Rt | ||||||
0101110xxxxxxxxx
if ConditionPassed() then {
shift_n : int = undefined;
shift_t : SRType = undefined;
let 't = UInt(Rt);
let 'n = UInt(Rn);
let 'm = UInt(Rm);
let index : bool = true;
let add : bool = true;
let wback : bool = false;
(shift_t, shift_n) = (SRType_LSL, 0);
let 'shift_n = shift_n;
execute_aarch32_instrs_LDRB_r_Op_A_txt(add, index, m, n, shift_n, shift_t, t, wback)
};
()
let offset : bits(32) = Shift(R_read(m), shift_t, shift_n, PSTATE.C);
let offset_addr : bits(32) = if add then R_read(n) + offset else
R_read(n) - offset;
let address : bits(32) = if index then offset_addr else R_read(n);
if not_bool(wback) & t != 15 then {
AArch32_SetLSInstructionSyndrome(1, false, t, false)
};
R_set(t) = ZeroExtend(MemU_read(address, 1), 32);
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.