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

One thought on “Program to add 2 8-bit data in assembly

  1. I was wondering if you ever considered changing the layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better? 163240

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s