You feel excited to learn computer languages

Then you are at the right place. Computer languages are most fun thing you have ever seen. Use this excellent languages and have a nice future...

How computer can help you?

I will ask how it can not? From the latest trend of social networking sites like Facebook, Twitter to the extended use of computer in our house hold devices. You can be benefited from computer in the every aspect of life.

What web technology?

It is the blessings of web technology, that brings you here and you are reading my post now. Strange huh!! Not at all. Use my web technology tutorials and understand, how they can help you for better marketing and advertising systems.

How Mobile technology can help us?

You have answer right? I know. But in my tutorials I will cover some unique features that may add some information in your hard disk too. Sounds good? Check them...

Computer and future

Yes that is the most important question to me. What is next? What is going to be the next big thing for us? Well I will answer them in my blog. Check the corresponding section..

Showing posts with label assembly in c. Show all posts
Showing posts with label assembly in c. Show all posts

Saturday, November 5, 2011

Assembly language coding using C


This is a very simple code written in C language. You can read this program and can get help of, how to execute assembly codes in C compiler. This simple code will compare whether you have entered 1 or 2 or 3
#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2;
clrscr();
printf("Enter a number:");
scanf("%d %d",&n1);
asm mov ax,n1;

asm cmp ax,1;
asm jnz l1;
printf("1");
l1:
asm cmp ax,2;
asm jnz l2;
printf("2");
l2:
asm cmp ax,3;
asm jnz l3;
printf("3");
l3:
getch();
}