Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- std::cout << "Hello, world!\n";
- char answer = 0;
- // cin >> answer;
- int x = 4;
- int y = 3;
- __asm {
- mov EAX, x
- add eax, y
- mov y, eax
- }
- std::cout << "x + y = " << y << "\n";
- cin.get();
- }
- /*
- #include<iostream>
- using namespace std;
- int main()
- {
- std::cout << "Hello, world!\n";
- char answer = 0;
- cin >> answer;
- }
- 4
- obraten (10^1 -1 ) - 4 = 9 - 4 = 5
- dopxlnitelen = obraten + 1
- 3456
- (10^4 -1 ) - 3456 = (10000 - 1) - 3456 = 9999 - 3456 = 6543
- 111111
- 101100
- 7 - 4 = 3
- 7 - 4 => 7 + 6 = 1| 3
- 7 - 8 = -1
- 7 - 8 => 7 + 2 = 9 => -1
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement