Question: Consider two words i . e . WORD 1 and WORD 2 are stored in the memory. Write an Assembly Language Program using ARM 7

Consider two words i.e. WORD1 and WORD2 are stored in the memory. Write an Assembly Language Program using ARM 7 instructions to perform the following:
If 4th and 5th bits of WORD1 are 1 and 0 respectively, find the sum of odd digits in WORD2
If 4th and 5th bits of WORD1 are 0 and 1 respectively, find the sum of even digits in WORD2
Store the results in the memory.
Hint: if WORD1=0x78659755 and WORD2=0x62396870 result=3+9+7=0x00000013

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!