Question: Question: to write code that will make the LEDs on the EduBase board marked LED3, LED2, LED1, and LED0 light up when the pushbuttons marked
Question: to write code that will make the LEDs on the EduBase board marked LED3, LED2, LED1, and LED0 light up when the pushbuttons marked SW2, SW3, SW4, and SW5 are pressed.
https://www.rapidtables.com/tools/notepad.html
could anyone help me with "fill in the blanks" from this assembly code. I have pasted a link above if that does not work please see the code below to determine the blanks.
GPIO_PORTD_DATA_R EQU 0x400073FC GPIO_PORTD_DIR_R EQU 0 x40007400 GPIO_PORTD_DEN_R EQU 0 x4000751C GPIO_PORTD_AMSEL_R EQU 0 x40007528 GPIO_PORTB_DATA_R EQU 0x400053FC GPIO_PORTB_DIR_R EQU 0 x40005400 GPIO_PORTB_DEN_R EQU 0 x4000551C SYSCTL_RCGCGPIO_R EQU 0 x400FE608 AREA | . t e x t | , CODE, READONLY, ALIGN=2 EXPORT __main __main LDR R0 , =PortConfiguration BLX R0 LDR R1 , =GPIO_PORTD_DATA_R RunForever LDR R2 , [________] STR R2 , [________] B R u nFo r ev e r P o r t C o n f i g u r a t i o n ; Po r t B i n i t i a l i z a t i o n s f i r s t LDR R0 , =_________________ LDR R1 , [ R0 ] ORR R1 , R1 , #0x02 STR R1 , [ R0 ] NOP NOP NOP NOP LDR R0 , =GPIO_PORTB_DIR_R LDR R1 , [ R0 ] ORR R1 , R1 , #0x______________ STR R1 , [ R0 ] LDR R0 , =GPIO_PORTB_DEN_R LDR R1 , [ R0 ] ORR R1 , R1 , #0x______________ STR R1 , [ R0 ] ; Po r t D i n i t i a l i z a t i o n s LDR R0 , =_________________ LDR R1 , [ R0 ] ORR R1 , R1 , #0x08 STR R1 , [ R0 ] NOP NOP NOP NOP LDR R0 , =GPIO_PORTD_DIR_R LDR R1 , [ R0 ] BIC R1 , R1 , #0x______________ STR R1 , [ R0 ] LDR R0 , =GPIO_PORTD_AMSEL_R LDR R1 , [ R0 ] BIC R1 , R1 , #0x______________ STR R1 , [ R0 ] LDR R0 , =GPIO_PORTD_DEN_R LDR R1 , [ R0 ] ORR R1 , R1 , #0x______________ STR R1 , [ R0 ] BX LR EXPORT S y s t e m I n i t S y s t e m I n i t BX LR ALIGN END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
