com.cmpware.tools
Class DasmTool

java.lang.Object
  extended by com.cmpware.tools.DasmTool

public class DasmTool
extends java.lang.Object

This class provides support for quickly and easily building a simple disassembler. This is done by taking an IInstructionSet instruction set description class and using it to drive the disassembly.

Copyright (c) 2006 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Constructor Summary
DasmTool()
           
 
Method Summary
static byte[] readFile(java.lang.String fileName)
          This method reads in a text file and returns the contents as an ArrayList with one line of text per entry.
static int run(AutoModel am, java.lang.String infile)
          To be run from the main() routine in the class that inherits AsmTool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values
Constructor Detail

DasmTool

public DasmTool()
Method Detail

run

public static int run(AutoModel am,
                      java.lang.String infile)
To be run from the main() routine in the class that inherits AsmTool. This is where everything happens.

Parameters:
am - The AutoModel model of the processor.
infile - the input filename.

readFile

public static byte[] readFile(java.lang.String fileName)
                       throws java.io.IOException
This method reads in a text file and returns the contents as an ArrayList with one line of text per entry.

Parameters:
fileName - The name of the input text file.
Returns:
This method reads in a text file and returns the contents as a String array.
Throws:
java.io.IOException - if an error is encountered opening, reading of closing the input file.