Write an assembly code that removes blank spaces

Assignment Help Computer Engineering
Reference no: EM131932939

Problem

In this problem, you will write a LC-3 assembly code that removes blank spaces from a string. Assume that the string starts at memory location 0x5000, and is terminated by a ‘\0' character (ASCII value = 0). Your program should store the modified string in the memory location starting at 0x5100. You do not need to modify the original string stored at 0x5000. You can assume that the original string at 0x5000 will always be less than 100 characters in length, and it will always start with a letter (A-Z, lowercase or uppercase possible).Note: If the modified string has 7 characters, and the original string has 15 characters, the last 8 characters of your modified string should be all ‘%' (ASCII value = 0x25).For example: If the original string at 0x5000 was "aa 12 d e f", the modified string at 0x5100 after your program completes execution should be "aa12def%%%%". Note that the original string has 4 blank space characters, and the modified string has 4 extra "%" in the end. Your code should start at memory location 0x3000.

Reference no: EM131932939

Questions Cloud

What is the probability that sam gets a scholarship : (a) What is the probability that Sam gets a scholarship but Allen doesn't?
Create an accounting equation using the elements assets : Accounts titles and the accounting equation - Create an accounting equation using the elements assets, liabilities, and stockholders' equity
Find the estimated growth rate in dividends : Alfa is a start-up company who is using all its cash to growth so it does not plan to pay dividends for the next 4 years.
Find the sample size : A pizza shop owner wishes to find the 95% confidence interval of the true mean cost of a large plain pizza.
Write an assembly code that removes blank spaces : In this problem, you will write a LC-3 assembly code that removes blank spaces from a string. Assume that the string starts at memory location 0x5000.
Individual can hedge against loss from decline interest rate : If a lender agrees to lend a firm $ 1,000,000 after six months at the going rate, that individual can hedge against the loss from a decline interest rates by
Write at least a two-page research report on billing issues : Write at least a two-page research report on billing issues in the context of health information management.
At what level of expected cash flows does it make project : If the estimates of remaining cash flows are revised based on the first year's experience, at what level of expected cash flows does it make sense to abandon.
Compute the adjusted net income to be used : Compute the adjusted net income to be used as the numerator in the basic earnings per share calculation for the year ended December 31, 2013

Reviews

Write a Review

Computer Engineering Questions & Answers

  Distinguish between syntax and semantics

Distinguish between syntax and semantics. Distinguish between a program that the CPU can execute directly and a program that must be translated.

  Explain the different types of raid

Explain the different types of RAID, and elaborate on how each type differs:

  Develop the logic for a program that would produce a table

Develop the logic for a program that would produce a table for the school. Each row represents the number of lessons taken: 0-9, 10-19, 20-29, and 30 or more.

  Illustrate the difference between a relative cell reference

q1. what happens in an excel spreadsheet if a cell contains numerical data but the column is too narrow to display the

  What effect does have on the address translation process

The PMMU can be programmed to treat the high-order three address bits from the 68020 address bus in a special way. What way and why?

  Exhibit a set of representatives modulo 17 composed

1. a string over a finite set sum is a finite sequence of elements from sum . show that the following procedure defines

  Examine the term-document matrix

Examine the term-document matrix. i. Is it sparse or dense? ii. Find two non-zero entries and briefly interpret their meaning, in words.

  Create an application that generates a quiz

Create an application that generates a quiz

  Create a program that asks the user for the number of month

Create a program that asks the user for the number of a month, then creates the array F of (n+1) Fibonacci numbers, and prints the sequence.

  Find out for a well-known company

Review the code of ethics that you find for a well-known company. Based on research, analyze it to determine whether or not the company is complying with it.

  Define the terms adjacent path cycle and connected

Define the terms adjacent, path, cycle, and connected. What does it mean for a directed graph to be strongly connected? Weakly connected?

  Generate descriptive statements from case study descriptions

Generate five descriptive statements from the case study descriptions of the library. Generate five prescriptive statements from the case study descriptions of the library.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd