Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the LC-3 simulator and editor , Your task is to produce two programs that provide the opposite function of PUTS and PUTSP that is,

Using the LC-3 simulator and editor ,

Your task is to produce two programs that provide the opposite function of PUTS and PUTSP that is, they take a string as input and place the string into memory at a location specified in R0. You will create two separate stand-alone programs: one for GETS and one for GETSP. The programs do not need to be implemented as subroutines or TRAP calls.

you will construct an assembly-level program that prompts the user for a string (the end of the string will be delimited by the character x0A, the ASCII character Enter). You will store the ASCII string representation of this input (including a terminating NULL character) in memory. The Enter character should not be considered part of the string and thus should not be stored. For the purposes of demonstration, I would like you to store the string at address x3100 (add the appropriate code to your program) and show that you have successfully stored the string by printing it back to the display using PUTS or PUTSP. Your program will be located in memory at location .ORIG x3000.

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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions