Class Instruction
Represents one instruction.
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.
|