Answer to Question #208442 in Assembler for Malik

Question #208442

.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 ...


1
Expert's answer
2021-06-21T15:44:58-0400

.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


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS