Question: 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

  1. Assign the string ABCDEFGHIJKLMNOPWRSTUVWXYZ to memory location 2000
  2. Assign the string abcdefghijklmnopwrstuvwxyz to memory location 2000
  3. Assign the string 0123456789 to memory location 2000
  4. Enter the code provided in the START section of the editor
  5. Assemble the source code using the play button or F9
  6. When the simulator opens, click the run button or F9
  7. 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

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!