Re: It works... now what?
- From: "\\\~\o/~///annabee" <faq@xxxxxxxxxxxxxx>
- Date: 27 Dec 2005 16:00:30 -0800
//
cmp eax,ERROR_SUCCESS
je cont//
This can be replaced by
or eax eax | je ***
While not important, it will save a byte.
replacing:
//mov esi src
cmp BYTE PTR [esi],48 //
with :
cmp b$src 48
He saves 5 bytes
Still not important or anything, I just noticed, since you were
conserned with "tidyness"
Also since the only diffrence between on and off is the setting of ARG
to 1 or 0 he could do:
mov d$ARG eax
cmp b$src 48 | jne Onoff
inc b$ARG 1
OnOff:
invoke RegSetValueEx,lpFullKey,addr lpValueName2,NULL,
00000004h,addr arg,4
invoke RegSetValueEx,lpFullKey,addr lpValueName,
NULL,00000001h,offset ProxyAddr,32
done:
saving a heap of bytes.
Anyway, Thanks for trying, Hutch.
.
- Follow-Ups:
- Re: It works... now what?
- From: hutch--
- Re: It works... now what?
- From: Frank Kotler
- Re: It works... now what?
- References:
- It works... now what?
- From: #2pencil
- Re: It works... now what?
- From: Robert Redelmeier
- Re: It works... now what?
- From: hutch--
- It works... now what?
- Prev by Date: Re: It works... now what?
- Next by Date: Re: Numeric output
- Previous by thread: Re: It works... now what?
- Next by thread: Re: It works... now what?
- Index(es):