- Assembly 2 Data Data1 Dd 01234567h Data2 Dd Code Mov Ax Data Mov Ds Ax Mov Cx 4 Mov Si Offset Data1 Mov Di Offs 1 (114.13 KiB) Viewed 35 times
Assembly-2: .DATA data1 dd 01234567h data2 dd ? .CODE MOV AX,@DATA MOV DS,AX MOV CX, 4 MOV SI, offset data1 MOV DI, offs
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Assembly-2: .DATA data1 dd 01234567h data2 dd ? .CODE MOV AX,@DATA MOV DS,AX MOV CX, 4 MOV SI, offset data1 MOV DI, offs
Assembly-2: .DATA data1 dd 01234567h data2 dd ? .CODE MOV AX,@DATA MOV DS,AX MOV CX, 4 MOV SI, offset data1 MOV DI, offset data2+3 L1: MOV AL,[SI] MOV [DI],AL ADD SI,1 ADD DI,-1 LOOP L1 END der the Assembly-2 below. 6. What will be the conrent of data2, if Assembly-2 runs completely ? a)01234567h b) 76543210h c) 01452367h d) 01245672h e) 67452301h f)None of these 7. What will be the content of DI after "MOV DI, offset data2+3" instruction ? a) 0003H b) 0004H c) 0005H d) 0006H e) 0007H 8. Find the content of DI at the end of first loop. a) 0001H b) 0002H c) 0003H d) 0004H e) 0005H f) 0006H f) None of these 9. If "MOV CX, 4" is modified as "MOV CX, 2" what will be data2 after Assembly-2 runs completely? dec al loop L1 a) ZF, CF b) ZF, PF c) ZF, SF d) ZF, OF e) ZF, AF 11. After the instructions below, find out which flags are set? g) None of these a) 012300H b) 67450000H c) 45670000H d) 23010000H e) 76540000H f)None of these 10. After the instructions below, find out which flags are set? mov ax,5h mov cx,5 L1: MOV AL, OFFH ADD AL, OEFH RET a) SF, CF b) SF, PF,OF c) PF, AF d) CF, SF, PF f) None of these e) CF, AF,SF, PF f)None of these