1. Write the following code in emu8086 editor: org 100H mov ax,2 mov bx,2 add ax,bx mov...
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, 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.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill