Results 1 to 2 of 2

Thread: inline asm, jmp to offset?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    inline asm, jmp to offset?

    Well in inline asm I have done this to do jumps to addresses.

    Code:
    int addr = 0x00400324
    __asm{
    jmp addr
    }
    But I was wondering how you would do just "jmp 0x00400324" because of how the program works i cant store the value it has to be completely static like "jmp 0x00400324" but that doesnt work.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: inline asm, jmp to offset?

    Why not just declare it const.. isn't that what you want anyway? If it won't allow you to type the address straight into the jmp directive, then just declare the address as const and use it like you just have..

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width