Professional Documents
Culture Documents
Experiment - 2: Memory Location Machine Code Mnemonics Operands Comments
Experiment - 2: Memory Location Machine Code Mnemonics Operands Comments
Experiment - 2: Memory Location Machine Code Mnemonics Operands Comments
06496502714
EXPERIMENT 2
AIM
Write a program to add two 8-bit numbers, the first number 06 is in memory location 5800, the second number 04 is in
memory location 5801, and the result is to be stored in memory location 5802.
PROGRAM
STEPS
1. RESET
2. DELGO
3. REL EXMEM (2 times)
4. 5800 MEMC NEXT 06
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 06
11. 2002 MEMC NEXT 06
12. 2003 MEMC NEXT 04
13. 2004 MEMC NEXT 80
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 0A (Result displayed)
RESULT
5802H 0A
START
STOP