question about wrapping asm instructions in classes menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    boredevil's Avatar Active Member
    Reputation
    46
    Join Date
    Feb 2008
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    question about wrapping asm instructions in classes

    I am rewriting my detour class atm, and was looking for a nice way to write instructions to the target functions ending up with the following:

    pseudocode:
    Code:
    #pragma push(1)
    class Asm_Jmp
    {
    char opcode;
    DWORD address;
    
    void apply(DWORD jmpAddr)
    {
         opcode = 0xE9;
       // calculate realtive addr
       address = jmpAddr;
    }
    
    
    }
    #pragma push()
    
    //using it like that
    reinterpret_cast<Asm_Jmp*>(addrInstruction)->apply(jmpTarget);


    I works nice in my test Application, but i can“t test it in wow atm. so i would like to know if it can work in any target, or may the memory layout different for other targets.
    Suggestions about up/downsides of this are welcome.

    Thanks in advance

    question about wrapping asm instructions in classes

Similar Threads

  1. hey just starting, got a question about class and farming
    By imunderyourbed in forum Star Wars: The Old Republic
    Replies: 2
    Last Post: 08-08-2012, 11:53 PM
  2. Question about weird Instruction?
    By Flushie in forum WoW Memory Editing
    Replies: 19
    Last Post: 12-25-2010, 03:30 AM
  3. [Question] Question about glider custom class
    By phorentez in forum World of Warcraft General
    Replies: 4
    Last Post: 02-09-2009, 04:11 PM
  4. noob question about custom classes and mpq
    By Shogun7 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-24-2008, 06:33 AM
  5. questions about model editing
    By Avianar47 in forum World of Warcraft General
    Replies: 2
    Last Post: 07-08-2006, 09:41 PM
All times are GMT -5. The time now is 10:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search