Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using the LC3 assembler to write two programs taking a user input string of characters, storing it to an array labeled ARRAY, and

I am using the LC3 assembler to write two programs taking a user input string of characters, storing it to an array labeled ARRAY, and then outputting it to the console using PUTS and PUTSP. I have finished the PUTS.asm program, since it only needed to store a single character per 16 bit word to sequential array locations. My issue is figuring out how to store the characters to the array, two characters per 16 bit word, so that I can just call LEA R0, ARRAY and then PUTSP to print out the packed array. My specific question would be: how do I go about packing the array; how do you store two characters per 16 bit word?

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_2

Step: 3

blur-text-image_3

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

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions