Use the following data definitions until notified otherwise Byte1 BYTE 0FFh, 1,2
ID: 3759478 • Letter: U
Question
Use the following data definitions until notified otherwise
Byte1 BYTE 0FFh, 1,2
Byte2 Byte 14h
Word1 WORD 0FFFFh, 1,2
Word2 WORD 3
Word3 sWORD 7FFFh, 8000h
Word4 SWORD 9000h
Dword1 DWORD 10h, 20h, 30h, 40h
dArray DWORD 10 DUP (?)
11. Implement the following expression in assembly language, using 32 bit integers (you may modify any registers you wish)
Eax=dword1+ebx-ecx
12. Implement the following expression in assembly language, using 32 bit integers (you may modify Any registers you wish)
Eax=dword1+ (edx-ecx)+1
13. Implement the following expression in assembly language using 32 bit integers. The notation dword (1) corresponds by an array reference in C++ of Java
dArray (0)= dArray (1) + dArray (2)
14. Use the following data declaration to write an assembly language loop that copies the string from source to target. Use indexed addressing with EDI and use the LOOP instruction
Source BYTE sitting to be copied, 0
Target BYTE SIZEOF source DUP (0), 0
15. The MO V instruction does not permit an immediate value to be moved to a segment register
a. true
b. fales
Explanation / Answer
11)
mov eax,dword1
add eax,ebx
sub eax,ecx
12)
sub edx,ecx
mov eax,dword1
neg eax ; eax = -dword1
add eax,edx
inc eax
13)
mov eax,[dArray+4]
add eax,[dArray+8]
mov dArray,eax
14)
mov edi,0
mov ecx,SIZEOF source
L1: mov al,source[edi]
mov target[edi],al
inc edi
loop L1
15) a) True
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.