Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write the following code in emu8086 editor: org 100H mov ax,2 mov bx,2 add ax,bx mov cx,ax ret The first line of this program,

1. Write the following code in emu8086 editor:
org 100H mov
ax,2 mov
bx,2 add
ax,bx mov
cx,ax
ret
The first line of this program, org 100H, is a necessary requirement for all assembly programs written in emu8086. You should always start with this header. Your program should also always end with the RET instruction. This instruction basically gives back control of CPU and system resources back to the operating system. The RET statement will be used in further classes. This program basically adds two numbers stored in two separate registers. The final result is stored in a third register. Assemble this program and run it. Follow the in class lecture regarding the use of the emulator and its various features and debugging techniques.

2.Create two arrays of size 5. Load one of the arrays with random numbers of your choice. The second arrays should be kept blank. Copy the contents of the first array into the second array in reverse order. You must not use loops to accomplish this task.

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

Answer 1 The program you have written is right but you right like below scree shotright end After ex... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Electrical Engineering questions

Question

What was the first language you learned to speak?

Answered: 1 week ago

Question

Question:

Answered: 1 week ago