flat assembler
Message board for the users of flat assembler.
Index
> Windows > Adding Strings |
Author |
|
zhak 17 Jun 2006, 07:30
here's the simplest example you can examine and modify according to your needs:
Code: section 'code' code readable executable ........ mov esi, first xor ecx, ecx @@: lodsb cmp al, 13 ;find EOL jnz @b inc ecx cmp ecx, 3 ;line #3? jnz @b dec esi invoke wsprintf, buffer, frmt, first, mystr, esi add esp, 4*5 ;pop out 5 DWORDs ......... section 'data' data readable writeable first db "hasdhashdhas",13,10,\ "askdjsladj",13,10,\ "asdsaskdjsladj",13,10,\ "sdjsladj",0 frmt db '%s%s%s',0 ;concatenate 3 strings mystr db 'MYSTRING',0 buffer db 256 dup(?) |
|||
17 Jun 2006, 07:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.