Let Us See C language
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
‹
›
Home
View web version
No comments:
Post a Comment