Overview

Namespaces

  • Csim
    • Controller
    • Model
    • Util
  • PHP

Classes

  • Cache
  • CacheCell
  • CacheLayout
  • Execution
  • Instruction
  • InstructionType
  • Set
  • SimulationState

Exceptions

  • InvalidInstructionException
  • Overview
  • Namespace
  • Class
  • Tree

Class Instruction

Represents one instruction.

Namespace: Csim\Model
Located at classes/Csim/Model/Instruction.php
Methods summary
public
# __construct( mixed $type, mixed $address )

Constructs a new Instruction of the specified type that operates on the specified address.

Constructs a new Instruction of the specified type that operates on the specified address.

public boolean
# isLoad( )

Returns true is this is a load instruction, otherwise returns false.

Returns true is this is a load instruction, otherwise returns false.

Returns

boolean
public
# addressEquals( integer $address, integer $bit_mask )

Returns true if this instruction's address has the bits in the specified bit mask equal to those of the specified address. Otherwise returns false.

Returns true if this instruction's address has the bits in the specified bit mask equal to those of the specified address. Otherwise returns false.

Parameters

$address
integer
$address - The address to compare with this instruction's address.
$bit_mask
integer
$bitCount - The bit mask specifying which bits to compare to compare.
public integer
# getAddress( )

Returns

integer
The address this instruction operates on.
csim-jquery-nophpfw API documentation generated by ApiGen 2.8.0