I am just getting to grips with assembler (trying) and would like to know what purpose does angled brackets serve? example
.data
cf CHOOSEFONT <>
cfm CHARFORMAT2 <>
pf PARAFORMAT <>
lpToolInfo TOOLINFO <>
myLogFont LOGFONT <>
terrible sorry if the question is too basic.
.data
cf CHOOSEFONT <>
cfm CHARFORMAT2 <>
pf PARAFORMAT <>
lpToolInfo TOOLINFO <>
myLogFont LOGFONT <>
terrible sorry if the question is too basic.
In MASM the angle brackets are a place holder for structure data - the default values are used (or zero if there is no default). Let me give an example:
; define the structure type and default values
sTEMP STRUCT
abc DWORD 50
xyz DWORD 300
sTEMP ENDS
; create some structures:
struct1 sTEMP <> ; this is the same as "struct1 DWORD 50, 300"
struct2 sTEMP <22,> ; this is the same as "struct1 DWORD 22, 300"
IIRC, I don't think angle brackets are used in FASM - moved thread.Many thanks BitRake. I really appreciated your prompt and informative reply
cf SomeThing <>
means that the same of
cf has the size in bytes of SomeThing
its the same of making zeros
for example if SomeThing is 4 bytes
cf db 0,0,0,0
look here:
http://194.65.3.199/win32asm/MASMstruct2NASM.html
means that the same of
cf has the size in bytes of SomeThing
its the same of making zeros
for example if SomeThing is 4 bytes
cf db 0,0,0,0
look here:
http://194.65.3.199/win32asm/MASMstruct2NASM.html