From: Mint on
I am getting A2068: instruction prefix not allowed with the last
statement.
Can someone help?

Thanks.

..data

string db '¯Œž“’ÇÉÛ' ; not $ = Û (Alt 219)MUST BE AT
THE END !!
NoNo db ' ',0

..data?

storage db (sizeof string) dup (?) ; contains decrypted
string


Burn:
xor eax,eax
mov edi,offset storage
mov ecx,sizeof string
repnz stosb ; Zero data area
From: Rod Pemberton on
"Mint" <chocolatemint77581(a)yahoo.com> wrote in message
news:351a3789-e825-4e27-905c-729eb04da311(a)5g2000yqz.googlegroups.com...
>
> I am getting A2068: instruction prefix not allowed with the last
> statement.
> Can someone help?
>

Apparently, that's an error for MASM. It indicates an invalid use of a
prefix. It seems MASM 5.0 didn't check for correct usage.

> [...]
> repnz stosb ; Zero data area
>

You could try REPNE for REPNZ, REPE for REPZ.

JWASM lists -Zm as a MASM flag to allow "invalid" prefixes. It's probably
/Zm flag.


Rod Pemberton


From: Mint on
On Jun 12, 6:57 pm, "Rod Pemberton" <do_not_h...(a)notreplytome.cmm>
wrote:
> "Mint" <chocolatemint77...(a)yahoo.com> wrote in message
>
> news:351a3789-e825-4e27-905c-729eb04da311(a)5g2000yqz.googlegroups.com...
>
>
>
> > I am getting A2068: instruction prefix not allowed with the last
> > statement.
> > Can someone help?
>
> Apparently, that's an error for MASM.  It indicates an invalid use of a
> prefix.  It seems MASM 5.0 didn't check for correct usage.
>
> > [...]
> >        repnz   stosb                   ; Zero data area
>
> You could try REPNE for REPNZ, REPE for REPZ.
>
> JWASM lists -Zm as a MASM flag to allow "invalid" prefixes.  It's probably
> /Zm flag.
>
> Rod Pemberton

This fixed my code.

rep stosb

I love it when things are simple. :-)


Take care.