I am having a problem with this programming and do not know how to correct the p
ID: 3869173 • Letter: I
Question
I am having a problem with this programming and do not know how to correct the problem in the Freescale Codewarrior. I need help with this exercise, and it is due today. Thank you
This is my modify program
After a successful test, replace the code in the Main program section of the main.asm with the following code:
ORG CODE
Main:
LDS #STACK
Again LDAA #$A5
LDAB #$45
SBA
STAA $1020
BRA Again
After completion of modifying/typing the code, save the code and assemble it. Fix any errors until assembling is successful.
Click the “Debug” button to open the Simulator (also called True-Time Simulator & Real-Time Debugger), and expand it into full screen.
} File Nane Date Purpose Procedure d Path: CNUsers gals a 152g al.com Dropbox EET121 EET430 Labfle Tutorial Sou ces man as Tutorial.mcp Ful Chip Simulation Files Lirk Order Targete File Code Dala E Sources 16 main am Test + Project Settings export synbols For absolute assembly: this is the application entry point ABSENTRY Hain Include derivative-specific definitions The nicrocontroller chip used by Dragon12-plus board INCLUDE 'n 9s12dg256·inc Symbolic constant (EQU) section DATA STACK EQU EQU RAHStart RAHEnd+1 $1000 use $1000-$1FFE for data use $2000- $3FFF for stack use flash ROM $4000-$7FFF for code Data section DATA Main program section CODE Main LDS #STACK LDAA LDAB #S45 SBA Again #SAS :Do A B. the sume is in A A-$6C STAA 1020 save the sunn to RAH location $1020 BRA aga Subroutine sectionn Interrupt Yectors SEFEE Line 12 Col78 | 4 flesExplanation / Answer
There was some problems in the format/spacein and errors
We can use this below code now
ORG CODE
Main:
LDS #STACK
Again:
LDAA #$A5
LDAB #$45
SBA
STAA $1020
BRA Again
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.