Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Clean Code Sample - By Heero
- #include <iostream>
- using namespace std;
- //Our PROGRAM or DLLS main function, where all INSTRUCTIONS are carried out.
- int main(int argc[], char* argv)
- {
- //Variable Table * - * The double-slash identifier: "//" is a C++ COMMENT
- int AddressCall = 0;
- //Program Operation
- AddressCall = 0x00000000;
- typedef void *AddressCallPointer = &AddressCall;
- __asm{
- ;This is an example of how to use inline ASSEMBLY (Within C++)
- ;The ';' character is an ASSEMBLY COMMENT and will not be read
- ;by the ASSEMBLER, or COMPILER.
- ;
- push eax,0x00000000
- ;
- ;The above instruction 'push' takes the value of the ADDRESS
- ;0x00000000 and then applies it to the REGISTER 'eax' within
- ;your PROCESSOR.
- }
- //Loop
- while(true) //While the program is running, execute the contents within '{' '}' characters.
- {
- if(GetASyncKey("VK_MENU") && GetASyncKey("G")) //ALT + G = Our Godmode Key Combonation
- {
- CallAddress();
- //Call the function CallAddress();
- //The Contents of CallAddress() is the ASSEMBLY INSTRUCTION
- //that is within the INLINE ASSEMBLY I covered earlier.
- }
- }
- //Program Cleanup
- return 0;
- }
- //This function will only be used if it is CALLED
- void CallAddress()
- {
- AddressCall;
- //This Allows us to CALL (Use) the INLINE ASSEMBLY INSTRUCTIONS
- //without them being called in an expected way. (By Gunz.exe)
- //INLINE FUNCTIONS, cannot be called the same way.
- }
Add Comment
Please, Sign In to add comment