Answered step by step
Verified Expert Solution
Link Copied!

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

  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

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago