5. Two arrays “Array1” and “Array2” are given with 25 words each. Design an ARM assembly...

60.1K

Verified Solution

Question

Electrical Engineering

5. Two arrays “Array1” and “Array2” are given with 25 wordseach. Design an ARM assembly code to compare sum of the numberssotred in the arrays. If sum of Array1 is greater, save a “1” inR10, otherwise, save “0’ in R10.    

Answer & Explanation Solved by verified expert
4.2 Ratings (668 Votes)
ARM Code ENTRY starting of program LDR r2 LENGTH length of the array25 SUB r2r2 1r2 contains LENGTH1 MOV r6 0r6 sum set to 0 FORINIT MOV r1 0 r1 index I set to 0 forAI ADR r3 ARRAY1 start r3 with address of A0 FORCMP CMP    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students