CS Practical Questions
CS Practical Questions
CS 2:
10. Write ALP to fill memory locations from 2501 to 25ff with Hex numbers 01 to FF H.
11. A block of data is stored in memory location fom C101H to C10AH. Write ALP to transfer a
block of data in reverse order to memory location C200 H & onwards
12. Write ALP to add two BCD numbers stored at 2500H and 2501H. Place the BCD result in
location 2502H & onwards starting with LSB.
13. Write ALP to count the number of odd data byte occurring in a block starting from memory
location 2501H to 25FFH. Store the result at memory location 2600H.
14. Write ALP to find product of two numbers stored at location C005H and C006H. Store result
in C001H and C002H.
15. Write a program to count the number of zeros in a number stored at memory location
2600H. store the result at 2601H.
16. Write ALP to count number of times data D9H appears in memory block starting from
C400H. The length of block is stored at C3FFH. Store answer at the end of the block
17. Find absolute difference of two numbers stored at memory location C100H and D100H.
Store answer at C050H.
18. Reverse a number and also calculate sum of its digits.