News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

WritePrivateProfileString

Started by skywalker, April 13, 2006, 06:22:24 PM

Previous topic - Next topic

P1

"Too many programmers, spoil the code."

Light-I, I suggest you read all of skywalker's posts.

And by means, Light-I, feel free to help. 

Regards,  P1  :8)

skywalker

Final version

[attachment deleted by admin]

P1

Consider either clearing whole eax register before a dword wise compare using a byte ( Like xor eax,eax ).  There might be left overs, that would cause your logic to fail.

- OR -

Perform the comparasion with just the al register, if all your inspecting is one byte.  ( in your .if statement. )

Regards,  P1  :8)


PBrennick

Well, well.  It assembles and it works!
Paul
The GeneSys Project is available from:
The Repository or My crappy website

skywalker

Thanks P1.

Paul,
       I try to upload stuff that I know works.(At least till I start changing it up again)

Question 1
REG_BINARY

When it says binary data in any form, what does that specifically entail.
(as opposed to REG_SZ used for strings)

Question 2
How can I automate this to check for multiple characters. I tried inc esi.

lea esi, szBigBuffer[0]   ;look at 1st character in buffer for a match
lodsb

.if EAX==31h ; the '1' character



Light-I

lodsb automaticaly changes esi regard of direction flag (switches inc/dec) from Status Register. Don't you read /masm32/help/opcodes.hlp ?

PBrennick

It is a mystery.  Join the club.
The GeneSys Project is available from:
The Repository or My crappy website