Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Visual Studio on the UTSA VDI system, create a project using the code given above. unsigned char short int int gArray - gArraysI gArrayI
Using Visual Studio on the UTSA VDI system, create a project using the code given above.
unsigned char short int int gArray - gArraysI gArrayI 0x05, 0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i 0x05,0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i 0x05,0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i int test ) _asm { mov al, gArray lea esi, gArray mov dl, byte ptr esi] mov edx, dword ptr [esi+2 edx- mov al, gArray I5] esi- dl nop mov ax, gArraySI lea esi, gArraySI mov dl, byte ptr esi] mov edx, dword ptr [esi+2 edx- mov ax, gArraysI[5] ax- dl ax nop mov eax, gArrayI lea esi, gArrayI mov dl, byte ptI esi] mov edx, dword ptr esi+2 edx- mov eax, gArrayI[5] esi- dl- nop return 0 int main( 1nt argc, charrgv[] test)i exit (0)i 2. Compile and single step through the program, writing down the value of the destination for each instruction. unsigned char short int int gArray - gArraysI gArrayI 0x05, 0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i 0x05,0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i 0x05,0xFE, 0x1A, 0x1c, 0x28, 0xCC, 0xD3, 0x81 i int test ) _asm { mov al, gArray lea esi, gArray mov dl, byte ptr esi] mov edx, dword ptr [esi+2 edx- mov al, gArray I5] esi- dl nop mov ax, gArraySI lea esi, gArraySI mov dl, byte ptr esi] mov edx, dword ptr [esi+2 edx- mov ax, gArraysI[5] ax- dl ax nop mov eax, gArrayI lea esi, gArrayI mov dl, byte ptI esi] mov edx, dword ptr esi+2 edx- mov eax, gArrayI[5] esi- dl- nop return 0 int main( 1nt argc, charrgv[] test)i exit (0)i 2. Compile and single step through the program, writing down the value of the destination for each instructionStep 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