miSim

misim.asm
Class TokenCommand

java.lang.Object
  |
  +--misim.editor.Token
        |
        +--misim.asm.TokenCommand
All Implemented Interfaces:
java.lang.Cloneable

public class TokenCommand
extends Token


Field Summary
static int CMD_BADRAM
           
static int CMD_CONFIG
           
static int CMD_DB
           
static int CMD_DE
           
static int CMD_DEFINE
           
static int CMD_DT
           
static int CMD_DW
           
static int CMD_ELSE
           
static int CMD_END
           
static int CMD_ENDIF
           
static int CMD_ENDM
           
static int CMD_EQU
           
static int CMD_ERROR
           
static int CMD_EXITM
           
static int CMD_HINCLUDE
           
static int CMD_IF
           
static int CMD_IFDEF
           
static int CMD_IFNDEF
           
static int CMD_INCLUDE
           
static int CMD_LIST
           
static int CMD_LOCAL
           
static int CMD_MACRO
           
static int CMD_MAXRAM
           
static int CMD_MESSG
           
static int CMD_NOLIST
           
static int CMD_ORG
           
static int CMD_RADIX
           
static int CMD_SET
           
 
Fields inherited from class misim.editor.Token
display, text, TYPE_ALIAS, TYPE_COLON, TYPE_COMMA, TYPE_COMMAND, TYPE_COMMENT, TYPE_INSTRUCTION, TYPE_LISTING, TYPE_NUMBER, TYPE_OPERATOR, TYPE_STRING, TYPE_TOKEN, TYPE_WHITESPACE
 
Constructor Summary
TokenCommand(java.lang.String text, int command, EditorPrefs prefs)
           
 
Method Summary
static void addToNode(Node aNode, EditorPrefs prefs)
           
 int command()
           
 int processCommand(AsmLine aLine, Token labelToken, Context context, java.util.Hashtable defineHash, java.util.Hashtable macroHash, LineIterator iterator, TextFile listFile, FirstPassIF firstPass, Processor processor)
          Process this command token in the given line and context If the line changes the conditional assembly status, (can only be to false, as conditional must be true to assemble this line) this will return a negative value.
 
Methods inherited from class misim.editor.Token
clone, consume, draw, drawChars, getColour, getColumn, getLength, getPixelPos, getPrefs, getType, getValue, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_ORG

public static final int CMD_ORG

CMD_INCLUDE

public static final int CMD_INCLUDE

CMD_HINCLUDE

public static final int CMD_HINCLUDE

CMD_DEFINE

public static final int CMD_DEFINE

CMD_LIST

public static final int CMD_LIST

CMD_NOLIST

public static final int CMD_NOLIST

CMD_RADIX

public static final int CMD_RADIX

CMD_EQU

public static final int CMD_EQU

CMD_SET

public static final int CMD_SET

CMD_DW

public static final int CMD_DW

CMD_DB

public static final int CMD_DB

CMD_DT

public static final int CMD_DT

CMD_DE

public static final int CMD_DE

CMD_MACRO

public static final int CMD_MACRO

CMD_LOCAL

public static final int CMD_LOCAL

CMD_EXITM

public static final int CMD_EXITM

CMD_ENDM

public static final int CMD_ENDM

CMD_IF

public static final int CMD_IF

CMD_ELSE

public static final int CMD_ELSE

CMD_ENDIF

public static final int CMD_ENDIF

CMD_IFDEF

public static final int CMD_IFDEF

CMD_IFNDEF

public static final int CMD_IFNDEF

CMD_MESSG

public static final int CMD_MESSG

CMD_ERROR

public static final int CMD_ERROR

CMD_MAXRAM

public static final int CMD_MAXRAM

CMD_BADRAM

public static final int CMD_BADRAM

CMD_CONFIG

public static final int CMD_CONFIG

CMD_END

public static final int CMD_END
Constructor Detail

TokenCommand

public TokenCommand(java.lang.String text,
                    int command,
                    EditorPrefs prefs)
Method Detail

addToNode

public static void addToNode(Node aNode,
                             EditorPrefs prefs)

command

public int command()

processCommand

public int processCommand(AsmLine aLine,
                          Token labelToken,
                          Context context,
                          java.util.Hashtable defineHash,
                          java.util.Hashtable macroHash,
                          LineIterator iterator,
                          TextFile listFile,
                          FirstPassIF firstPass,
                          Processor processor)
                   throws EditorException
Process this command token in the given line and context If the line changes the conditional assembly status, (can only be to false, as conditional must be true to assemble this line) this will return a negative value. If the command defines data, the return value will be the number of words defined.

miSim