News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

computed jmp or conditional call ?

Started by dsouza123, March 06, 2007, 12:03:03 AM

Previous topic - Next topic

dsouza123

The x86 instruction set has conditional jumps; jne, je, jnc, jc etc
and conditional moves; cmovnz, cmovz, cmovnc, cmovc etc.

The close by jumps produced are relative, from what I have seen,
using an offset from the end of the instruction,
is there a way of having computed relative jumps ?

  jmp address+reg

There doesn't appear to be a conditional call instruction
like the conditional jumps and moves, what is the best way to simulate it ?

hutch--

I think you are stuck with having to code the conditional branch yourself and while you probably could push the return address and jump to the location, the CALL /RET(N) mnemonics are probably better optimised in hardware so I doubt you would gain anything from bothering.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php