Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- int main()
- {
- WORD a, b;
- cout << "Type a" << endl;
- cin >> a;
- cout << "Type b" << endl;
- cin >> b;
- _asm{
- mov ax,a
- mov bx,b
- mov a,bx
- mov b,ax
- }
- cout << "a = " << a << endl;
- cout << "b = " << b << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement