misim.asm
Class TokenCommand
java.lang.Object
|
+--misim.editor.Token
|
+--misim.asm.TokenCommand
- All Implemented Interfaces:
- java.lang.Cloneable
- public class TokenCommand
- extends Token
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 |
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 |
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
TokenCommand
public TokenCommand(java.lang.String text,
int command,
EditorPrefs prefs)
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.