Monday, 29 October 2012

8086 basic Programming


  1. Write an ALP in 8086 to evaluate the following expression (A2-B2) / (A+B)       (Note: Assume A=FFh & B=AAh)
  2. Write an ALP in 8086 to evaluate the following expression (A2-B) / (A+ B2)       (Note: Assume  A=32h & B=21h)
  3. Write an ALP in 8086 to a generate Fibonacci series (n=10)?
  4. Write an ALP in 8086 to find a given number is Prime or not?
  5. Write an ALP in 8086 to separate the numbers divisible by 2 from a given set of numbers and also find the largest number from that set
  6. Write an ALP in 8086 to swap the nibbles in an 8 bit number.
  7. Write an ALP in 8086 to extract odd numbers from an Array.
  8. Write an ALP in 8086 to extract even numbers from an Array.
  9. Write an ALP in 8086 to sort only the odd numbers from an array.
  10. Write an ALP in 8086 to sort only the even numbers from an array.
  11. Write an ALP in 8086 to subtract two 16 bit numbers without using sub instruction
  12. Write an ALP in 8086 to find nPr (n!/(n-r)!) .
  13. Write an ALP in 8086 to find a given number is Prime or not?
  14. Write an ALP in 8086 to swap the contents of registers containing two 8 bit numbers.
  15. Write an ALP in 8086 to separate the numbers divisible by 2 from a given set of numbers and also find the largest number from that set.
  16. Write an ALP in 8086 to separate the numbers divisible by 3 from a given set of numbers and also find the smallest number from that set.
  17. Write an ALP in 8086 to divide two 16 bit numbers and store result in stack.
  18. Write an ALP in 8086  to find the numbers divisible by 4 from the set of numbers
  19. Write an ALP in 8086 to complement a 16 bit number and shift the bits 16 times and store in the register.
  20. Write an ALP in 8086 to complement a rotate a 16 bit number 16 times and store in result in stack and restore in register DX
  21. Write an ALP in 8086 to convert given ASCII to HEX number
  22. Write an ALP in 8086 to convert given HEX to ASCII number
  23. Write an ALP in 8086 to convert given HEX to OCTAL number
  24. Write an ALP in 8086 to convert given OCTAL to HEX number
  25. Write an ALP in 8086 to implement a basic calculator with addition, subtraction, division and multiplication operation for 16 bit numbers
  26. An 8 bit number is stored in the memory. Write an ALP in 8086 to change the bit pattern as follows: 7th bit comes to 1st bit, 6th bit comes to 2nd bit and 4th bit comes to 5th bit
  27. Write an ALP in 8086 to add two 2 x 2 matrices in the memory
  28. Write an ALP in 8086 to find the number of occurrences of a number in an array
  29. Write an ALP in 8086 to find the LCM of two numbers
  30. Write an ALP in 8086 to find the square root of a 8 bit number
  31. Write an ALP in 8086 to find the arithmetic mean of N numbers
  32. Write an ALP in 8086 to transfer a block of data from one location to another location

No comments:

Post a Comment