Question: ARM Cortex - M uses a full - descending stack by default. ( 1 ) Which is equivalent to PUSH { r 7 } ?

ARM Cortex-M uses a full-descending stack by default.
(1) Which is equivalent to PUSH {r7}?
a. SP = SP 4, and then memory[SP]= r7; b. SP = SP +4, and then memory[SP]= r7; c. memory[SP]= r7, and then SP = SP 4; d. memory[SP]= r7, and then SP = SP +4.
(2) Which is equivalent to POP {r7}?
a. SP = SP 4, and then r7= memory[SP]; b. SP = SP +4, and then r7= memory[SP]; c. r7= memory[SP], and then SP = SP 4; d. r7= memory[SP], and then SP = SP +4.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!