miSim

misim.asm
Interface FirstPassIF

All Known Implementing Classes:
Assembler

public interface FirstPassIF


Field Summary
static int END_OF_FILE
          List index indicating that a line should be added to the end of the given file
static int LIST_ALL
           
static int LIST_NONE
           
static int LIST_SKIP
           
 
Method Summary
 void addIncludeFile(TokenString include)
          Add the given include file to the current iterator list, so that the next lines loaded will be from the included file
 void addToList(AsmLine aLine, TextFile listFile, int index, boolean force)
          Add the specified line to the list file, either as a visible line, or unlisted depending on the current listing controls.
 AsmLine preprocess(LineIterator iterator, java.util.Hashtable defineHash)
          Read the next line from the given line iterator.
 void setList(int listType)
          Set the flag that indicates whether current lines added to the listing should be visible or not.
 

Field Detail

END_OF_FILE

public static final int END_OF_FILE
List index indicating that a line should be added to the end of the given file

LIST_ALL

public static final int LIST_ALL

LIST_NONE

public static final int LIST_NONE

LIST_SKIP

public static final int LIST_SKIP
Method Detail

addToList

public void addToList(AsmLine aLine,
                      TextFile listFile,
                      int index,
                      boolean force)
Add the specified line to the list file, either as a visible line, or unlisted depending on the current listing controls. If the line is not visible it is added as a child of the last visible line added.
Parameters:
aLine - The line to add
listFile - The list file to append the line to
index - The index to add the line at, or END_OF_FILE for end of file
force - If True, this will be added as a visible line, regardless of the list setting

setList

public void setList(int listType)
Set the flag that indicates whether current lines added to the listing should be visible or not. listType may be one of the following values: LIST_ALL - All current lines should be listed LIST_NONE - No current lines should be listed LIST_SKIP - The current line should not be listed, then return to previous behaviour
Parameters:
listType - The new list behaviour

preprocess

public AsmLine preprocess(LineIterator iterator,
                          java.util.Hashtable defineHash)
Read the next line from the given line iterator. Create a new AsmLine from this one, setting the source line, list and line number values. Clear existing errors on the source line. If defineHash is not null, and the line contains tokens in the defineHash, expand #define-d tokens into a new Vector, and set the AsmLine's preprocessed vector of tokens to the expanded list. Tokens that follow IFDEF or IFNDEF commands are not expanded.
Parameters:
aLine - The line to preprocess
defineHash - The hashtable containing #defines

addIncludeFile

public void addIncludeFile(TokenString include)
                    throws EditorException
Add the given include file to the current iterator list, so that the next lines loaded will be from the included file
Parameters:
include - The String token representing the include file name
Throws:
EditorException - If the file could not be loaded

miSim