Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program using more than 30 ARM instructions, the instructions can be duplicated in the raspberry pi program. - Describe the problem to be
Write a program using more than 30 ARM instructions, the instructions can be duplicated in the raspberry pi program. - Describe the problem to be solved Write flowcharts - Describe the operation of the program results
Category Instr Arithmetic add Example ADD r1, r2, r3 Meaning r1 = r2 + r3 subtract SUB r1, r2, r3 r1 = r2 - r3 ADD r1, r2,4 r1 = r2 + 4 add immediate mov Data transfer Register MOV R1, R2 MOV R1, #65 Registers Data transfer load word LDR r1,[r2, 32] store word STR r1,[r2, 32] r1 = Memory(r2 + 32) Memory(r2 + 32) = r1 = Category Instr Example Meaning Arithmetic add ADD r1, r2, r3 r1 = r2 + r3 subtract SUB r1, r2, r3 r1 = r2 - r3 add immediate ADD r1, r2, 4 r1 = r2 + 4 ADDS r1, r2, r3 r1 = r2 + r3 Las NZCV SUBS r1, r2, r3 r1 = r2-r3 a: NZCV r1 = r2 + r3 + C r1 = r2 + r3 + C ua: NZCV ADC r1, r2, r3 ADCS r1, r2, r2 ORR r1, r2,r4 LSL r1, r2, #2 AND, OR, MVN Logical Shift R1 = R2 > 3 ASR R1,RO,#4 Data transfer Registers mov MOV R1, R2 MOV R1, #65 Data transfer load word LDR r1,[r2, #n] r1 = Memory(r2 + n) store word STR 1,[r2, #n] Memory(r2 + n) = 11 Category Instr Example Meaning Arithmetic add ADD r1, r2, 13 r1 = r2 +r3 subtract SUB r1, r2, r3 r1 = r2- r3 add immediate ADD r1, r2, 4 r1 = r2 + 4 ADDS r1, r2, r3 r1 = r2 + r3 a: NZCV SUBS r1, r2, r3 r1 = r2- r3 a: NZCV r1 = r2 + r3+ C r1 = r2 + 3 + C a NZCV ADC r1, r2, r3 ADCS r1, r2, r2 ORR r1, r2,r4 LSL r1, r2, #2 AND, OR, MVN Logical Shift R1 = R2 > 3 ASR R1,RO,#4 ROR r2, ro, #2 Data transfer Registers mov MOV R1, R2 MOV R1, #65 Data transfer load word LDR r1,[r2, #n] r1 = Memory(r2 + n) store word STR r1,[r2, #n] Memory(r2 + n) = 11 = Category Instr Example Meaning Arithmetic add ADD r1, r2, r3 r1 = r2 +r3 subtract SUB r1, r2, r3 r1 = r2 - r3 add immediate ADD r1, 2, 4 r1 = r2 + 4 ADDS r1, r2, r3 r1 = r2+r3 LA: NZCV 1 SUBS r1, r2, r3 r1 = r2- r3 ua NZCV r1 = r2 + r3 + C 3 r1 = r2 + 3 + C ua: NZCV ADC r1, r2, r3 ADCS r1, r2, r2 ORR r1, r2,14 LSL r1, r2, #2 AND, OR, MVN Logical Shift R1 = R2 > 3 ASR R1,RO,#4 ROR r2, ro, #2 Data transfer Registers mov MOV R1, R2 MOV R1, #65 load word LDR r1, [r2, #n ] Data transfer r1 = Memory(r2 + n) store word STR r1,[r2, #n] Memory(r2 + n) = 11
Step 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