Write asc assembly language programs for the following


Question: Write ASC assembly language programs for the following. Start programs at locations #H0, using ORG 0 Statement.

a. Subtract an integer stored at memory location A from that at B and store the result at C.

b. Read several integers from the input device one at a time and store them in a memory location starting at Z. The input process should stop when the integer read has a value of 0.

c. Change the program in (b) to store only positive integers at a location starting at POS.

d. Modify the program in (b) to store the positive integers starting at POS and the negative integers starting at NEG.

e. Location #H50 contains an address pointing to the first entry in a table of integers. The table is also in the memory and the first entry is the number of entries in the table, excluding itself. Store the maximum and minimum valued integers at memory locations MAX and MIN, respectively.

f. SORT the entries in a table of n entries in increasing order of magnitude.

g. Multiply integers stored at memory locations A and B and store the result in C. Assume the product is small enough and can be represented in 16 bit. Note that multiplication is the repeated addition of multiplicand to itself multiplier times.

h. Compute the absolute value of each of the 50 integers located at the memory block starting at A and store them at the block starting at B.

i. Read a sequence of numbers and compute their minimum, maximum, and average values. Reading a value of 0 should terminate the reading process. What problems arise in computing the average?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write asc assembly language programs for the following
Reference No:- TGS02269960

Expected delivery within 24 Hours