ca.disassembly
Class DisassemblyFile

java.lang.Object
  extended by ca.disassembly.DisassemblyFile

public class DisassemblyFile
extends java.lang.Object

This class parses a commented disassembly file into code lines. Special comments can be added to define menus and RAM/Code addresses. This class encapsulates all of those.


Constructor Summary
DisassemblyFile(java.lang.String filename)
           
DisassemblyFile(java.lang.String textFile, java.lang.String binFile)
           
 
Method Summary
 HotLabel findHotLabel(int mr)
           
 RAMEntry findRAMEntry(int mr)
           
 java.util.List<HotLabel> getHotLabels()
           
 java.util.List<CodeLine> getLines()
           
 MachineInfo getMachineInfo()
           
 java.util.List<Menu> getMenus()
           
 int[] getOriginalBinary()
           
 java.util.List<RAMEntry> getRam()
           
 void menuReport(java.io.PrintStream ps)
          This method generates a report on the menu comments.
 void reports(java.io.PrintStream ps)
          This method generates all the reports on the disassembly file.
 void setMachineInfo(MachineInfo machineInfo)
           
 void setOriginalBinary(int[] originalBinary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisassemblyFile

public DisassemblyFile(java.lang.String textFile,
                       java.lang.String binFile)
                throws java.io.IOException
Throws:
java.io.IOException

DisassemblyFile

public DisassemblyFile(java.lang.String filename)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

reports

public void reports(java.io.PrintStream ps)
This method generates all the reports on the disassembly file.

Parameters:
ps - the print stream to write the report to

menuReport

public void menuReport(java.io.PrintStream ps)
This method generates a report on the menu comments.

Parameters:
ps - the print stream to write the report to

getRam

public java.util.List<RAMEntry> getRam()

getLines

public java.util.List<CodeLine> getLines()

getMenus

public java.util.List<Menu> getMenus()

getHotLabels

public java.util.List<HotLabel> getHotLabels()

findHotLabel

public HotLabel findHotLabel(int mr)

findRAMEntry

public RAMEntry findRAMEntry(int mr)

setOriginalBinary

public void setOriginalBinary(int[] originalBinary)

getOriginalBinary

public int[] getOriginalBinary()

setMachineInfo

public void setMachineInfo(MachineInfo machineInfo)

getMachineInfo

public MachineInfo getMachineInfo()