Write assembly instructions to, -store two immediate 32-bit constants, OXBF, 0x0
ID: 3884336 • Letter: W
Question
Write assembly instructions to, -store two immediate 32-bit constants, OXBF, 0x00112233 at memory locations 0 times 4000,0008 and 0 times 4000,000C. (*try to use EQU too) -Use assembler directive DCD to allocate memory for 32-bit number, 0 times 1144663377 and so that it will be placed right after your instruction code in the memory. Use ARM instructions to copy thet32-bit numbers into memory locations 0 times 4000,0000. -Verify the result of your code with simulator, as well as by reading the actual memory contents after execution.Explanation / Answer
1)
mov $r1,0x4000_0000
st $r1,0xEF
mov $r1,0x4000_0004
st $r1,0x00AB0000
2)
mov $r1,0x4000_0008
st $r1,0x00113322
mov $r1,0x4000_000C
st $r1,0x88776600
3)
mov $r1,0x4000_0010
st $r1,0x11223344
mov $r1,0x4000_0014
st $r1,0x55667788
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.