issues
search
Kingcom
/
armips
An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363
stars
77
forks
source link
Fix up some ARM/THUMB immediates jank
#222
Closed
Prof9
closed
2 years ago
Prof9
commented
2 years ago
Fixes silent truncation of e.g.
cmp r0,-1
to
cmp r0,0xFF
in THUMB
Adds
add
-
sub
rewriting for ARM/THUMB e.g.
add -1
to
sub 1
Fixes ARM shifted immediate check causing e.g.
add r0,0x123
being encoded as
0xFFFFFFFF
Tidy up the error messages a bit by removing unnecessary zero padding and displaying OriginalImmediate instead of modified Immediate
Expand tests for immediates
cmp r0,-1
tocmp r0,0xFF
in THUMBadd
-sub
rewriting for ARM/THUMB e.g.add -1
tosub 1
add r0,0x123
being encoded as0xFFFFFFFF