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

  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

  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.

  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.

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

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Provide the rtl instructions

Provide the RTL instructions and the time steps that will facilitate the execution of the following assembly language instructions  LDA addr,x  STX addr,x

  Design a simple digital clock

Design a simple digital clock

  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?

  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.

  Register address machine

Express the statement X= (A*B)-(C*D)-E in the assembly language of each of 0- memory address machine, 3-register address machine with 3 registers R1,R2,R3, and 2-memory-register-address machine with three registers R1,R2, R3. Your solution should use..

  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