1. Write a program using 8085 Microprocessor for Decimal, Hexadecimal addition and subtraction of two Numbers.
ORG 0000h ; Starting address of the program
; Decimal addition
MVI A, 05h ; Load first decimal number in register A
MVI B, 07h ; Load second decimal number in register B
ADD B ; Add B to A
HLT ; End of program
; Hexadecimal addition
MVI A, 0Ah ; Load first hexadecimal number in register A
MVI B, 0Fh ; Load second hexadecimal number in register B
ADD B ; Add B to A
HLT ; End of program
; Decimal subtraction
MVI A, 0Ah ; Load first decimal number in register A
MVI B, 05h ; Load second decimal number in register B
SUB B ; Subtract B from A
HLT ; End of program
; Hexadecimal subtraction
MVI A, 0Fh ; Load first hexadecimal number in register A
MVI B, 05h ; Load second hexadecimal number in register B
SUB B ; Subtract B from A
HLT ; End of program
END ; End of program