hades.models.mcs4
Class InstructionSet

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

class InstructionSet
extends java.lang.Object

Fasst den kompletten Befehlssatz zusammen.


Field Summary
static Instruction ADD
          Add.
static Instruction ADM
          Add memory.
static Instruction BBL
          Branch back 1 level.
static Instruction CLB
          Clear both.
static Instruction CLC
          Clear carry.
static Instruction CMA
          Complement accumulator.
static Instruction CMC
          Complement carry.
static Instruction DAA
          Decimal adjust accumulator.
static Instruction DAC
          Decrement accumulator.
static Instruction DCL
          Designate command line.
static Instruction FIM
          Fetch immediate.
static Instruction FIN
          Fetch indirect.
static Instruction IAC
          Increment accumulator.
static Instruction INC
          Increment.
static Instruction ISZ
          Increment, skip jump if zero.
static Instruction JCN
          Jump conditional.
static Instruction JIN
          Jump indirect.
static Instruction JMS
          Jump to subroutine.
static Instruction JUN
          Jump unconditional.
static Instruction KBP
          Keyboard process.
static Instruction LD
          Load.
static Instruction LDM
          Load immediate.
static Instruction NOP
          No operation.
static Instruction RAL
          Rotate left.
static Instruction RAR
          Rotate right.
static Instruction RD0
          Read status character 0.
static Instruction RD1
          Read status character 1.
static Instruction RD2
          Read status character 2.
static Instruction RD3
          Read status character 3.
static Instruction RDM
          Read memory.
static Instruction RDR
          Read ROM port.
static Instruction SBM
          Subtract memory.
static Instruction SRC
          Send register control.
static Instruction STC
          Set carry.
static Instruction SUB
          Subtract.
static Instruction TCC
          Transmit and clear carry.
static Instruction TCS
          Transfer carry subtract, clear carry.
static Instruction WMP
          Write RAM port.
static Instruction WPM
          Write program memory.
static Instruction WR0
          Write status character 0.
static Instruction WR1
          Write status character 1.
static Instruction WR2
          Write status character 2.
static Instruction WR3
          Write status character 3.
static Instruction WRM
          Write memory.
static Instruction WRR
          Write ROM port.
static Instruction XCH
          Exchange.
 
Method Summary
(package private)  Instruction findInstruction(java.lang.Integer oprCode, java.lang.Integer opaCode)
          Ermittelt passenden Befehl.
(package private) static InstructionSet getInstance()
          Gibt den Befehlssatz zur?ck.
(package private)  Instruction getMemoryInstruction(java.lang.Integer opaCode)
          Ermittelt Speicherbefehl.
(package private)  boolean isMemoryInstruction(java.lang.Integer oprCode)
          Gibt an, ob mit dieser Zahl ein Speicherbefehl vorliegt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOP

public static final Instruction NOP
No operation.


JCN

public static final Instruction JCN
Jump conditional.


FIM

public static final Instruction FIM
Fetch immediate.


SRC

public static final Instruction SRC
Send register control.


FIN

public static final Instruction FIN
Fetch indirect.


JIN

public static final Instruction JIN
Jump indirect.


JUN

public static final Instruction JUN
Jump unconditional.


JMS

public static final Instruction JMS
Jump to subroutine.


INC

public static final Instruction INC
Increment.


ISZ

public static final Instruction ISZ
Increment, skip jump if zero.


ADD

public static final Instruction ADD
Add.


SUB

public static final Instruction SUB
Subtract.


LD

public static final Instruction LD
Load.


XCH

public static final Instruction XCH
Exchange.


BBL

public static final Instruction BBL
Branch back 1 level.


LDM

public static final Instruction LDM
Load immediate.


WRM

public static final Instruction WRM
Write memory.


WMP

public static final Instruction WMP
Write RAM port.


WRR

public static final Instruction WRR
Write ROM port.


WPM

public static final Instruction WPM
Write program memory.


WR0

public static final Instruction WR0
Write status character 0.


WR1

public static final Instruction WR1
Write status character 1.


WR2

public static final Instruction WR2
Write status character 2.


WR3

public static final Instruction WR3
Write status character 3.


SBM

public static final Instruction SBM
Subtract memory.


RDM

public static final Instruction RDM
Read memory.


RDR

public static final Instruction RDR
Read ROM port.


ADM

public static final Instruction ADM
Add memory.


RD0

public static final Instruction RD0
Read status character 0.


RD1

public static final Instruction RD1
Read status character 1.


RD2

public static final Instruction RD2
Read status character 2.


RD3

public static final Instruction RD3
Read status character 3.


CLB

public static final Instruction CLB
Clear both.


CLC

public static final Instruction CLC
Clear carry.


IAC

public static final Instruction IAC
Increment accumulator.


CMC

public static final Instruction CMC
Complement carry.


CMA

public static final Instruction CMA
Complement accumulator.


RAL

public static final Instruction RAL
Rotate left.


RAR

public static final Instruction RAR
Rotate right.


TCC

public static final Instruction TCC
Transmit and clear carry.


DAC

public static final Instruction DAC
Decrement accumulator.


TCS

public static final Instruction TCS
Transfer carry subtract, clear carry.


STC

public static final Instruction STC
Set carry.


DAA

public static final Instruction DAA
Decimal adjust accumulator.


KBP

public static final Instruction KBP
Keyboard process.


DCL

public static final Instruction DCL
Designate command line.

Method Detail

findInstruction

Instruction findInstruction(java.lang.Integer oprCode,
                            java.lang.Integer opaCode)
Ermittelt passenden Befehl.

Parameters:
oprCode - OPR-Zahl
opaCode - OPA-Zahl
Returns:
Befehl

getMemoryInstruction

Instruction getMemoryInstruction(java.lang.Integer opaCode)
Ermittelt Speicherbefehl.

Parameters:
opaCode - OPA-Zahl
Returns:
Befehl

isMemoryInstruction

boolean isMemoryInstruction(java.lang.Integer oprCode)
Gibt an, ob mit dieser Zahl ein Speicherbefehl vorliegt.

Parameters:
oprCode - OPR-Zahl
Returns:
true, wenn ja

getInstance

static InstructionSet getInstance()
Gibt den Befehlssatz zur?ck.

Returns:
Befehlssatz