News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

What the ':=<0>' mean?

Started by UtillMasm, February 09, 2010, 04:16:30 AM

Previous topic - Next topic

UtillMasm

;...
FILE_DEVICE_UNKNOWN equ 22h
METHOD_BUFFERED equ 0
FILE_READ_ACCESS equ 1
FILE_WRITE_ACCESS equ 2
;...
CTL_CODE macro DeviceType:=<0>,Function:=<0>,Method:=<0>,Access:=<0>
  exitm %(((DeviceType) shl 16) or ((Access) shl 14) or ((Function) shl 2) or (Method))
endm
;...
IOCTL_GET_PHYS_ADDRESS equ CTL_CODE(FILE_DEVICE_UNKNOWN,800h,METHOD_BUFFERED,FILE_READ_ACCESS+FILE_WRITE_ACCESS)
;...

Help! Help! Help!

dedndave

it must be part of the label name   :bg
ohhhh - i bet those are locals - the ":" is the scope   :U

sinsi

If you skip a parameter the text in the angles is the default value.
Light travels faster than sound, that's why some people seem bright until you hear them.

UtillMasm

 :U
how to skip a (the 'DeviceType') parameter:IOCTL_GET_PHYS_ADDRESS equ CTL_CODE(,800h,METHOD_BUFFERED,FILE_READ_ACCESS+FILE_WRITE_ACCESS)
any other way to skip a parameter?