[SOLVED] CS2400 Homework4-an ARM program

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Homework-4-hr93dp.zip (98.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Write an ARM program to

  • in the data area, o declare and initialize two NULL-terminated strings labeled as StrOne, and StrTwo.
    • define a symbolic name called MAX_LEN and equivalent it with a number like 100 or greater. (Hint:

EQU must be used here.) o reserved a chunk of zeroed memory with a size of (MAX_LEN + 1), label this chunk of memory as MixStr.  (You may assume that the sum of the lengths of StrOne and StrTwo is no greater than

MAX_LEN)

  • Store each one of the above three labels as a word with an address label, e.g., “adrStrOne DCD StrOne” for StrOne, and EXPORT each address label, e.g., “EXPORT adrStrOne”.
  • in the main program, o Merge the first string labeled by StrOne and the second string labeled by StrTwo in a unit of one.
    • Store the ASCII string as a NULL-terminated string to memory labeled as MixStr o If one string is longer than the other one, just copy the rest of the longer one to MixStr
    • g., “Hello Metro State!” and “I like assembly programming.” should be mixed as “HIe llliok eM eatsrsoe mSbtlayt ep!rogramming.”

 

  • Homework-4-hr93dp.zip