hicosim.components.backend.processor
Class Disassembler

java.lang.Object
  extended by hicosim.components.backend.processor.Disassembler

public class Disassembler
extends java.lang.Object

Class to disassemble hicovec instructions.

Author:
Michael Wager, Luca Calchera, 16th May 2009

Constructor Summary
Disassembler(IMemory mem, Engine ei)
           
 
Method Summary
 java.lang.String disas()
          This method disassembles all read in hicovec instructions using the method "decodeInstruction()" from class processor stores them in a vector and returns them as string.
static java.lang.String disasOneSingleInstruction(int add, int instr)
          This method disassembles one single Instruction at the given address.
 java.lang.String getDisassembledInstructionAt(int address)
          This method returns the disassembled Instruction at the given address.
 int getLineOfAddress(int address)
          This method returns the linenumberindex at an address.
 void putInstr(int add, java.lang.String disasInstr)
          This method stores the disassembled Instruction at the given address.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Disassembler

public Disassembler(IMemory mem,
                    Engine ei)
Method Detail

disas

public java.lang.String disas()
This method disassembles all read in hicovec instructions using the method "decodeInstruction()" from class processor stores them in a vector and returns them as string.


putInstr

public void putInstr(int add,
                     java.lang.String disasInstr)
This method stores the disassembled Instruction at the given address.


getDisassembledInstructionAt

public java.lang.String getDisassembledInstructionAt(int address)
                                              throws java.lang.Exception
This method returns the disassembled Instruction at the given address.

Throws:
java.lang.Exception

disasOneSingleInstruction

public static java.lang.String disasOneSingleInstruction(int add,
                                                         int instr)
                                                  throws java.lang.Exception
This method disassembles one single Instruction at the given address.

Throws:
java.lang.Exception

getLineOfAddress

public int getLineOfAddress(int address)
This method returns the linenumberindex at an address.

Parameters:
- - int address
Returns:
- int linenumberindex