Question
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...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