Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float floatNumber;
- void foo(int& num)
- {
- int x;
- _asm
- {
- finit fld a
- fld b
- fstcw dd
- fldcw dd
- sub dd, 32
- fdiv
- fstp dd
- }
- }
- int main()
- {
- float x, y, z;
- cin >> x >> y >> z;
- _asm
- {
- finit
- fld x
- fld y
- fadd
- fld z
- fadd
- fstp z
- }
- cout << "Summ: " << z << endl;
- int divider = 0;
- foo(divider);
- cout << floatNumber;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement