Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

assebly language *Assembly language 1. Create a new CodeWarrior project (in its own folder) named Lab03MyProgram, again choosing Full Chip Simulation on the New Project

assebly language
image text in transcribed
image text in transcribed
*Assembly language
1. Create a new CodeWarrior project (in its own folder) named Lab03MyProgram, again choosing Full Chip Simulation on the New Project Wizard's first page. 2. In your project's main.c file, delete the Code Warrior stationery in function main. In its place, write a program that uses an accumulator to add the numbers at memory locations $1050, $1051, and $1052, then adds 6 to the sum and stores the final result at location $105F. Use inline assembly language. 3. Test your program by using the Memory window to set up different values in memory locations $1050, $1051, and $1052 before you run your program, and then checking to see that the proper number is stored in location $105F after the program runs. 4. When you are sure that the program works, show it to me. 1. Create a new Code Warrior project (in its own folder) named Lab03MySecondProgram, again choosing Full Chip Simulation on the New Project Wizard's first page. 2. In your project's main.c file, delete the Code Warrior stationery in function main. In its place, write a program that ends with Accumulator D holding the concatenated values of memory locations $1000 and $1005, and with the Stack Pointer holding these same values in reverse order. (You'll set up the values in locations $1000 and $1005 by hand in the Memory window before you run the program.) For example, if location $1000 holds $61 and location $1005 holds $BC when the program starts, then Accumulator D should hold $61BC and the Stack Pointer should hold $BC61 when the program ends. Your program should not change the values of any memory locations

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago