JIMSCore
Class InstructionEncoder

java.lang.Object
  |
  +--JIMSCore.InstructionEncoder

public class InstructionEncoder
extends java.lang.Object

This is the InstructionEncoder class.

Author:
Steve Lewis, Fred Williams

Field Summary
private  Assembler assembler
           
 
Constructor Summary
InstructionEncoder(Assembler assembler)
           
 
Method Summary
private  int iEncodeInstruction(java.lang.String sRawInput, java.lang.String opCode, java.lang.String[] saParam, int iCurrLine)
           
private  int iProcessAsPseudoInstruction(java.lang.String sRawInput, java.lang.String opCode, java.lang.String[] saParam, int iCurrLine)
           
 void processInstruction(java.lang.String sInput, int iCurrLine)
           
 void processInstruction(java.lang.String sRawInput, java.lang.String sInput, int iCurrLine)
           
private  void restoreAT(java.lang.String s, int iSourceLine)
           
private  java.lang.String[] saProcessAddress(java.lang.String s)
           
private  void storeAT()
           
private  void validateRegisterUse(TextEntry te, java.lang.String sRawInput, int iCurrLine)
          Validates the use of registers as operands.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

assembler

private Assembler assembler
Constructor Detail

InstructionEncoder

public InstructionEncoder(Assembler assembler)
Method Detail

processInstruction

public void processInstruction(java.lang.String sInput,
                               int iCurrLine)
                        throws java.lang.Exception

processInstruction

public void processInstruction(java.lang.String sRawInput,
                               java.lang.String sInput,
                               int iCurrLine)
                        throws java.lang.Exception

iEncodeInstruction

private int iEncodeInstruction(java.lang.String sRawInput,
                               java.lang.String opCode,
                               java.lang.String[] saParam,
                               int iCurrLine)
                        throws java.lang.Exception

iProcessAsPseudoInstruction

private int iProcessAsPseudoInstruction(java.lang.String sRawInput,
                                        java.lang.String opCode,
                                        java.lang.String[] saParam,
                                        int iCurrLine)
                                 throws java.lang.Exception

saProcessAddress

private java.lang.String[] saProcessAddress(java.lang.String s)

storeAT

private void storeAT()

restoreAT

private void restoreAT(java.lang.String s,
                       int iSourceLine)

validateRegisterUse

private void validateRegisterUse(TextEntry te,
                                 java.lang.String sRawInput,
                                 int iCurrLine)
                          throws java.lang.Exception
Validates the use of registers as operands.
Parameters:
te - The TextEntry to valdiate.