Question: Write an MC68000 assembly language program that will add three numbers: one number in register D3, second one in memory locations specified by A5, and

 Write an MC68000 assembly language program that will add three numbers:

Write an MC68000 assembly language program that will add three numbers: one number in register D3, second one in memory locations specified by A5, and the third is an immediate value of 48. Store the sum in memory location specified in register A6. Include comments relating to the entire program ("global" comments) specifying your name, the course number, date, and purpose/structure/approach of the program. Also, include selected comments for the major code lines. Save your program, naming it using your name. 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, initialize the PC register (to what "value?), and put representative addresses in A5 and A6. Also, put representative data in D3 and the memory location specified by A5, Read the results from the memory location specified by A6. Do not forget to reinitialize the PC in case you run the program multiple times. Include the data and results in your submission. Submit your program (.X68) file along with representative run and the results as a hard copy in the class prior to the submission date. Use appropriate naming guidelines. TES: In all programs, write appropriate comments. Comments carry 10-15% of the grade in assignments and exams Put representative data in all programs, e.g., show 5 + 13 + 48 (or use other data values) and print the results. Write an MC68000 assembly language program that will add three numbers: one number in register D3, second one in memory locations specified by A5, and the third is an immediate value of 48. Store the sum in memory location specified in register A6. Include comments relating to the entire program ("global" comments) specifying your name, the course number, date, and purpose/structure/approach of the program. Also, include selected comments for the major code lines. Save your program, naming it using your name. 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, initialize the PC register (to what "value?), and put representative addresses in A5 and A6. Also, put representative data in D3 and the memory location specified by A5, Read the results from the memory location specified by A6. Do not forget to reinitialize the PC in case you run the program multiple times. Include the data and results in your submission. Submit your program (.X68) file along with representative run and the results as a hard copy in the class prior to the submission date. Use appropriate naming guidelines. TES: In all programs, write appropriate comments. Comments carry 10-15% of the grade in assignments and exams Put representative data in all programs, e.g., show 5 + 13 + 48 (or use other data values) and print the results

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!