flat assembler
Message board for the users of flat assembler.

Index > Main > How search text names from table names ? repe cmpb

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1082
Roman
I have 10 text names.
I search this names(from TabNames) in the text.
Serching to symbol ( or ,
Code:
Denny
Faruk()
Frank,Goof
FrankB
FrankC
    

Code:
;for each names 64 bytes
TabNames db 640 dup (0)
    


And how do searching repe cmpb to null in end text ?
Str1 db 'TextA',0
Str2 db 'Text long B',0
Post 19 May 2021, 04:54
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18222
Location: In your JS exploiting you and your system
revolution
Code:
mov esi, string1
mov edi, string2
mov ecx, max_length
repe cmpsb
jz .they_are_the_same
jnz .they_are_different    
Post 19 May 2021, 11:00
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.