12th Computer Sci Practical Paper-2
12th Computer Sci Practical Paper-2
1
Aim :- Write assembly language program to add two 8-bit (hexadecimal) Numbers. The
numbers are storage at memory location 1000H and 1001H. Store the result at memory
location 1002H.
- E N D-
Experiment No.2
Aim :- Write assembly language program to Subtract two 8-bit (hexadecimal) Numbers.
The numbers are Store atmemory location 1000H and 1001H. Store the result at
memory location 1002H.
Result :- After execution of program, greatest number 84H was found at memory location
1002 H
- E N D-
Experiment No.4
Aim :- Write an assembly language program to convert of memory location C000 H to
an ASCII character memory location C000 contains a single hexadecimal digit. Store
result at location C001 H.
Input :- (C000) = 0C
-E N D-
Experiment No.5
Aim :- Write ALP to add all the BCD numbers in a block from 1000 H to 8008 H . Store
Sum at memory location 100A H. [Assume sum is 8 bit]
Input : -
100A H= RESULT
-E N D -
Experiment No.7
Aim :- A block of data is stored in memory location from 1000H to 1004H. Write an
assembly language Program to shift the data contain of block in reverse order storing
from memory location C005H.
Input :-
1000H = 01H 1003H = 04H C005 = 05 C008= 02
1001H = 02H 1004H = 05H C006 = 04 C009= 01
1002H = 03H C007 = 03
Result :- After execution of program number are found 05, 04,03,02,01 in successive
memory location C005H
- E N D -
Experiment No. 8
Aim :-Write an ALP to count total number occurrences of data bytes 9CH in a memory
block of length 10 bytes starting from 1000H. Store the count in register E.
Input :-
1000H = 11H 1003H = 44H 1006H = 9CH 1009H = 77H
1001H = 9CH 1004H = 9CH1007H = 66H
1002H = 33H 1005H = 55H 1008H = 9CH
- E N D -
Experiment No. 9
Aim :-A block of data is stored in memory location from 1000H to 1002H. Another
block is stored from 1003H to 1005H. Write an ALP to exchange these two block of
data with each other.
Input :-
1000H = 11H 1003H = 44H
1001H = 9CH 1004H = 9CH
1002H = 33H 1005H = 55H