Documente online.
Zona de administrare documente. Fisierele tale
Am uitat parola x Creaza cont nou
 HomeExploreaza
upload
Upload




Description:simple example of calling a function using inline assembly

windows en




// Name: Code Example - using inline ass
embly - calling a function
// Description:simple example of calling
a function using inline assembly.
// By: Jared Bruni

//This code is copyrighted and has
// limited warranties.Please see https://
www.Planet-Source-Code.com/xq/ASP/txtCod
eId.2437/lngWId.3/qx/vb/scripts/ShowCode
.htm
//for details.



/* function call example
written by Jared Bruni
www.LostSideDead.com

#include <iostream>
using namespace std;
void _stdcall println(char* str);
int main()



return (system("pause"));
}

void _stdcall println(char* str)





// ** ** ** ** **********

//

// 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"));

}


Document Info


Accesari: 920
Apreciat: hand-up

Comenteaza documentul:

Nu esti inregistrat
Trebuie sa fii utilizator inregistrat pentru a putea comenta


Creaza cont nou

A fost util?

Daca documentul a fost util si crezi ca merita
sa adaugi un link catre el la tine in site


in pagina web a site-ului tau.




eCoduri.com - coduri postale, contabile, CAEN sau bancare

Politica de confidentialitate | Termenii si conditii de utilizare




Copyright © Contact (SCRIGROUP Int. 2024 )