Question: Using only Irvine32.inc library if possible: Write a procedure named Str_concat that concatenates a source string to the end of a target string. Suf?cient space

Using only Irvine32.inc library if possible:

Write a procedure named Str_concat that concatenates a source string to the end of a target string. Suf?cient space must exist in the target string to accommodate the new characters. Pass pointers to the source and target strings. Here is a sample call:

.data

targetStr BYTE "ABCDE",10 DUP(0)

sourceStr BYTE "FGH",0

.code

INVOKE Str_concat, ADDR targetStr, ADDR sourceStr

Each string-handling procedure assumes the use of null-terminated strings. Even when not explicitly requested, write a short driver program for each exercise solution that tests your new procedure.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!