The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: Ficko on June 22, 2010, 10:09:37 AM

Title: SQWORD
Post by: Ficko on June 22, 2010, 10:09:37 AM
I just found out that MASM (v10) understands "SQWORD" I don't know exactly what I can do with it but I think it wasn't allways that way. :P
Title: Re: SQWORD
Post by: MichaelW on June 22, 2010, 10:44:10 AM
6.14 and 6.15 do not recognize SQWORD.
Title: Re: SQWORD
Post by: Ghandi on June 22, 2010, 10:51:58 AM
Just a stab in the dark, but could it be the same operations as a SBYTE, SWORD and SDWORD? What would really surprise me though, is if MASM supports a signed OWORD (SOWORD?) How does MASM treat these versions anyway? IE: How does it treat then differently to their 'normal' counterparts?

HR,
Ghandi
Title: Re: SQWORD
Post by: ecube on June 24, 2010, 07:48:17 AM
http://help.outlook.com/en-us/140/se68chye%28VS.80%29.aspx

jwasm supports it aswell, not sure exactly what you're asking but


.if sdword ptr eax>1   ;JLE
ret
.endif

.if eax>1   ;JBE
ret
.endif



thats what signed/unsigned dword comparison looks like
Title: Re: SQWORD
Post by: jj2007 on August 06, 2010, 03:57:52 PM
Quote from: MichaelW on June 22, 2010, 10:44:10 AM
6.14 and 6.15 do not recognize SQWORD.

Workaround: Put these three lines somewhere at the top of your include statements.
ife opattr SQWORD
SQWORD equ QWORD
endif

These are not "true" SQWORDS in Masm 6.14 or 6.15, but in most situations it will prevent more recent code from choking with these old assembler versions.