Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

image text in transcribed

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 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

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

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago