Re: MASM dwords as character strings
- From: "rhyde@xxxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: 11 Jul 2006 09:46:56 -0700
Bob Masta wrote:
OK, this is a trivial problem but one that has
bugged me for a while. There are many times
when I want to compare a dword with a 4-char string.
Let's say the string is 'RIFF' and I want to know if
EAX matches. Under MASM, I have to write
cmp eax.'FFIR'
to get the proper byte order. Is there some
way to tell it to reverse the byte order of string immediates,
so I can write them naturally and make the code
much easier to read?
Many thanks!
I've generally written a macro for this purpose, but if there is a way
to do it directly I'd be interested in knowing, too.
Cheers,
Randy Hyde
.
- References:
- MASM dwords as character strings
- From: Bob Masta
- MASM dwords as character strings
- Prev by Date: MASM dwords as character strings
- Next by Date: Re: How much does it take to execute MMX instruction?
- Previous by thread: MASM dwords as character strings
- Index(es):
Relevant Pages
|
|