Logo 
Search:

C Programming Forum

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds

assignment

  Asked By: JISSO    Date: Sep 24    Category: C Programming    Views: 1612
  

Write an ALP to find the maximum positive number from a given array of signed 8-bit numbers stored at location ARRAY1. The result must be stored at location MAX_P. Use the small memory model for this program.
Q2. Write an ALP to add two 32-bit numbers. The first 32-bit number is stored in location DAT1 and the second 32-bit number is stored in location DAT2. The result of the operation must be stored back at memory location DAT2. If there is carry it must be stored in the next consecutive location after result. Use the small memory model for this program.
Q3. Write an ALP to find out the number of even and odd numbers from a given array of 16-bit numbers. The array starts at memory location NUM1. Store the count of even numbers and odd numbers in memory locations EVENC and ODDC respectively. Use model tiny for this program.
Q4. Write an ALP to arrange a set of signed numbers at location NUM2 in ascending order. Use model tiny for this program.
Q5. Using the appropriate memory model write an ALP to find the factorial of an 8-bit unsigned number with value between 0-8d stored at location DAT and store the result at location RES.

Share: 



Tagged: