Let Us See C language
Python
Home
Training Classes
Data Structures in C
C Interview Questions
Advance Data Structures
Projects in CPP
CPP Programs
Java Programs
JDBC
Projects
Algorithms and Flow Charts
C Programs
CORE JAVA
SAP(ABAP)
Software Engineering
Data Structures
CPP
RDBMS
DCCN
Operating System
print
Print this post
Sunday, 11 July 2010
Write a c program to add two numbers using assembly code
#include<stdio.h>
void main() {
int a = 10, b = 20, c;
asm
{
mov ax,a
mov bx,b
add ax,bx
mov c,ax
}
printf("c= %d",c);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment