diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-01-14 01:28:20 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-01-16 12:52:32 +1100 |
commit | c610199f2d679ae0c8860d149edfece4fc8d49e5 (patch) | |
tree | 138f0318d677739d80d7f661a1a3aa90567cb5a4 /docs/esp32/tutorial | |
parent | 928c71638cf13eb0b47aebb917913820b889403f (diff) |
py/asmarm: Fix halfword loads with larger offsets.
This commit fixes code generation for loading halfwords using an offset
greater than 255.
The old code blindly encoded the offset into a `LDRH Rd, [Rn, #imm]`
opcode, but only the lowest 8 bits would be put into the opcode itself.
This commit instead generates a two-opcodes sequence, a constant load into
R8, and then `LDRH Rd, [Rn, R8]`.
This fixes `tests/extmod/vfs_rom.py` for the qemu/SABRELITE board.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions