Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In arm assembly please. 8. Write a program that check if the binary pattern 2_11001010 are presented at least once somewhere in the number RO.
In arm assembly please.
8. Write a program that check if the binary pattern 2_11001010 are presented at least once somewhere in the number RO. The program should set R1 to 1 if the pattern is found, and clear R1 to o if no pattern in the Ro. Your code have to work with any number in Ro Your code have to preserve (do not change) the value in Ro You may use any other registers Examples: the number 2_11001101100100101111001010101100 (0xCD92F2AC) has the pattern inside 2_11001100110011001100110110010100 (0xCCCCCD94) has the pattern inside 2_11011010101101110011100111010101 (0xDAB739D5) - no pattern MOVW RO,#OXF2AC MOVT RO, \#OXCD92 MOVW RO, \#0xCD9 4 MOVT RO, \#OxCCCC MOVW RO, \#OX39D5 MOVT RO, \#OXDAB7 -- Your instructions hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started