Question
A set of word length numbers are stored in memory location starting at address $500. The count of these numbers is located in register D0.
A set of word length numbers are stored in memory location starting at address $500. The count of these numbers is located in register D0. Write a subroutine to store the smallest number at memory location specified in register A0 Place the first instruction of your program at memory at address $2000. Use the ORG and END assembler directives where appropriate. Assemble your program. If there are any syntax errors, correct them and reassemble. Start the simulator, load your program, and initialize the PC register. Put a count value in register D0 and same number of representative data in memory starting at address $600. Also put the address value of $1000 in register A0. Run the program. Read the result at the memory location specified by A0 and verify the result. Do not forget to reinitialize the PC in case you run the program multiple times.
Note: Assembler is EASy68k
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started