ALTE DOCUMENTE
|
|||||||||
// ** ** ** ** **********
//
// Name: Code Example - using inline ass
// embly and the stack
// Description:Simple example, meant to
// express a simple concept.
// By: Jared Bruni
//
//This code is copyrighted and has// limited warranties.Please see https://
// www.Planet-Source-Code.com/xq/ASP/txtCod
// eId.2403/lngWId.3/qx/vb/scripts/ShowCode
// .htm//for details.// ** ** ** ** **********
//
/* example of using inline assembly
and the stack
written by Jared Bruni
www.LostSideDead.com
*/
#include <iostream>
using namespace std;
int main()
x = 2;
cout << " the value of x := " << x << endl;
_asm
cout << " the value of x := " << x << endl;
return (system("pause"));
}
// ** ** ** ** **********
//
// Name: Code Example - using inline ass
// embly and the stack ..
// Description:this goes with the stack
// explain tutorial, except uses actual C++
// syntax...
// By: Jared Bruni
//
//This code is copyrighted and has
// limited warranties.Please see https://
// www.Planet-Source-Code.com/xq/ASP/txtCod
// eId.2434/lngWId.3/qx/vb/scripts/ShowCode
// .htm
//for details.
// ** ** ** ** **********
//
/* stack example
written by Jared Bruni
www.LostSideDead.com
*/
#include <iostream>
using namespace std;
int main()
int d = 3;
_asm
d = 4;
i = 3;
cout << "value of d := " << d << endl;
cout << "value of i := " << i << endl;
_asm
cout << "value of d := " << d << endl;
cout << "value of i := " << i << endl;
return (system("pause"));
}
|