Professional Documents
Culture Documents
PART – A
Sl. No. Name of Program Page No.
1. Write an ALP to do Exchange of two 16 bit numbers. 04
2. Write an ALP to do Addition of two-8bit Binary numbers. 05
3. Write an ALP to do Subtraction of two-16bit numbers. 06
4. Write an ALP to do Addition of ‘N’-1byte Binary numbers. 07
5. Write an ALP to do Block Transfer of data (Direct Order). 08
6. Write an ALP to find 1’s complement of a 16bit number. 09
7. Write an ALP to find smallest of ‘N’-1byte HEX numbers. 10
8. Write an ALP to Simulate Decimal Counter from 00 to 99. 11
9. Write an ALP to do Addition of all even no’s in a given series. 12
10. Write an ALP to do Multiplication of 2 digit BCD number. 13
PART – B
Sl. No. Name of the Program Page No.
11. Write an ALP to do Exchange of two 32 bit numbers. 14
12. Write an ALP to do Addition of two-2digit Decimal numbers. 15
13. Write an ALP to do Addition of two-16 bit numbers. 16
14. Write an ALP to do Subtraction of ‘N’-1byte Binary numbers. 17
15. Write an ALP to do Block Transfer of data (Reverse Order). 18
16. Write an ALP to find 2’s complement of a 16bit number. 19
17. Write an ALP to find largest of ‘N’-1byte HEX numbers. 20
18. Write an ALP to Simulate Binary Counter from 00 to FF. 21
19. Write an ALP to do Addition of all Odd no’s in a given series. 22
20. Write an ALP to do Multiplication of 2-1byte Binary numbers. 23
GLOBAL INSTITUTE OF MANAGEMENT SCIENCES
D7 D6 D5 D4 D3 D2 D1 D0
S Z -- AC -- P -- CY
Stack Pointer (SP): It is a 16bit register used to point to memory address where
stack area begins (top). It points to a memory location in R/W memory (STACK). The
Lower byte is SPL, Higher byte is SPH. It is used in PUSH & POP instruction.
Reset Exam Memory Start Address of Program Next Enter 1st Op-code
Next ……. Enter Last Op-code Next.
Reset Exam Memory Input Address Next Enter 1st value Next …….
Enter Last value Next.
Reset Exam Memory Output Address Next View 1st value Next …….
View Last value Next.
INPUT: OUTPUT:
INPUT: OUTPUT: 30
8500 => 30 8700 3F 22
8501 => 22 8701 01 10
8502 => 10 2A
8503 => 2A B3
8504 => B3 01 3F
PROGRAM: 5. WRITE AN ALP TO DO BLOCK TRANSFER OF ‘N’ BYTES OF DATA (DIRECT ORDER).
INPUT: OUTPUT:
8500 30 8600 30
8501 45 8601 45
8502 6E 8602 6E
8503 2B 8603 2B
8504 38 8604 38
INPUT: OUTPUT:
8700 3E 8800 C1
8701 52 8801 AD
INPUT: OUTPUT:
INPUT: OUTPUT:
INPUT: OUTPUT:
8301 03
8301 05
INPUT: OUTPUT:
INPUT: OUTPUT:
INPUT: OUTPUT:
INPUT: OUTPUT: AE
8500 => AE 8700 A6 22
8501 => 22 8701 FF 10
8502 => 10 23
8503 => 2A B3
8504 => B3 FF A6
PROGRAM: 15. WRITE AN ALP TO DO BLOCK TRANSFER OF N BYTES OF DATA (REVERSE ORDER)
INPUT: OUTPUT:
8500 30 8600 38
8501 45 8601 2B
8502 6E 8602 6E
8503 2B 8603 45
8504 38 8604 30
INPUT: OUTPUT:
8700 3E 8800 C2
8701 52 8801 AD
PROGRAM: 17. WRITE AN ALP TO FIND THE LARGEST OF ‘N’-1BYTE OF BINARY NUMBERS.
INPUT: OUTPUT:
PROGRAM: 18. WRITE AN ALP TO SIMULATE THE BINARY COUNTER (DISPLAY FROM 00 TO FF)
INPUT: OUTPUT:
PROGRAM: 19. WRITE AN ALP TO DO ADDITION OF ALL ODD NO’S IN A GIVEN SERIES.
INPUT: OUTPUT:
8301 03
8301 05