ASM Hooplah menu

Shout-Out

User Tag List

Thread: ASM Hooplah

Results 1 to 4 of 4
  1. #1
    FenixTX2's Avatar Active Member
    Reputation
    23
    Join Date
    Mar 2009
    Posts
    125
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASM Hooplah

    Hey, i'm currently buggering around with asm and registering lua functions but my asm is wrong. I could really do with a hand sorting it out.

    Basically I am trying to create a function inside wow which stores a value in a predetermined area of memory.

    e.g. something analogous to:
    Code:
    int MyVar; 
    void MyFunc(int i)
    {
            MyVar = i;
    }

    My current LUA function looks like this
    Code:
    
                    Asm.AddLine("push ebp");
                    Asm.AddLine("mov ebp, esp");
                    Asm.AddLine("sub esp, 0xC0");
                    Asm.AddLine("push ebx");
                    Asm.AddLine("push esi");
                    Asm.AddLine("push edi");
                    Asm.AddLine("lea edi, [ebp-0xC0]");
                    Asm.AddLine("mov ecx, 0x30");
                    Asm.AddLine("mov eax, 0x0CCCCCCCC");
                    Asm.AddLine("rep stosd");
                    Asm.AddLine("mov eax, [ebp+0x8]");
                    Asm.AddLine("mov [" + pMyVar + "], eax");
                    Asm.AddLine("pop edi");
                    Asm.AddLine("pop esi");
                    Asm.AddLine("pop ebx");
                    Asm.AddLine("mov esp, ebp");
                    Asm.AddLine("pop ebp");
                    Asm.AddLine("retn");
    Once regestered I can call the function fine.
    /console MyFunc 1 //set MyVar to 1

    But it's not actually storing the variable as I would like it to.
    Instead it seems to be storing a new location in MyVar:
    0x012A2168;

    This appears to store the last thing typed into the console i.e.
    "MyFunc"

    Can anyone spot the error in my asm?
    Thanks very much.
    Last edited by FenixTX2; 10-19-2009 at 06:09 PM.

    ASM Hooplah
  2. #2
    FenixTX2's Avatar Active Member
    Reputation
    23
    Join Date
    Mar 2009
    Posts
    125
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, i've sorted it now.

  3. #3
    Ellesar1's Avatar Member
    Reputation
    20
    Join Date
    Feb 2009
    Posts
    78
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you mind sharing the solution with us?

  4. #4
    FenixTX2's Avatar Active Member
    Reputation
    23
    Join Date
    Mar 2009
    Posts
    125
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically ebp was pointing to the name of the console command being run (or attempted).
    It was actually esi that was pointing to the input for the command.

Similar Threads

  1. ASM Question ($)
    By Smarter in forum WoW Memory Editing
    Replies: 20
    Last Post: 03-29-2009, 06:50 AM
  2. Injecting ASM problems
    By lanman92 in forum WoW Memory Editing
    Replies: 33
    Last Post: 03-16-2009, 06:46 AM
  3. [ASM]MMOPro ArcEmu Server Manager CMS
    By ghostay in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 09-05-2008, 09:27 AM
  4. ASM function call?
    By akh in forum WoW Memory Editing
    Replies: 15
    Last Post: 09-02-2008, 12:31 AM
  5. Some Useful ASM info
    By Hausmaster in forum WoW Memory Editing
    Replies: 1
    Last Post: 03-23-2008, 06:32 PM
All times are GMT -5. The time now is 12:06 AM. 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