miSim

misim.asm
Class TokenInstruction

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

public class TokenInstruction
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
 
Constructor Summary
TokenInstruction(java.lang.String text, Instruction instruction, EditorPrefs prefs)
           
 
Method Summary
static void addToNode(Node aNode, InstructionSet instructionSet, EditorPrefs prefs)
           
 void assemble(Processor processor, Context context, AsmLine aLine)
           
 void setAlternative(Instruction altInstruction)
           
 
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
 

Constructor Detail

TokenInstruction

public TokenInstruction(java.lang.String text,
                        Instruction instruction,
                        EditorPrefs prefs)
Method Detail

addToNode

public static void addToNode(Node aNode,
                             InstructionSet instructionSet,
                             EditorPrefs prefs)

setAlternative

public void setAlternative(Instruction altInstruction)

assemble

public void assemble(Processor processor,
                     Context context,
                     AsmLine aLine)
              throws EditorException

miSim