JVM
opcodes.c File Reference
#include "opcodes.h"
#include <stdlib.h>
Include dependency graph for opcodes.c:

Functions

const char * decodeOpcodeNewarrayType (uint8_t type)
 Return the Opcode_newarray_type type as a String. More...
 
const char * getOpcodeMnemonic (uint8_t opcode)
 The instruction's mnemonic is its name. Its opcode is its numeric representation which specifies the operation to be performed. This functions gives the instruction's mnemonic by it's opcode. More...
 

Function Documentation

§ decodeOpcodeNewarrayType()

const char* decodeOpcodeNewarrayType ( uint8_t  type)

Return the Opcode_newarray_type type as a String.

Parameters
uint8_ttype - number of the type in the enum Opcode_newarray_type.
Returns
the type of the opcode as a String if not NULL, "unknown type" otherwise.
See also
instruction.c
Here is the caller graph for this function:

§ getOpcodeMnemonic()

const char* getOpcodeMnemonic ( uint8_t  opcode)

The instruction's mnemonic is its name. Its opcode is its numeric representation which specifies the operation to be performed. This functions gives the instruction's mnemonic by it's opcode.

Parameters
uint8_topcode - the opcode of the instruction.
Returns
the mnemonic of the opcode in case it exists, return "- unknown opcode -" otherwise.
See also
instruction.c
Here is the caller graph for this function: