hades.models.mcs4
Class i4001Decoder

java.lang.Object
  extended byhades.models.mcore.DcoreDecoder
      extended byhades.models.mcs4.i4001Decoder
All Implemented Interfaces:
InstructionDecoder

class i4001Decoder
extends DcoreDecoder

Der Decoder, der die Hex-Codes wieder in Mnemonics umwandelt.


Field Summary
 
Fields inherited from class hades.models.mcore.DcoreDecoder
 
Constructor Summary
(package private) i4001Decoder()
           
 
Method Summary
 void decode(int instruction)
          decode the D*CORE _instruction word into the opcode, aluopc, register X/Y adress, and immediate fields.
 void decode(int instruction, int address)
          decode the D*CORE _instruction word into the opcode, aluopc, register X/Y adress, and immediate fields.
 java.lang.String disassemble()
           
(package private)  void setMemory(GenericMemory memory)
          Setzt den zugeh?rigen Speicher-Chip.
 
Methods inherited from class hades.models.mcore.DcoreDecoder
addLabel, clearAllLabels, getAddress, getAluOpc, getCCCC, getIMM12, getInstruction, getLabel, getOpcode, getX, getY, main, msg, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

i4001Decoder

i4001Decoder()
Method Detail

setMemory

void setMemory(GenericMemory memory)
Setzt den zugeh?rigen Speicher-Chip.

Parameters:
memory - Der Speicher

decode

public void decode(int instruction,
                   int address)
Description copied from class: DcoreDecoder
decode the D*CORE _instruction word into the opcode, aluopc, register X/Y adress, and immediate fields. This method also sets the address field to _address, useful in combination with a cross-reference file to resolve label adresses in jump instructions.

Specified by:
decode in interface InstructionDecoder
Overrides:
decode in class DcoreDecoder

decode

public void decode(int instruction)
Description copied from class: DcoreDecoder
decode the D*CORE _instruction word into the opcode, aluopc, register X/Y adress, and immediate fields.

Overrides:
decode in class DcoreDecoder

disassemble

public java.lang.String disassemble()
Specified by:
disassemble in interface InstructionDecoder
Overrides:
disassemble in class DcoreDecoder