Q1)Write complete assembly language programs of the following tasks. Your programs should be complete with headers, declarations, and proper ending of the program.
1) Write a program to compute sum of odd integers: 1+3+….+N The final sum should be stored in memory.
2) Write a program to count the number of bits in a 16 bit register that are 1s. The result should be stored in memory.
3) Write a program to calculate and list the first 20 values of Fibonacci series: (1,1,2,3,5,8,13,…) Except for the first two numbers in the sequence, each number is the sum of the previous two numbers.
4) Write a program to add two 3-byte ASCII numbers, ASCVALUE1 and ASCVALUE2,And produce a 4-byte sum, ASCTOTAL.
Q2)Write sequence of assembly instruction to do each of the following tasks:-
1) Multiply the contents of AX by 10 without using MUL or IMUL.
2) Divide the contents of AH by 4 without using DIV or IDIV.
3) Exchange the contents of AH and AL without using XCHG.
الرجاء حل هذه الاسئله
في اقرب وقت ممكن
وشكرا