Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. short a = 100;
  7. short b = 100;
  8. short c;
  9. _asm{
  10. mov ax,a
  11. mov bx,b
  12. add ax,bx
  13. mov c,ax
  14. }
  15. cout << c << endl;
  16. system("pause");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement