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
- fstcw x
- not x
- or x, 1
- not x
- fldcw x
- fldz
- fldz
- fdiv
- fstp floatNumber
- }
- }
- 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