Assignment 7: Memory Access Instructions, ver.6 Question One: What is the conten
ID: 3843537 • Letter: A
Question
Assignment 7: Memory Access Instructions, ver.6 Question One: What is the content ofri after the execution ofthe following program AREA program, CoDE, READONLY estion EXPORT main ENTRY main LDR r0, s liable B main AREA my data, DATA, READWRITE able DCB 0xA1. END What is the content ofrl after the execution of the following program AREA program, CODE, READONLY EXPORT main ENTRY main LDR r0, lable LDR r1,[ro] B main AREA my data, DATA, READWRITE lable DCB 0xA1, 0xAB END f res, What is the content of ri after the execution of the following program AREA program, CODE, READONLY EXPORT main ENTRY main LDR r0, lable LDR r1,lroj B main AREA my data, DATA, READWRITE able DCB 0xA1, 0xAB, 0xC2, 0xD3 ENDExplanation / Answer
Answers :
a) Here the r0 register contains the address of label
where label pointing to memory location containg value 0xA1.
And r1 registers contains the content of memory location which is stored in r0 register.
Therefore r1=0xA1.
b)Here r0 contains the memory address of label which pointing to two byres of memory having values 0xA1,0xAB.
Therefore the content of r1=0xA1AB.
Similarly,
c) r1=0xA1ABC2D3
d) r1=0xA1
e) r1=0xA1