The MASM Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 09, 2010, 02:10:09 am

Login with username, password and session length
Search:     Advanced search
117346 Posts in 14003 Topics by 1654 Members
Latest Member: road_hog
* Home Help Search Login Register
+  The MASM Forum
|-+  General Forums
| |-+  The Campus
| | |-+  What the ':=<0>' mean?
« previous next »
Pages: [1] Print
Author Topic: What the ':=<0>' mean?  (Read 260 times)
UtillMasm
Member
*****
Posts: 560

Please use a non offensive avatar


What the ':=<0>' mean?
« on: February 09, 2010, 04:16:30 am »

Code:
;...
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!
Logged
dedndave
Member
*****
Gender: Male
Posts: 5929


Still using Abacus 2.0


Re: What the ':=<0>' mean?
« Reply #1 on: February 09, 2010, 04:36:46 am »

it must be part of the label name   BigGrin
ohhhh - i bet those are locals - the ":" is the scope   ThumbsUp
Logged

Zn+1 = Zn2+C
sinsi
Member
*****
Gender: Male
Posts: 1407



Re: What the ':=<0>' mean?
« Reply #2 on: February 09, 2010, 04:50:15 am »

If you skip a parameter the text in the angles is the default value.
Logged

the best end of the day
is the West End of the day
UtillMasm
Member
*****
Posts: 560

Please use a non offensive avatar


Re: What the ':=<0>' mean?
« Reply #3 on: February 09, 2010, 04:57:50 am »

 ThumbsUp
how to skip a (the 'DeviceType') parameter:
Code:
IOCTL_GET_PHYS_ADDRESS equ CTL_CODE(,800h,METHOD_BUFFERED,FILE_READ_ACCESS+FILE_WRITE_ACCESS)
any other way to skip a parameter?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!