Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not copy other posts. Do this in a 32-bit x86 assembly program in masm format. Show output and explain how to run the

image text in transcribedPlease do not copy other posts. Do this in a 32-bit x86 assembly program in masm format. Show output and explain how to run the code properly. On visual studio

image text in transcribed

Use the screenshots as illustration. If you get this correct you will receive a thumbs up. Thank you

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 Array1 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: Array 1=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 Part 1: Before swapping, after init, EBX: Registers After execution: swapped: you may use AL as temp Registers Part 2: Arrays after init After execution: Array2 is updated as expected Note: Array 2 is right next to Array, they can be displayed together

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

What are the steps involved in the HR planning process?

Answered: 1 week ago

Question

1.what is the significance of Taxonomy ?

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago