|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.fastmodel.DasmTool
public class DasmTool
This class provides support for quickly and easily building a simple stand-alone disassembler from a FastModel processor simulation model.
Copyright (c) 2008 Cmpware, Inc. All Rights Reserved.
| 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(FastModel fm,
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 |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public DasmTool()
| Method Detail |
|---|
public static int run(FastModel fm,
java.lang.String infile)
fm - The FastModel model of the processor.infile - the input filename.
public static byte[] readFile(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the input text file.
java.io.IOException - if an error is encountered opening,
reading of closing the input file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||