Previous - Up - Next

SIM_instruction_opcode()

NAME
SIM_instruction_opcode — get the opcode of the instruction

SYNOPSIS
attr_value_t 
SIM_instruction_opcode(instruction_id_t ii);

DESCRIPTION
Returns the opcode of an instruction as a attr_value_t. If the instruction fits in a 64 bits integer, it will be returned as a Sim_Val_Integer, otherwise as a Sim_Val_Data.

If the opcode is unknown, i.e. the instruction has not yet been fetched, Sim_Val_Nil is returned.

RETURN VALUE
The value of the opcode.

Previous - Up - Next