Apps     Components     Interfaces     All Files     Source Tree     source: tos.lib.VM.interfaces.BombillaInstruction.nc

Interface: BombillaInstruction

Interface for determining Bombilla instruction class.

Components providing this interface:
tos.lib.VM.components.BInstruction

Components requiring this interface:
tos.lib.VM.components.BContextSynch

Commands

Commands - Details

isMClass

bool isMClass(uint8_t instr)

Whether this instruction is M-Class (message header accessor/mutators).

Parameters:

instr - The instruction.

Returns: TRUE if it is M-Class, FALSE otherwise.

isJClass

bool isJClass(uint8_t instr)

Whether this instruction is J-Class (jump instruction).

Parameters:

instr - The instruction.

Returns: TRUE if it is J-Class, FALSE otherwise.

isVClass

bool isVClass(uint8_t instr)

Whether this instruction is V-Class (heap variable accessor/mutators).

Parameters:

instr - The instruction.

Returns: TRUE if it is V-Class, FALSE otherwise.

isXClass

bool isXClass(uint8_t instr)

Whether this instruction is X-Class (pushc).

Parameters:

instr - The instruction.

Returns: TRUE if it is X-Class, FALSE otherwise.