The MASM Forum

General => The Workshop => Topic started by: clamicun on September 19, 2016, 10:56:23 AM

Title: A question on find$ macro.
Post by: clamicun on September 19, 2016, 10:56:23 AM
A question on find$ macro.

eg.
thestring db "1234.56",0
eax = find$(offset thestring,".")
returns 5

Is there a function or a macro - to check on 2 dots ?

thestring2 db"123.4.56
macro or function ???

Thank you
Title: Re: A question on find$ macro.
Post by: hutch-- on September 19, 2016, 11:30:20 AM
Use the same macro again but add one (1) to the return value from the first macro call and use it as the address to start from.
Title: Re: A question on find$ macro.
Post by: clamicun on September 20, 2016, 03:19:11 AM
Does make sense ..
Thank you Hutch

thestring db "1234.56",0
eax = find$(1,offset thestring,".")
returns 5

thestring2 db "1234.56.78",0
eax = find$(5,offset thestring2,".")