Professional Documents
Culture Documents
00996502714
EXPERIMENT 3
AIM
Write a program to subtract two 8-bit numbers, the first number is in memory location 5800H, the second number is in
memory location 5801H and the result is to be stored in memory location 5802H.
PROGRAM
STEPS
1. RESET
2. DELGO
3. REL EXMEM (2 times)
4. 5800 MEMC NEXT 08
5. 5801 MEMC NEXT 04
6. 5802 MEMC NEXT 00
7. FILL
8. REPEAT Steps 1-3
9. 2000 MEMC NEXT 3E
10. 2001 MEMC NEXT 08
11. 2002 MEMC NEXT 06
12. 2003 MEMC NEXT 04
13. 2004 MEMC NEXT 90
14. 2005 MEMC NEXT 32
15. 2006 MEMC NEXT 02
16. 2007 MEMC NEXT 58
17. 2008 MEMC NEXT 76
18. FILL
19. DELGO 2000 FILL E (will be displayed)
20. REPEAT Steps 1-3
21. 5802 MEMC NEXT 04 (Result displayed)
RESULT
5802H 04
START
STOP