1/6
Looks like no tags are added yet.
mov (aka movw - move word)
loads up to 2 bytes into a register. overwrites existing data including top half.
movt
moves up to 2 bytes into the higher half of the register. should be done after mov.
lsl/lsr
logical shift left/right
data simply shifts, bits that are shifted out are simply forgotten.
front is padded with zeroes always (bad if negative number)
asr
arithmetic shift right
data simply shifts, bits that are shifted out are simply forgotten.
a check is done to see if the number is negative or positive. a decision is made whether to pad the front with zeroes or ones.
ror
rotate right
shifted out bits come to pad the front. makes random numbers.
ldr
load register
load data from the specific address in the brackets
e.g. ldr r0, [r2, #5] loads the address at r2[5] into r0
str
store register
store data in address specified in the brackets
e.g. str r0, [r2, #5] stores r0’s value into r2[5]