Beruflich Dokumente
Kultur Dokumente
1) Write a Program in assembly language to transfer a block of data from 1050 to 1059 to memory
location whose starting addresses 1070 H .
2. Write an assembly language program to count number of even data bits occurring in a block starting
from memory location C030H to C039H
3. Write an assembly language program to add all odd numbers stored in a memory block of 10 locations
starting from 2000H. Store two bytes sum of memory location starting from 3000H.
4. Write a program in assembly language to find the position of data 05H in a block of memory D005H. If
data is found then store the position of a data at memory location D100H else store 00H at the same
memory location.
5. Write a program is assembly language to double the contents of block memory from Doo1H and Store
the doubled contents at same memory locations.
7. A block of data is stored in memory locations from 8101 H to 81FF H. Write an assembly language
program to transfer the block in reverse order to Memory Locations 8200 H and onwards.
8. Write an assembly language program to exchange 8 bit number stored in memory location 4000 H.
Store new number at memory locations 4001 H.
10. Write an assembly language program to copy the contents of a block of memory which is from
2501H to 2505H, to another block begins from 3501H.
11)Write an ALP to rotate the contents of memory which is starting from D000H towards left by one bit
position and add the original contents with the rotated number and store the result from D0001H.
13)Write an ALP to divide the number stored in memory location 2050H by the non-zero byte stored in
memory location 2501H.Place the result at memory location 2052H and store the remainder at 2053H.
14)Write an ALP to transfer of block of data which is starting from D100H to D1FFH, in reverse order in
new memory location at D200H.
16) A series of number are stored in the memory location from C000H to C008H. Write an ALP to find
smallest number among these numbers. Store the smallest number in memory location C009H.
17) Write an ALP to count the number of odd data bytes occurring in a block starting from memory location
A001H to A0FFH. Place the result at memory location B000H.
18) Write an ALP to copy the contents of block of data having starting address from 2000H to new destination
3000H. Length of the block is stored at 1FFFH.
19) A block of data is stored in memory starting from memory location D001H. Length of the block is stored in
memory location D000H. Write an ALP to sort the contents of the block in ascending order.
21. A hex number is stored at location AB00 H. Write an ALP to interchange its digit .The new no is to be stored At
AB01 H. Add the original number with new number and store result at location ABCD H.
22. Write an ALP to add two BCD numbers stored at locations AB00H and AB01 H. Store BCD result in location AB02 H
and onwards starting with LSB.
24. Write an ALP to copy the contents of a block of memory which is from 2501H to 2505 H, to another
Block begins from 3501 H.
25. Write an ALP to rotate the content of memory location 0000 H towards left by one bit position and add original
contents with the rotated number and store the result from 00001 H.
27. Write an ALP to count occurrence of the data ABH in a memory block .store count in memory location 4500 H.
28. Write an ALP to find largest element in block of data. The length is in memory location D000 H.
Assume that all numbers are 8 bit unsigned binary numbers.
29. Write an assembly language program to fill the memory block of 20 memory locations starting from
2000 H with data bytes 00 H to FF H at every alternate memory location.
30. A block of data is stored in memory location starting from memory location C040 . Another block of
data is stored in memory location starting from memory location C050. Length of the blocks is stored in
register D. Write a program to exchange / swap the data contents of both these blocks.
31. Two numbers are stored in consecutive memory location starting from C040. Write a program to
multiply the numbers and store the result in the next memory location.
32. Write a program to add all the even numbers stored in a memory Write a program to add all the
even numbers stored in a memory memory location starting from 3000 H.
33. A 4-byte number is stored in memory location starting from C040 beginning with lower order byte
byte. Another 4- byte number is stored in memory location starting from C050 beginning with lower
order byte. Write a program to add these two 4- byte numbers and store the result in memory location
starting from C040 beginning with lower order byte.
34. A block of data is stored in memory location starting from C041 . Length of the block is stored in
memory location C040. Write a program to add the data content of the memory location and store the
result at the end of the block.
35. An one byte data is stored in memory location starting from C040. Write a program to separate the
two nibbles of the one byte number and store it in the next memory location. Also write a program to
multiply the separated nibbles and store it at the end of the same block
36. Write a program to add twenty numbers store in memory location starting from C030 H. The length
of the block is stored at reg C. Store the two byte result at the end of the block beginning with lower
order byte.
37. A block of data is stored in memory location starting from C040 to C049. The length of block is stored
in reg.C. Write a program to find the smallest number from the given block of data and store it and the
end of the block.
38. A block of data is stored in memory location starting from D040 to D04A.Length of the block is
stored in register B Write a program to find the the first occurrence of the number 2A H. If the number
is not found store FFFF H in register pair HL.
39. Write an assembly language program to divide two numbers stored in consecutive memory location
starting from F030. Store the quotient and remainder at the end of the block.
40. A block of data is stored in memory location starting from C041. Length of the block is stored in
memory location C040. Write a program to add the data content of the memory location and store the
two byte result at the end of the block beginning with lower order byte.
41. Write a program to divide number at D068 H by a non zero number at D067H.Store the quotient at
D069 and remainder at D06AH.
42. A 4-byte number is stored in memory location starting from F050 beginning with lower order byte
byte. Another 4- byte number is stored in memory location starting from F060 beginning with lower
order byte. Write a program to add these two 4- byte numbers and store the result in memory location
starting from F050 beginning with lower order byte.
43. Write a program to find 2’s complement of a number stored in memory location E090 Store the
result to memory location C060.