Tuesday 1 January 2008

Assembly language program in c programming language

Assembly language program in c programming language. (1) What will be output of following c program? void main() { clrscr(); asm{       mov ax,61;       mov bx,10;       add bx,ax;     }   printf("\n%d",_BX); getch(); } Output: 71 Explanation: ax and bx is general purpose register. Statement  mov ax,61 means value 61 is storing at register ax. Statement add bx,ax meand addition

No comments:

Post a Comment