Menu

Someone Explain Assembly Code Please Beginner Course Please Make Simple Also Help Understa Q43832835

Can someone explain this assembly code please, I am a beginnerin the course,so please make it simple as you can:)

Also can you help in understanding the difference between port Mand port N? I know if we have 0x400FE608 the 0x400 is the offsetand FE608 is the base but I do not know how to stat the address forthe register to configure port M or N.

Function PortF_Init PortF_Init ; STEP 1 LDR RI, =SYSCTL_RCGCGPIO_R LDR RO, [RI] JORR RO, RO, #0x20 STR RO, [R] NOP NOP ;Or in

Function PortF_Init PortF_Init ; STEP 1 LDR RI, =SYSCTL_RCGCGPIO_R LDR RO, [RI] JORR RO, RO, #0x20 STR RO, [R] NOP NOP ;Or in binary 00010000 ; STEP 5 LDR RI, EGPIO_PORTF_DIR_R LDR RO, [RI] ORR RO, RO, #0x10 STR RO, [R] ; STEP 7 LDR RI, EGPIO PORTF_DEN R LDR RO, [R] ORR RO, RO, #0x10 STR RO, (RI] BX LR ; return ; The BL instruction is like a function call Start BL PortF_Init ; STEP 8 LDR RI, EGPIO_PORTF_DATA_R LDR RO, [RI] ORR RO, RO, #0x10 STR RO, [R] ALIGN END ;Make sure the end of this section is aligned Show transcribed image text Function PortF_Init PortF_Init ; STEP 1 LDR RI, =SYSCTL_RCGCGPIO_R LDR RO, [RI] JORR RO, RO, #0x20 STR RO, [R] NOP NOP ;Or in binary 00010000 ; STEP 5 LDR RI, EGPIO_PORTF_DIR_R LDR RO, [RI] ORR RO, RO, #0x10 STR RO, [R] ; STEP 7 LDR RI, EGPIO PORTF_DEN R LDR RO, [R] ORR RO, RO, #0x10 STR RO, (RI] BX LR ; return ; The BL instruction is like a function call Start BL PortF_Init ; STEP 8 LDR RI, EGPIO_PORTF_DATA_R LDR RO, [RI] ORR RO, RO, #0x10 STR RO, [R] ALIGN END ;Make sure the end of this section is aligned

Expert Answer


Answer to Can someone explain this assembly code please, I am a beginner in the course,so please make it simple as you can:) Also …

OR