Question: Lab 1 . O DESCRIPTION Rewrite the copy program ( Lab 1 . C ) so that it will create name: Kiran Kadariya beginning at
Lab O
DESCRIPTION
Rewrite the copy program Lab C so that it will create name: Kiran Kadariya beginning at memory location $ and social security number: beginning at location $ You are to do this using the following addressing modes in your program:
Address register direct An
Address register indirect An
postincrement An
predecrement An
displacement dAn
You can use these anywhere in your program. You need to submit the following for your grade:
a copy of your code;
Title : Lab c
Written by : Kiran Kadariya
Date :
Description: Welcome to CSCI
ORG $ ; Assign the string 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' to memory location
DCL 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ORG $ ; Move to memory location
DCL 'abcdefghijklmnopwrstuvwxyz' ; Assign the string 'abcdefghijklmnopwrstuvwxyz' to memory location
ORG $ ; Move to memory location
DCW ; Assign the string to memory location
START: ; first instruction of program
LEA.L $A
LEA.L $A
LEA.L $A
LEA.L $A
MOVE.B $A
MOVE.B $A
MOVE.B $BA
MOVE.B $A
MOVE.B $EA
MOVE.B $CA
MOVE.B $A
MOVE.B #A
MOVE.B AA
MOVE.B AA
MOVE.B #A
MOVE.B AA
MOVE.B AA
MOVE.B AA
MOVE.B AA
MOVE.B #A
MOVE.B AA
MOVE.B AA
MOVE.B AA
MOVE.B #A
MOVE.B #A
MOVE.B #A
MOVE.B #A
SIMHALT ; halt simulator
END START ; last line of source
a copy of memory locations $ through $ after execution;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
