Memory Flashcards

1
Q

how to change a value in memory

A

store in a register, change that, store back into memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how do we terminate a string in memory

A

null terminate eg 0x00

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

psuedo code for loading a bytesized character from memory

A

ch = byte [address]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

psuedo code for storing a byte into register

A

byte [address] = ch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ldrb means

A

load with byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

strb means

A

store byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ldrh means

A

Load half word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ldr means

A

load word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

strh measn

A

store hafl word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

str means

A

store word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

which has a reversed operand order str or ldr

A

STR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does rom stand for

A

read only memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does ram stand for

A

random access memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

can rom be modified by a running program

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

can ram be modified by a running program

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how to add one to address in memory and also load the byte from memory into a register (R1)
memory in r4

A

LDRB R1, [R4], #1

17
Q

what happens when we load a byte sized value from memory into a word sized register

A

byte value in stored in least significant bit,

3 remaining bytes are set to 0

18
Q

what is little endian byte storing

A

when the least significant byte of the word/halfword is stored at the lower address in memory

19
Q

what is big endian byte stroing

A

when the most significant bit of the word/halfword is stored in the lower address of memory

20
Q

default on vs code little endian or big endian

A

little endian

21
Q

how to use ldr with signed numbers

A

ldrs

22
Q

what will the remaining digits in the word be padded with if negative

A

1s