The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: UtillMasm on February 09, 2010, 04:16:30 AM

Title: What the ':=<0>' mean?
Post by: UtillMasm on February 09, 2010, 04:16:30 AM
;...
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!
Title: Re: What the ':=<0>' mean?
Post by: dedndave on February 09, 2010, 04:36:46 AM
it must be part of the label name   :bg
ohhhh - i bet those are locals - the ":" is the scope   :U
Title: Re: What the ':=<0>' mean?
Post by: sinsi on February 09, 2010, 04:50:15 AM
If you skip a parameter the text in the angles is the default value.
Title: Re: What the ':=<0>' mean?
Post by: UtillMasm on February 09, 2010, 04:57:50 AM
 :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?