hades.models.mcs4
Class Instruction

java.lang.Object
  extended byhades.models.mcs4.Instruction

final class Instruction
extends java.lang.Object

Stellt einen Befehl des 4004 dar.


Field Summary
static int CONDITIONAL
          Befehl hat eine Bedingungs-Maske als Argument.
static int DATA
          Befehl hat einen Wert aus 4 Bits als Argument.
static int FULL_ADDRESS
          Befehl hat eine 12-bittige Adresse als Argument.
static int NO_ARGS
          Befehl hat keine Argumente.
static int ONE_REG
          Befehl hat ein Register als Argument.
static int REG_ADDRESS
          Befehl hat ein Register und eine 8-bittige Adresse als Argument.
static int REG_DATA
          Befehl hat ein Register als Argument und einen Wert aus 8 Bits.
static int REG_PAIR
          Befehl hat ein Registerpaar als Argument.
 
Constructor Summary
(package private) Instruction(java.lang.Integer oprCode, java.lang.Integer opaCode, java.lang.String name)
          Konstruktor.
(package private) Instruction(java.lang.Integer oprCode, java.lang.String name, boolean is2word, int argType)
          Konstruktor.
(package private) Instruction(java.lang.Integer oprCode, java.lang.String name, int argType)
          Konstruktor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getArgType()
          Gibt den Argumenttyp zur?ck.
 java.lang.String getName()
          Gibt den Namen zur?ck.
 java.lang.Integer getOPA()
          Gibt den OPA-Code zur?ck
 java.lang.Integer getOPR()
          Gibt den OPR-Code zur?ck
 boolean is2word()
          Gibt an, ob der Befehl aus zwei Worten besteht.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ARGS

public static final int NO_ARGS
Befehl hat keine Argumente.

See Also:
Constant Field Values

ONE_REG

public static final int ONE_REG
Befehl hat ein Register als Argument.

See Also:
Constant Field Values

REG_PAIR

public static final int REG_PAIR
Befehl hat ein Registerpaar als Argument.

See Also:
Constant Field Values

DATA

public static final int DATA
Befehl hat einen Wert aus 4 Bits als Argument.

See Also:
Constant Field Values

FULL_ADDRESS

public static final int FULL_ADDRESS
Befehl hat eine 12-bittige Adresse als Argument.

See Also:
Constant Field Values

CONDITIONAL

public static final int CONDITIONAL
Befehl hat eine Bedingungs-Maske als Argument.

See Also:
Constant Field Values

REG_ADDRESS

public static final int REG_ADDRESS
Befehl hat ein Register und eine 8-bittige Adresse als Argument.

See Also:
Constant Field Values

REG_DATA

public static final int REG_DATA
Befehl hat ein Register als Argument und einen Wert aus 8 Bits.

See Also:
Constant Field Values
Constructor Detail

Instruction

Instruction(java.lang.Integer oprCode,
            java.lang.String name,
            int argType)
Konstruktor.

Parameters:
oprCode - Hex-Zahl
name - Mnemonic
argType - Argumententyp

Instruction

Instruction(java.lang.Integer oprCode,
            java.lang.String name,
            boolean is2word,
            int argType)
Konstruktor.

Parameters:
oprCode - Hex-Zahl
name - Mnemonic
is2word - ja, wenn 2-Wort-Befehl
argType - Argumententyp

Instruction

Instruction(java.lang.Integer oprCode,
            java.lang.Integer opaCode,
            java.lang.String name)
Konstruktor.

Parameters:
oprCode - Hex-Zahl
opaCode - Hex-Zahl
name - Mnemonic
Method Detail

getName

public java.lang.String getName()
Gibt den Namen zur?ck.

Returns:
Name

getOPR

public java.lang.Integer getOPR()
Gibt den OPR-Code zur?ck

Returns:
OPR

getOPA

public java.lang.Integer getOPA()
Gibt den OPA-Code zur?ck

Returns:
OPA

is2word

public boolean is2word()
Gibt an, ob der Befehl aus zwei Worten besteht.

Returns:
true, wenn ja

getArgType

public int getArgType()
Gibt den Argumenttyp zur?ck.

Returns:
Argumenttyp

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()