flat assembler
Message board for the users of flat assembler.
Index
> DOS > Concat Strings |
Author |
|
LocoDelAssembly 15 May 2007, 21:24
Supposing NULL terminated strings and flat mode to simplify things:
Code: strCat: ; SI = destination; DI = source; DF = 0 lodsb test al, al jnz strCat xchg si, di dec di .copyChar: lodsb stosb test al, al jnz .copyChar ret |
|||
15 May 2007, 21:24 |
|
vid 16 May 2007, 00:08
don't forget to add space between them
|
|||
16 May 2007, 00:08 |
|
LocoDelAssembly 16 May 2007, 01:01
Code: mov byte[buffer], 0 irp source, szFirstName, szSpace, szLastName { mov si, buffer mov di, source call strCat } |
|||
16 May 2007, 01:01 |
|
Jakevfr 16 May 2007, 20:37
Thanks!
|
|||
16 May 2007, 20:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.