1.
Find the precise offset location of each ASCII character or data in the following:
ORG 20H
DATA1 DB '1-800-555-1234'
ORG 40H
DATA2 DB 'Name: John Jones'
ORG 60H
DATA3 DB '5956342'
ORG 70H DATA4
DW 2560H, 1000000000110B
DATA5 DW 49
ORG 80H
DATA6 DD 25697F6EH
DATA? DQ 9E7BA21C99F2H
ORG 90H
DATA8 DT 439997924999828
DATA9 DB 6 DUP (OEEH)
15%
2.
10%
In simplified segment format Write and run a program that adds four words of data and saves the result. The
values will be 234DH, 1DE6H, 3BC7H, and 566AH.
3.
25%
In simplified segment format Assume that an array of decimal numbers is given in A. Write an assembly
language program that finds the minimum of the odd numbers and the maximum of the even numbers.
Save the minimum to ODDMIN and maximum to EVENMAX variables in the data segment.
5.
20%
What will be the values of the specified register(s) and flags after the execution of the following instructions?
A)
MOV AX, 389CH
MOV BX,F518H
ADC AH,BL
B)
SUB AX,AX;
SUB AX,1;
PUSH AX
POPF
6.
Assume that the following two arrays (A and B) are given.
A = 15, 24, 17, 12, 14, 23, 11, 22, 16, 12
B = 12, 23, 28, 19, 15, 19, 25, 18, 26, 21
30%
Write a program that compares each element of arrays A and B and save the smaller element in array С.