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

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

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

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  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 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.

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