Program Name
Write a Assembly Language Program for Subtraction of two 8-bit Numbers. |
Theory
Instruction Mnemonic |
Operand |
Comments |
MVI |
A,05H |
Move immediately input 05H into accumulator |
MVI |
B,04H |
Move immediately 2nd input 04H of addition into register B |
SUB |
C |
Subtract the content of register C with accumulator
and store it in accumulator |
STA |
8200 |
Store result of addition at
8200 |
HLT |
|
STOP |
|
Program Code
|
Online compiler for 8085 Microprocess Compiler
|
|