Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This program should be done in EASy68K Editor/Assembler Lab 1.C Copy Program The first assignment is a simple copy program. That is, you are to
This program should be done in EASy68K Editor/Assembler
Lab 1.C Copy Program
The first assignment is a simple copy program. That is, you are to duplicate the code that is supplied on the last page of this assignment. The goal here is to have you interact with the EASy68K Assembler to create data in memory and execute a small program.
PROCEDURE
- Assign the string ABCDEFGHIJKLMNOPWRSTUVWXYZ to memory location 2000
- Assign the string abcdefghijklmnopwrstuvwxyz to memory location 2000
- Assign the string 0123456789 to memory location 2000
- Enter the code provided in the START section of the editor
- Assemble the source code using the play button or F9
- When the simulator opens, click the run button or F9
- Bring up the memory window and scroll to address location 2200 to see the string printed
SOURCE CODE
- ORG $2000
- DC.L 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- ORG $2020
- DC.L 'abcdefghijklmnopqrstuvwxyz'
- ORG $2040
- DC.W '0123456789'
- LEA.L $002000,A2
- LEA.L $002020,A3
- LEA.L $002040,A4
- LEA.L $002200,A1
- MOVE.B $002016,(A1)+
- MOVE.B $002024,(A1)+
- MOVE.B $00202B,(A1)+
- MOVE.B $002022,(A1)+
- MOVE.B $00202E,(A1)+
- MOVE.B $00202C,(A1)+
- MOVE.B $002024,(A1)+
- MOVE.B #32,(A1)+
- MOVE.B 19(A3) ,(A1)+
- MOVE.B 14(A3) ,(A1)+
- MOVE.B #32,(A1)+
- MOVE.B 2(A2) ,(A1)+
- MOVE.B 18(A2) ,(A1)+
- MOVE.B 2(A2) ,(A1)+
- MOVE.B 8(A2) ,(A1)+
- MOVE.B #32,(A1)+
- MOVE.B 3(A4) ,(A1)+
- MOVE.B 2(A4) ,(A1)+
- MOVE.B (A4) ,(A1)+
- MOVE.B #33,(A1)+
- MOVE.B #33,(A1)+
- MOVE.B #33,(A1)+
- MOVE.B #32,(A1)+
- SIMHALT ; halt simulator
- END START ; last line of source
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