Answered step by step
Verified Expert Solution
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
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
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