ARM assembly

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

7 Terms

1
New cards

mov (aka movw - move word)

loads up to 2 bytes into a register. overwrites existing data including top half.

2
New cards

movt

moves up to 2 bytes into the higher half of the register. should be done after mov.

3
New cards

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)

4
New cards

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.

5
New cards

ror

rotate right

shifted out bits come to pad the front. makes random numbers.

6
New cards

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

7
New cards

str

store register

store data in address specified in the brackets

e.g. str r0, [r2, #5] stores r0’s value into r2[5]