Package edu.iu.jrsalata
Class SicStatementBuilder
java.lang.Object
edu.iu.jrsalata.AbstractStatementBuilder
edu.iu.jrsalata.SicStatementBuilder
The SicStatementBuilder class is responsible for processing and creating SIC statements
from a given string. It extends the AbstractStatementBuilder class and provides
specific implementations for handling SIC assembly language statements.
- See Also:
-
Field Summary
Fields inherited from class edu.iu.jrsalata.AbstractStatementBuilder
absoluteExpressions, block, externalDefinitions, externalReferences, formatTable, instructionTable, line, lineNum, literals, locctrTable, name, referenceModifications, registerTable, startTable, statements
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processStatement
(String statement) Processes a given assembly statement.Methods inherited from class edu.iu.jrsalata.AbstractStatementBuilder
addLocctr, addLocctr, addStatement, assembleLiterals, evaluateExpression, getExternalDefinitions, getExternalReferences, getLocctr, getLocctr, getName, getReferenceModifications, getStart, getStart, getStatements, getTotalLength, handleAsmStatement, handleByte, handleExpression, handleLabels, handleLiteral, handleModification, loadInstructions, loadRegisters, setName, setStart, splitStatement
-
Constructor Details
-
SicStatementBuilder
public SicStatementBuilder()Constructs a new SicStatementBuilder object. This constructor calls the superclass constructor.
-
-
Method Details
-
processStatement
Processes a given assembly statement.- Specified by:
processStatement
in classAbstractStatementBuilder
- Parameters:
statement
- The assembly statement to process.- Throws:
InvalidAssemblyFileException
- If the statement contains an invalid mnemonic or format.ScriptException
- If there is an error in evaluating expressions within the statement.
-