Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find the addressing mode of the next assembly instructions MNEMONIC ADDRESS MODE PUSH R2,R3 Delav Loo LDR R2,M Delav Loopl SUB R2/R1 #1 CIMP R2/R1

image text in transcribedimage text in transcribed

Find the addressing mode of the next assembly instructions MNEMONIC ADDRESS MODE PUSH R2,R3 Delav Loo LDR R2,M Delav Loopl SUB R2/R1 #1 CIMP R2/R1 #0xA6l! BNE Delay Loopl SUB R3.R2#1 CMP R3,#0 BNE Delay Loop0 POP R2,R3) MOV PCLR main BLInit GPIO LDR R0 GPIO PORTF DATA R MOV R1,#00000000b STR RLIR01.#0x3C Lo LDR R1,R0 AND RI.R3.#00010001b CMP R1,#00010000b BEQ GRED CMP RI#00000001b BEQ GBLUE CMP R1,#00000000b BEO GGREEN Init GPIOF PUSH RO R1 LDR RO,SYSCTL RCGC2 R LDR R1,SYSCTL RCGC2 Data STR RLIR0.LSR #9 LDR R0 GPIO PORTF LOCK R LDR R1 PORTF LOCK DATA STR R1,[RO] LDR R0, GPIO PORTF CR R MOV R 1 #0x1 F STR R1RO LDR R0, GPIO PORTF AFSEL R Find the addressing mode of the next assembly instructions MNEMONIC ADDRESS MODE PUSH R2,R3 Delav Loo LDR R2,M Delav Loopl SUB R2/R1 #1 CIMP R2/R1 #0xA6l! BNE Delay Loopl SUB R3.R2#1 CMP R3,#0 BNE Delay Loop0 POP R2,R3) MOV PCLR main BLInit GPIO LDR R0 GPIO PORTF DATA R MOV R1,#00000000b STR RLIR01.#0x3C Lo LDR R1,R0 AND RI.R3.#00010001b CMP R1,#00010000b BEQ GRED CMP RI#00000001b BEQ GBLUE CMP R1,#00000000b BEO GGREEN Init GPIOF PUSH RO R1 LDR RO,SYSCTL RCGC2 R LDR R1,SYSCTL RCGC2 Data STR RLIR0.LSR #9 LDR R0 GPIO PORTF LOCK R LDR R1 PORTF LOCK DATA STR R1,[RO] LDR R0, GPIO PORTF CR R MOV R 1 #0x1 F STR R1RO LDR R0, GPIO PORTF AFSEL R

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Know how productivity improvements impact quality and value.

Answered: 1 week ago

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago