I
I
IvankoPo2017-05-01 17:34:51
assembler
IvankoPo, 2017-05-01 17:34:51

Add two lines?

there is a line
res db "Result = ", 0
and there is a calculated number that is translated into a string zn dw
so how can I add the string zn to the res string?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2017-05-01
@15432

concatenation?
1) allocate memory for a new string of length equal to the sum of the lengths of the first two strings (+ 1)
2) copy the first string to the beginning of the allocated memory
3) copy the second string immediately after the first string in the new buffer
4) do not forget the terminating zero at the end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question