LENGTH Return number of elements Operator
LENGTH addr_name ; Ideal or MASM mode
Returns the count of items allocated when the address name was defined.
LENGTH struc/table_member_name ; MASM mode
Returns the count of items allocated when the member was defined.
When applied to all other symbol types, LENGTH returns 1.
Examples: msg DB "Hello"
array DW 10 DUP (4 DUP (1),0)
numbrs DD 1,2,3,4
lmsg = LENGTH msg ;= 1, no DUP
larray = LENGTH array ;= 10, DUP repeat count
lnumbrs = LENGTH numbrs ;= 1, no DUP