Question: Please answer these two parts of ASM problems. Detail coding would be appreciated. The experst in Chegg did these and all of them missing lines
Please answer these two parts of ASM problems. Detail coding would be appreciated. The experst in Chegg did these and all of them missing lines of codes that made te program fail. 
Write a 32-bit x86 assembly program that performs the following operations: Part 1: Swaps content of EBX as follows: Requirement: Store 'A' in EBX LSB or BL, store 'B' in BH, and then swap BL and BH. You will have to use a temporary storage, you can use EAX (use AL ) or any storage you may define. For example: Content of EBX at init: 00000000 , then after storing A and B: EBX = 00004241;4241=ASCII codes in Hex After swapping: EBX=00004142 which is BA Part 2: Create 2 Arrays, Array1 and Array2 -Initialize Array 1 as: 1,2,3,4, and Array 2 to 0,0,0,0 (must use the DUP instruction) Requirement: Copy content of Array 1 to array 2 in a reverse order, i,e: For example: Array1 = 1, 2, 3, 4 After program run: Array2 = 4, 3, 2, 1, Array 1 is unchanged, content are taken from array 1 to array 2 The code will be 100% based on chapter 3 ASM VS project discussed during the lecture and uploaded to CANVAS (can be all derived from the existing project)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
