The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: georgek01 on May 17, 2007, 05:49:43 AM

Title: Please don't laugh at me...
Post by: georgek01 on May 17, 2007, 05:49:43 AM
From Microsoft Platform SDK:

Quote
...
hsz2
     Reserved; should be set to 0L.

What is 0L? Will it be equivalent to plain old 0 (zero)?
Title: Re: Please don't laugh at me...
Post by: sinsi on May 17, 2007, 05:59:55 AM
I always read it as "DWORD 0", but then again I know no C/C++
Title: Re: Please don't laugh at me...
Post by: hutch-- on May 17, 2007, 07:18:38 AM
georgek01,

It normally means ZERO "LONG".

roughly like this if you are using registers.

mov al, 0    ; a byte
mov ax, 0    ; a WORD
mov eax, 0    ; a DWORD or if signed a LONG.

LONG is a higher level term fora 32 bit signed integer.
Title: Re: Please don't laugh at me...
Post by: georgek01 on May 17, 2007, 11:37:35 AM
Thank you!
Title: Re: Please don't laugh at me...
Post by: P1 on May 17, 2007, 02:01:58 PM
Quote from: georgek01 on May 17, 2007, 05:49:43 AMWhat is 0L?
Well, in this case, maybe OL = Outrageous Laughter   :wink

Not really, but the irony was tickling my funny bone.

George Welcome Aboard  :U

Regards,  P1   :8)