keso.core
Class MT_U8

java.lang.Object
  extended by keso.core.MT_U8

public final class MT_U8
extends Object

This memory type allows to an unsigned 8-bit value.


Method Summary
 void and(int i)
          Computes the bitwise AND of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.
 void clearBit(int i)
          Clears the given bit in the mapped value.
 boolean equals(Object o)
          Returns true if both mapped fields are mapped to the same address.
 int get()
          Reads the value from the target location of the mapping.
 int hashCode()
          
 boolean isBitClear(int i)
          Checks if a given bit of the mapped value is cleared
 boolean isBitSet(int i)
          Checks if a given bit of the mapped value is set
 void or(int i)
          Computes the bitwise OR of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.
 void set(int i)
          Stores a value to the target location of the mapping.
 void setBit(int i)
          Sets the given bit in the mapped value.
 String toString()
           
 void xor(int i)
          Computes the bitwise exclusive OR (XOR) of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait
 

Method Detail

get

public int get()
Reads the value from the target location of the mapping.

Returns:
the read value

set

public void set(int i)
Stores a value to the target location of the mapping.

Parameters:
i - the value to store.

and

public void and(int i)
Computes the bitwise AND of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.

Parameters:
i - the mask used in the operation

or

public void or(int i)
Computes the bitwise OR of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.

Parameters:
i - the mask used in the operation

xor

public void xor(int i)
Computes the bitwise exclusive OR (XOR) of the mapped value and the given mask, and overwrites the mapped value with the result of this computation.

Parameters:
i - the mask used in the operation

setBit

public void setBit(int i)
Sets the given bit in the mapped value.

Parameters:
i - position of the bit to be set (0-7)

clearBit

public void clearBit(int i)
Clears the given bit in the mapped value.

Parameters:
i - position of the bit to be cleared (0-7)

isBitSet

public boolean isBitSet(int i)
Checks if a given bit of the mapped value is set

Parameters:
i - position of the bit to be checked (0-7)
Returns:
true if the bit is set, false otherwise

isBitClear

public boolean isBitClear(int i)
Checks if a given bit of the mapped value is cleared

Parameters:
i - position of the bit to be checked (0-7)
Returns:
true if the bit is cleared, false otherwise

equals

public boolean equals(Object o)
Returns true if both mapped fields are mapped to the same address.

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()