Number of strings up to a maximum

Assignment Help Basic Computer Science
Reference no: EM132298064

Quick sort in assembly x86 language using the files below here is the link to the files

mboshart.dyndns.org/~mboshart/3410programs.html#prog3

Allow the user to enter a number of strings up to a maximum of 100 (MAX EQU 100). Set the maximum length of each of your strings as a constant at the top of your program. For example, you could set MAXLEN EQU 14 where there are a maximum of 12 characters in the string, a carriage return, and a line feed. I will need to be able to change MAXLEN in this one location, so make sure to pass the maximum string length to your procedures. Declare one array in your main program. Do not simply sort another array that contains the memory addresses of each string. Any string that starts with "x" is interpreted as the sentinel value indicating that the user is done entering strings. Display the unsorted array.

Sort the array of strings using quick sort. Write procedures as needed using multiple files. Header files should use conditional assembly. Your partition procedure should call a swap procedure that uses the stack for temporary swap space. Do not use a .DATA section in any procedure. You should also have a quicksort procedure called by the main program that starts the recursion off with the correct parameters.

Your program should be able to read strings in from an input file. The strings in the provided file are all the same length (spaces have been appended at the end of the strings to make them the same length). Your program should also be able to sort strings of differing lengths inputted without an input file. If two strings are identical except that one string is longer than another, the shorter string should come first.

Files

  • str_utils.h
  • str_utils.obj
  • build.bat
  • animals.txt

Program Specification:

  • Strings
  • movsb
  • cmpsb
  • repeat
  • ESI
  • EDI
  • Swap procedure
  • Directly use movsb and repeat in this procedure
  • Use the stack for temporary swap space (no .DATA in the procedure!)
  • Other Procedures
  • Compute address procedure (required for array random access)
  • Partition procedure that uses your swap procedure
  • Quicksort recursive procedure
  • Quicksort called by main program (starts recursion)
  • Conditional Assembly
  • Loops
  • Conditionals
  • Recursion
  • Arrays

Submission:

Comment and Submit Electronically:

  • quicksort_driver.asm (main program)
  • quicksort.asm
  • all supporting files (headers and any other items that you wrote)

Reference no: EM132298064

Questions Cloud

Relationship holds between these two propositions : What logical relationship holds between these two propositions? Explain.
Create restaurant-menu and pizza classes : Create Restaurant, Menu and Pizza classes and employee and hour structs. Create the .h and .cpp files for one of the classes
Define the predicates passenger : Let the domain of discourse be trains. Define the predicates Passenger(x), Cargo(x), and Mail(x) to mean that x carries passengers, cargo or mail
Determine the top five it assets : Determine the top five IT assets to include in a risk assessment for a typical manufacturing facility.
Number of strings up to a maximum : Allow the user to enter a number of strings up to a maximum of 100 (MAX EQU 100). Set the maximum length of each of your strings as a constant
Discuss one key take-away : Discuss one key take-away that you learned from the industry presentations and panel.
What are the differences between intrusion detection systems : What are the differences between intrusion detection systems (IDS) and intrusion prevention systems (IPS)?
Which would you recommend to a client : How do they differ in term of strength and operation? Which of this did you prefer and why? Which would you recommend to a client?
What is the significance of including aup in a security : Acceptable Use Policy - AUP is a very prominent component in a Security Policy.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the irr for the project

The investment cost is depreciated to zero over a 3-year straight-line schedule. What is the IRR for the project?

  What is network address translation

What is Network Address Translation (NAT)? Why would a company utilize it? Would it be more typical for a small, medium, or large company to use NAT?

  Define mitigation techniques

Perform a high level risk analysis for this project. Be sure to define mitigation techniques.

  How cloud computing may lead to intelligent fabrics

Describe how cloud computing may lead to "intelligent fabrics" in the future and how this will impact companies and consumers. Use real-world examples to suppor

  What is the final score if play on both sides is optimal

Othello played on a 6 × 6 board is a forced win for black. Prove this assertion by writing a program. What is the final score if play on both sides is optimal?

  What is the address of entry in third row

what is the address of the entry in the third row and fourth column? What if each entry requires two memory cells?

  Find all the information for the homework

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether Attached you will find all the information for the homework.

  Measures of economic health than changes to government debt

Is it safe to conclude changes in a nation's equity are better measures of economic health than changes to government debt?

  Express the assignment problem

The problem is to assign the people to the jobs to minimize the total cost of the assignment. Express the assignment problem as a 0-1 linear programming problem.

  Create a java or c sharp application that simulates

Create a Java or C# application that simulates

  What are the two types of requirements

We can define a requirement as "a specification of what should be implemented". What are the two types of requirements?

  Balanced budget be bad for the economy

Why would a government balanced budget be bad for the economy, the people, and the federal government itself. Please cite references. Need this ASAP!

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