Re: [ILUG] Conditional Call mnemonic in assembler

From: Paul Kelly (longword at domain esatclear.ie)
Date: Thu 04 Oct 2001 - 15:00:58 IST


cout at domain eircom.net wrote:

> Does such a mnemonic exist i.e. ce or cne,ccxz etc?

AFAIK in x86 assembly there is no conditional call opcode. You have to
use jumps instead to select which call you want to take, if any.

You might be tempted to use a conditional move (available only on i686
or later) to modify the address of a CALL before it happens, but that
would be a Very Bad Thing to do for a wide variety of reasons. Your code
segment might not be writeable, and even if it is the original address
will probably be in the pipeline/prefetch queue and that'll be used
unmodified.

A fairly complete list of Intel syntax can be found here:
http://linuxmedialabs.com/nasm/html/nasmdoca.html

Paul.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:31 GMT