.data
Val1 BYTE 10,20,5 DUP(3) ; i. _______________
Val2 WORD 8 DUP(3 DUP(?)) ; ii. ______________
Val3 WORD 20,30,10 DUP(20) ; iii. _____________
Val4 DWORD 30 DUP(?),0,0 ; iv. ______________
.code
mov cx,SIZEOF Val1 ...
.data
Val1 BYTE 10,20,5 DUP(3) ; i. SIZEOF Val1= 7 BYTE
Val2 WORD 8 DUP(3 DUP(?)) ; ii. SIZEOF Val2= 48 BYTE (24 WORD)
Val3 WORD 20,30,10 DUP(20) ; iii. SIZEOF Val3= 24 BYTE (12 WORD)
Val4 DWORD 30 DUP(?),0,0 ; iv. SIZEOF Val4= 128 BYTE (32 DWORD)
.code
mov cx, SIZEOF Val1 ; cx = 7
mov cx, SIZEOF Val2 ; cx = 48
mov cx, SIZEOF Val3 ; cx = 24
mov cx, SIZEOF Val4 ; cx = 128
Comments
Leave a comment