Search This Blog

Tuesday, March 8, 2011

Program to add 2 8-bit data in assembly

Here is a program to add to immediate 8-bit data and store in a particular memory address.
----------
MVI A, 45H;
MVI B, 46H;
ADD B;
STA 2000H;
HLT;
----------

Simirarly subtracting two immediate 8 bit data and store in a memory location.
-----------
MVI A, 45H;
MVI B, 46H;
ADD B;
STA 2000H;
HLT;
-------------



by k10blogger

No comments:

Post a Comment