MASM dwords as character strings
- From: NoSpam@xxxxxxxxxxx (Bob Masta)
- Date: Tue, 11 Jul 2006 12:50:42 GMT
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!
Bob Masta
dqatechATdaqartaDOTcom
D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Home of DaqGen, the FREEWARE signal generator
.
- Follow-Ups:
- Re: MASM dwords as character strings
- From: rhyde@xxxxxxxxxx
- Re: MASM dwords as character strings
- Prev by Date: Re: Need Help.
- Next by Date: Re: MASM dwords as character strings
- Previous by thread: security and red zone
- Next by thread: Re: MASM dwords as character strings
- Index(es):
Relevant Pages
|
|