/ Published in: C++

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <conio.h> #include <string.h> #include <iostream.h> #include <math.h> #include <ctype.h> void main() { int dato1, dato2, resultado; dato1=42; dato2=1; //Ricky Afeminado asm { push ax; push cx; mov cx,dato2 mov ax,dato1 add ax,cx mov resultado,ax; pop cx; pop ax; } printf("La suma de %d+%d es = a: %d",dato1,dato2,resultado); }
Comments
