Create a strcat procedure

Assignment Help Assembly Language
Reference no: EM13161180

Create a strcat procedure (like C's strcat function). Your procedure will be given the addresses (using the method presented in Chapter 8) of two string arrays. It will add the contents of the second array to the first. Make sure there is enough extra space in the first array to accomodate the characters that will be added. Your program will print the contents of both strings before calling strcat, then print the contents of string1 after the call. It should not change the second string in any way.

Here is the main for this assignment:

main PROC
        call Clrscr

        mov  eax, OFFSET string1        ;push string1's address
        push eax
        call writestring
        mov  eax, OFFSET string2        ;push string2's address
        call writestring
        push eax

        call strcat

        mov edx, OFFSET string1 ;output string1
 which should be a combination of string1 + string2
        call writestring
        call crlf

        exit
main ENDP

Reference no: EM13161180

Questions Cloud

Implement a graphics system that has classes : Implement a graphics System that has classes for various figures: rectangles, squares, triangles and circles. A rectangle has data members height, width, color , and center point. A square has center point and an edge and color
What factors limit exponential growth : What is the difference between geometric and exponential growth and what factors limit exponential growth (carrying capacity) resulting in logistic growth?
Make 2-dimensional array : make 2-dimensional array a bit of life and bringing them from the abstract to the concrete realms
Why would predator population growth lag : Why would predator population growth lag behind prey population growth? If the predator population is removed and the prey population growth continues on the same boom and bust cycle, how would you explain this?
Create a strcat procedure : Create a strcat procedure (like C's strcat function). Your procedure will be given the addresses (using the method presented in Chapter 8) of two string arrays.
What is self-thinning in terms of competition : What is self-thinning in terms of competition and how does this benefit the population?
Three or more dimensions : What kind of program, or problem, might necessitate arrays of three or more dimensions?
Application that finds all 4 digit numbers : Create an application that finds all 4 digit numbers (those would be the numbers in the range 1000-9999) whose value is equal to the sum of each digit raised to the fourth power. MEANINGFUL output should be sent to the screen.
Why atmospheric carbon dioxide levels fluctuate daily : Describe how and why atmospheric carbon dioxide levels fluctuate daily, seasonally, and geographically. Also why is the carbon cycle tied to energy flow charts?

Reviews

Write a Review

Assembly Language Questions & Answers

  Application that finds all 4 digit numbers

Create an application that finds all 4 digit numbers (those would be the numbers in the range 1000-9999) whose value is equal to the sum of each digit raised to the fourth power. MEANINGFUL output should be sent to the screen.

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Assembly-language program

Write an assembly-language program to add each element of list1 to the corresponding element of list2 and store it in the same location of list2. Use a loop.

  Multiply by using shift and add instructions

How does real time PCR work to quantify the initial amount of the DNA template? How should the method be modified to quantify the initial amount of RNA template extracted from tissue or cells?

  Program a maze-type game using assembly language

This project requires you to program a maze-type game using Assembly Language. It is not acceptable to use any other programming language for this project. T

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Assembly language point-of-view

From an Assembly Language point-of-view, any registers that are touched by a function need to first be preserved and then later restored to their original value when that function ends, if that functions wishes to leave no side-effects after its exec..

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write a sequence of two instructions

Write a sequence of two instructions that copies the inter in 4-7 from the AL registers into bits 0-3 of the Bl register. The upper 4 bits of AL will be cleared as will the upper 4 bits of BL. (Microsoft Assembly Language)

  Build an 8088 assembler

In this project, you will build an 8088 assembler. The job of your assembler is to turn 8088 assembly code (i.e., the 8086 assembly code language) into 8088 machine code that executes in an DOS emulator.

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