Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assembly Language ASM - Computer Science bl BYTE OFEh, 5,6 b2 BYTE 15h,5.7 wd1 WORD OPFFEh,3,5 wd2 WORD 7h, 15, 12 wd3 SWORD 7PFEh, 9000h
Assembly Language ASM - Computer Science
bl BYTE OFEh, 5,6 b2 BYTE 15h,5.7 wd1 WORD OPFFEh,3,5 wd2 WORD 7h, 15, 12 wd3 SWORD 7PFEh, 9000h wd4 SWORD 7000h, 8000h d1 DWORD 20h,30h, 40h,50h dray DWORD 10 DUP (7) 1. Write one or more statements to exchange the array the array at wd1 with the array at wd2 a. mov wd3, wd2 For each of the following instructions, indicate whether it is valid (V) or invalid (U; 4. Indicate the hexadecimal value of the destination operand next to each instruction. Use the letterI to indicate that a particular instruction is illegal: mov dx, wd3+2 movsx eax, b mov dh, al mov bx,dx Indicate the hexadecimal value of the destination operand next to each instruction. Use the letter I to indicate that a particular instruction is invalid: 5. mov ax, [wd3+2) mov eax, (d1.81 b.mov al, [bytel.11 c.mov eax, Iwd3+4) 6 Indicate the hexadecimal value of the destination operand at each line of code. mov ax,wd 1 inc ax dec ax mov ax, wd3+2 neg ax add ax, 0A3131h 7. At each line indicate the hexadecimal value of the destination operand mov al, 7Ah add al,4 sub al,2 mov al, 79h add al,05h neg al 8. Write an instruction that moves the 32-bit address of wdl+2 into the EDI register (assume 32-bit Protected mode). 9. Write an instruction that moves the higher 16 bits of ddl into the AX register (hint use PTR) 10. Write an instruction that moves the higher 8 bits of wd2 into the BL register 11 Write an instruction that moves EAX to location wd2+2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started