flat assembler
Message board for the users of flat assembler.
Index
> Main > String searches (was "HELP №2 ))))") |
Author |
|
labron 31 Aug 2013, 00:11
how to compare each element
string >dd< 123413241341234 with ASCII necessary to me code? |
|||
31 Aug 2013, 00:11 |
|
AsmGuru62 31 Aug 2013, 03:16
I do not understand your question.
You want to search for some small text inside larger text (a sub-string)? |
|||
31 Aug 2013, 03:16 |
|
bitRAKE 04 Sep 2013, 06:59
Code: format pe gui 4.0 entry start include 'win32ax.inc' proc start mov ecx,0 Start_pars: cmp ecx,[len_string] je Stop_pars cmp [string+ecx],53 je Good_pars add ecx,4 jmp Start_pars Stop_pars: invoke MessageBox,0,"Stop","Stop",0 invoke ExitProcess,0 Good_pars: invoke MessageBox,0,"good","53",0 invoke ExitProcess,0 endp string dd 11,22,11,22,22,33,44,33,22,66,34,23,54,34,23,44,11,22,11,22,22,33,44,33,22,66,34,23,54,34,23,44,54 len_string dd $ - string data import library kernel32, 'KERNEL32.DLL',\ user32, 'USER32.DLL' import kernel32,\ ExitProcess, 'ExitProcess' import user32,\ MessageBox, 'MessageBoxA' end data _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
04 Sep 2013, 06:59 |
|
DOS386 10 Sep 2013, 08:56
labron
Welcome to the FASM forum ... please use descriptive subjects (not HELP HELP HELP HELP ) and code tags (I edited and fixed your 2 posts here) |
|||
10 Sep 2013, 08:56 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.