Index

A B C D E F G H I L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

absoluteExpressions - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
absoluteExpressions are expressions based on two variable locations Ex) BUFFEND - BUFFER would be absolute since this specifies BUFFEND - 10 would not be considered to be an absolute expression
AbstractStatementBuilder - Class in edu.iu.jrsalata
The AbstractStatementBuilder is an abstract class that handles most of the logic when it comes to creating concrete StatementBuilders Since most of the logic regarding assembler directives is the same, most of it is stored in this class.
AbstractStatementBuilder() - Constructor for class edu.iu.jrsalata.AbstractStatementBuilder
Default constructor that initializes each variable
AbstractStatementBuilderBuilder - Class in edu.iu.jrsalata
The AbstractStatementBuilderBuilder class is responsible for creating and managing a queue of AbstractStatementBuilder instances.
AbstractStatementBuilderBuilder() - Constructor for class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Constructs a new AbstractStatementBuilderBuilder with default values.
AbstractStatementBuilderBuilderInterface - Interface in edu.iu.jrsalata
Interface for building and executing abstract statement builders.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.DirectiveStatement
Accepts a visitor object and allows it to visit this directive statement.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.ExtendedStatement
Accepts a visitor object and allows it to visit this instance of ExtendedStatement.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.RegisterStatement
Accepts a visitor object and allows it to visit this RegisterStatement instance.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.SicStatement
Accepts a visitor object that implements the VisitorInterface.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.SingleStatement
Accepts a visitor object and allows it to visit this instance of SingleStatement.
accept(VisitorInterface) - Method in class edu.iu.jrsalata.Statement
Accepts a visitor object that implements the VisitorInterface.
add(int) - Method in class edu.iu.jrsalata.HexNum
Adds the specified integer value to the current value.
add(HexNum) - Method in class edu.iu.jrsalata.HexNum
Adds the given HexNum value to this HexNum and returns the result as a new HexNum.
addBlock(String, String, String) - Static method in class edu.iu.jrsalata.SymTable
Adds a block to the block table for a given control section.
addLine(String) - Method in class edu.iu.jrsalata.MacroProcessor
Adds a line to the macro's definition after preprocessing it.
addLine(String) - Method in interface edu.iu.jrsalata.MacroProcessorInterface
Adds a line of unprocessed assembly to the processor.
addLocctr(HexNum) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Adds a given value to the location counter (locctr) of the current block.
addLocctr(String, HexNum) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Adds the specified location counter (locctr) value to the current location counter for the given block in the locctrTable.
addMacro(String, MacroProcessorInterface) - Static method in class edu.iu.jrsalata.SymTable
Adds a macro to the macro table.
addStatement(Statement) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Adds a statement to the list of statements.
addSymbol(String, HexNum, String, String) - Static method in class edu.iu.jrsalata.SymTable
Adds a symbol to the symbol table with the specified location, block, and control section.
args - Variable in class edu.iu.jrsalata.ExtendedStatement
stores each of the originally provided args
args - Variable in class edu.iu.jrsalata.SicStatement
args is the arguments of the given statement default value is "000"
ASM - Enum constant in enum class edu.iu.jrsalata.Format
Represents assembler directives
assemble() - Method in class edu.iu.jrsalata.DirectiveStatement
Returns the object code belonging to this directive, if any
assemble() - Method in class edu.iu.jrsalata.ExtendedStatement
Assembles the statement into its object code representation.
assemble() - Method in class edu.iu.jrsalata.RegisterStatement
Assembles the opcode and register values into a hex string representation.
assemble() - Method in class edu.iu.jrsalata.SicStatement
Assembles the SIC statement into its machine code representation.
assemble() - Method in class edu.iu.jrsalata.SingleStatement
Assembles the opcode into its hex string representation.
assemble() - Method in class edu.iu.jrsalata.Statement
Assembles the statement into its corresponding representation
assembleLiterals() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Assembles literals by processing each unique literal from the literals queue.

B

base - Variable in class edu.iu.jrsalata.ExtendedStatement
contains the name of the base used in displacement calculations
base - Variable in class edu.iu.jrsalata.StatementBuilder
The base address for the BASE directive, when it is set
BaseStatement - Class in edu.iu.jrsalata
The BaseStatement class is an abstract class that extends the Statement class.
BaseStatement() - Constructor for class edu.iu.jrsalata.BaseStatement
Constructs a new BaseStatement object with default values.
BaseStatement(HexNum, HexNum) - Constructor for class edu.iu.jrsalata.BaseStatement
Constructs a BaseStatement with the specified location and opcode.
bFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the b flag
BIN - Enum constant in enum class edu.iu.jrsalata.NumSystem
Represents binary (base 2)
block - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
Current name of the program block
block - Variable in class edu.iu.jrsalata.Statement
block represents the current program block the statement is in
builder - Variable in class edu.iu.jrsalata.ObjectWriter
holds the current builder to write its output
builderQueue - Variable in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
stores each of the created builders

C

choseBuilder(Scanner) - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Chooses the appropriate statement builder based on the input from the scanner.
cleanLine(String) - Static method in class edu.iu.jrsalata.Utility
Cleans the given line by stripping unnecessary whitespace and removing comments.
clear() - Static method in class edu.iu.jrsalata.SymTable
Clears all entries from the symbol table, block table, and macro table.
containsBlock(String, String) - Static method in class edu.iu.jrsalata.SymTable
Checks if the block table contains the specified symbol within the given control section.
containsSymbol(String, String) - Static method in class edu.iu.jrsalata.SymTable
Checks if the specified symbol exists in the symbol table for the given control section.
controlSection - Variable in class edu.iu.jrsalata.Statement
controlSection represents the current controlSection of the statement

D

DEC - Enum constant in enum class edu.iu.jrsalata.NumSystem
Represents decimal (base 10)
directive - Variable in class edu.iu.jrsalata.DirectiveStatement
name of the directive this statement represents
DirectiveStatement - Class in edu.iu.jrsalata
The DirectiveStatement class represents a directive statement in an assembler.
DirectiveStatement() - Constructor for class edu.iu.jrsalata.DirectiveStatement
Constructs a new DirectiveStatement with default values.
DirectiveStatement(HexNum, String) - Constructor for class edu.iu.jrsalata.DirectiveStatement
Constructs a DirectiveStatement with the specified size and directive.
DirectiveStatement(String) - Constructor for class edu.iu.jrsalata.DirectiveStatement
Constructs a new DirectiveStatement with the specified directive.

E

edu.iu.jrsalata - package edu.iu.jrsalata
 
eFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the e flag
evaluateExpression(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Evaluates a mathematical expression represented as a string.
execute() - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Executes the process of reading an input file, selecting the appropriate builder, and processing the file to populate the builder queue.
execute() - Method in interface edu.iu.jrsalata.AbstractStatementBuilderBuilderInterface
Executes the statement builder builder to create the needed builders
execute() - Method in class edu.iu.jrsalata.ObjectWriter
Executes the process of writing an object file.
execute() - Method in interface edu.iu.jrsalata.ObjectWriterInterface
Executes the object writing process to generate an output object file
execute(InputStream) - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Executes the process of reading and parsing an assembly file.
execute(InputStream) - Method in interface edu.iu.jrsalata.AbstractStatementBuilderBuilderInterface
Executes the statement builder builder with the provided input stream.
ExtendedStatement - Class in edu.iu.jrsalata
The ExtendedStatement class represents an extended statement in an assembler.
ExtendedStatement() - Constructor for class edu.iu.jrsalata.ExtendedStatement
Constructs an ExtendedStatement object with default values.
ExtendedStatement(HexNum, HexNum, String) - Constructor for class edu.iu.jrsalata.ExtendedStatement
Constructs an ExtendedStatement with the specified location, opcode, and arguments.
externalDefinitions - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
externalDefinitions refers to any label that may be accessed in a separate control section
externalReferences - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
externalReferences refers to labels in this control section that are accessed in a separate section

F

fileInput(Scanner, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Processes the input from a Scanner and builds a queue of AbstractStatementBuilder objects.
fileName - Variable in class edu.iu.jrsalata.ObjectWriter
stores the name of the output file
format - Variable in class edu.iu.jrsalata.BaseStatement
stores the format (1,2,3,4) that this statement represents
Format - Enum Class in edu.iu.jrsalata
The Format enum represents the different formats in the SIC/XE instruction set Format.ONE - Format 1 Format.TWO - Format 2 Format.THREE - Format 3 Format.ASM - Assembly format Format.SIC - Simplified Instructional Computer format
formatTable - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
formatTable is a map that holds the format of each instruction

G

getBin() - Method in class edu.iu.jrsalata.HexNum
Converts the hexadecimal number to its binary representation.
getBin(int) - Method in class edu.iu.jrsalata.HexNum
Converts the hexadecimal number to its binary representation with a specified number of digits.
getBlock() - Method in class edu.iu.jrsalata.Statement
Retrieves the block associated with this statement.
getBlock(String, String) - Static method in class edu.iu.jrsalata.SymTable
Retrieves the block associated with the given symbol and control section.
getBuilders() - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Retrieves the queue of AbstractStatementBuilder instances.
getBuilders() - Method in interface edu.iu.jrsalata.AbstractStatementBuilderBuilderInterface
Retrieves a queue of abstract statement builders.
getControlSection() - Method in class edu.iu.jrsalata.Statement
Retrieves the control section of the statement.
getDec() - Method in class edu.iu.jrsalata.HexNum
Converts the hexadecimal value of this object to its decimal equivalent.
getDirective() - Method in class edu.iu.jrsalata.DirectiveStatement
Retrieves the directive associated with this statement.
getExternalDefinitions() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the queue of external definitions.
getExternalReferences() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the queue of external references.
getKeys(String) - Static method in class edu.iu.jrsalata.SymTable
Retrieves the set of keys from the symbol table for the specified control section.
getLine() - Method in class edu.iu.jrsalata.Statement
Retrieves the line of the statement
getLines(String[]) - Method in class edu.iu.jrsalata.MacroProcessor
Processes the macro definition by replacing placeholders with the provided arguments.
getLines(String[]) - Method in interface edu.iu.jrsalata.MacroProcessorInterface
Retrieves the processed lines of macro assembly code, substituting any macro arguments.
getLocation() - Method in class edu.iu.jrsalata.BaseStatement
Retrieves the location of this statement.
getLocctr() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the location counter (LOCCTR) for the current block.
getLocctr(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the location counter (LOCCTR) for the specified block.
getMacro(String) - Static method in class edu.iu.jrsalata.SymTable
Retrieves a macro from the macro table by its name.
getMacroKeys() - Static method in class edu.iu.jrsalata.SymTable
Retrieves the set of keys from the macro table.
getModification() - Method in class edu.iu.jrsalata.ExtendedStatement
Retrieves the modification string.
getName() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the name, ensuring it is exactly six characters long.
getReferenceModifications() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the list of reference modifications.
getSize() - Method in class edu.iu.jrsalata.ExtendedStatement
Returns the size of the statement.
getSize() - Method in class edu.iu.jrsalata.Statement
Returns the size of the statement as a HexNum.
getStart() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the starting address as a HexNum for the default starting block
getStart(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Retrieves the starting HexNum for the specified block.
getStatements() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Calculates the length and relative start of each block in the program, modifies the value of each symbol to be relative to the start of the program, and returns the queue of statements.
getStrings() - Method in class edu.iu.jrsalata.ModificationVisitor
Retrieves the queue of modification strings.
getStrings() - Method in interface edu.iu.jrsalata.VisitorInterface
Returns a queue of strings generated by this visitor
getSymbol(String, String) - Static method in class edu.iu.jrsalata.SymTable
Retrieves the HexNum associated with the given symbol in the specified control section.
getTotalLength() - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Calculates the total length of all program blocks by summing up the location counters of each block in the start table.

H

handleAsmStatement(String, String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles assembly statements by processing the given mnemonic and arguments.
handleAsmStatement(String, String) - Method in class edu.iu.jrsalata.StatementBuilder
Handles assembler directives and generates a corresponding DirectiveStatement object.
handleByte(String, DirectiveStatement) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles the BYTE directive in an assembly file.
handleExpression(String, String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles the evaluation of an expression, replacing symbols with their decimal values, and determining if the expression is absolute or relative.
handleLabels(String, String, String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles the processing of labels in the assembly code.
handleLiteral(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles a literal in the assembly code.
handleMacroCreation(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Handles the creation of a macro processor from a given line of macro definition.
handleModification(String, String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Handles the modification of an external reference in the assembly code.
hasExternalSymbol - Variable in class edu.iu.jrsalata.ExtendedStatement
true if an external symbol is referenced, false if otherwise
HEX - Enum constant in enum class edu.iu.jrsalata.NumSystem
Represents hexadecimal (base 16)
HexNum - Class in edu.iu.jrsalata
The HexNum class represents a hexadecimal number and provides methods for converting between different number systems (decimal, binary, and hexadecimal), performing arithmetic operations, and formatting the hexadecimal number.
HexNum() - Constructor for class edu.iu.jrsalata.HexNum
Constructs a new HexNum object with a default value of "0".
HexNum(int) - Constructor for class edu.iu.jrsalata.HexNum
Constructs a HexNum object by converting an integer value to its hexadecimal string representation.
HexNum(String, NumSystem) - Constructor for class edu.iu.jrsalata.HexNum
Constructs a HexNum object by converting the given value from the specified number system to hexadecimal.

I

iFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the i flag
inputFile - Variable in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
stores the name of the input file
instructionTable - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
instructionTable is a map that holds each of the assembler instructions
InvalidAssemblyFileException - Exception in edu.iu.jrsalata
Exception thrown to indicate that there is an error with the assembly file.
InvalidAssemblyFileException() - Constructor for exception edu.iu.jrsalata.InvalidAssemblyFileException
Exception thrown when there is an error with the input assembly file.
InvalidAssemblyFileException(int) - Constructor for exception edu.iu.jrsalata.InvalidAssemblyFileException
Exception thrown when an invalid assembly file is encountered.
InvalidAssemblyFileException(int, String) - Constructor for exception edu.iu.jrsalata.InvalidAssemblyFileException
Exception thrown when an invalid assembly file is encountered.

L

lengthCheck(String) - Static method in class edu.iu.jrsalata.Utility
Ensures the given symbol string is exactly SymTable.MAX_LEN characters long.
line - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
Current line the builder is processing
line - Variable in class edu.iu.jrsalata.Statement
line represents the line of assembly this statement represents
lineNum - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
Current line number based on given input May be inaccurate due to how comments are handled
literals - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
literals are values that are hard coded in like =X'05' These need to be placed in a literal pool later, hence why they are stored here
loadInstructions(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Loads the instruction set from a specified file and populates the instruction and format tables.
loadRegisters(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Loads the registers from the specified file and adds them to the register table.
location - Variable in class edu.iu.jrsalata.BaseStatement
stores the location of this statement
locctrTable - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
locctrTable holds the location counter of each program block
LOGGER - Static variable in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Standard logger for this class

M

MacroProcessor - Class in edu.iu.jrsalata
The MacroProcessor class is responsible for processing macros in assembly language.
MacroProcessor() - Constructor for class edu.iu.jrsalata.MacroProcessor
Constructs a new MacroProcessor with default values.
MacroProcessor(String[]) - Constructor for class edu.iu.jrsalata.MacroProcessor
Constructs a new MacroProcessor with the specified parameters.
MacroProcessorInterface - Interface in edu.iu.jrsalata
Interface for a Macro Processor that handles the processing of macros.
MAX_LEN - Static variable in class edu.iu.jrsalata.SymTable
The maximum length allowed for labels and other constants For SIC/XE, that length is 6
modification - Variable in class edu.iu.jrsalata.ExtendedStatement
Stores the needed modification record, if any
modifications - Variable in class edu.iu.jrsalata.ModificationVisitor
queue to store modification information
ModificationVisitor - Class in edu.iu.jrsalata
The ModificationVisitor class implements the VisitorInterface and is used to collect modification records from ExtendedStatement objects.
ModificationVisitor() - Constructor for class edu.iu.jrsalata.ModificationVisitor
Constructs a new ModificationVisitor instance.

N

name - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
Name of the given program
nFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the n flag
NumSystem - Enum Class in edu.iu.jrsalata
The NumSystem enum represents different numerical systems.

O

objectCode - Variable in class edu.iu.jrsalata.DirectiveStatement
the object code this statement generates, if any
ObjectWriter - Class in edu.iu.jrsalata
The ObjectWriter class is responsible for writing object files based on the provided statements and builder.
ObjectWriter() - Constructor for class edu.iu.jrsalata.ObjectWriter
Constructs an ObjectWriter with default settings.
ObjectWriter(String, AbstractStatementBuilder, Queue<Statement>) - Constructor for class edu.iu.jrsalata.ObjectWriter
Constructs an ObjectWriter with the specified file name, statement builder, and queue of statements.
ObjectWriterInterface - Interface in edu.iu.jrsalata
The ObjectWriterInterface defines the contract for writing objects to a file.
ONE - Enum constant in enum class edu.iu.jrsalata.Format
Represents format 1 1 byte containing the opcode
opcode - Variable in class edu.iu.jrsalata.BaseStatement
stores the operation code of this statement

P

pFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the p flag
previouslyUsed - Variable in class edu.iu.jrsalata.ObjectWriter
previouslyUsed is a boolean that indicates if the writer was used before If so, output needs to be appended
processStatement(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Processes a given assembly statement.
processStatement(String) - Method in class edu.iu.jrsalata.SicStatementBuilder
Processes a given assembly statement.
processStatement(String) - Method in class edu.iu.jrsalata.StatementBuilder
Processes an assembly statement and generates a corresponding Statement object.

Q

queue - Variable in class edu.iu.jrsalata.ObjectWriter
queue stores the current queue of statements Possibly unnecessary?

R

referenceModifications - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
with every external reference, we need a new modification record in order to specify where to find the external reference
RegisterStatement - Class in edu.iu.jrsalata
The RegisterStatement class represents a statement that involves register operations in an assembler.
RegisterStatement() - Constructor for class edu.iu.jrsalata.RegisterStatement
Constructs a new RegisterStatement with default values.
RegisterStatement(HexNum, HexNum, HexNum) - Constructor for class edu.iu.jrsalata.RegisterStatement
Constructs a RegisterStatement with the specified location, opcode, and register 1.
RegisterStatement(HexNum, HexNum, HexNum, HexNum) - Constructor for class edu.iu.jrsalata.RegisterStatement
Constructs a RegisterStatement with the specified location, opcode, and registers.
registerTable - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
registerTable is a map that holds each valid register

S

set(int) - Method in class edu.iu.jrsalata.HexNum
Sets the value of this HexNum object by converting the given decimal integer to its hexadecimal representation.
set(String, NumSystem) - Method in class edu.iu.jrsalata.HexNum
Sets the value of this HexNum object by converting the given value from the specified number system to hexadecimal.
setArgs(String) - Method in class edu.iu.jrsalata.ExtendedStatement
Sets the string of args for this statement
setArgs(String) - Method in class edu.iu.jrsalata.SicStatement
Sets the arguments for the SIC statement.
setBase(String) - Method in class edu.iu.jrsalata.ExtendedStatement
Sets the base of the statement
setBFlag() - Method in class edu.iu.jrsalata.ExtendedStatement
Sets the B flag to true.
setBlock(String) - Method in class edu.iu.jrsalata.Statement
Sets the block for this statement.
setBuilder(AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Sets the builder for this ObjectWriter.
setBuilder(AbstractStatementBuilder) - Method in interface edu.iu.jrsalata.ObjectWriterInterface
Sets the builder to be used for constructing statements.
setControlSection(String) - Method in class edu.iu.jrsalata.Statement
Sets the control section for this statement.
setDirective(String) - Method in class edu.iu.jrsalata.DirectiveStatement
Sets the directive for this DirectiveStatement.
setEFlag() - Method in class edu.iu.jrsalata.ExtendedStatement
Sets the eFlag to true.
setExternalSymbol() - Method in class edu.iu.jrsalata.ExtendedStatement
Marks this statement as having an external symbol.
setFileName(String) - Method in class edu.iu.jrsalata.ObjectWriter
Sets the name of the file.
setFileName(String) - Method in interface edu.iu.jrsalata.ObjectWriterInterface
Sets the name of the output file.
setInputFile(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
Sets the input file name.
setInputFile(String) - Method in interface edu.iu.jrsalata.AbstractStatementBuilderBuilderInterface
Sets the input file name for the statement builders.
setLabel(String) - Method in class edu.iu.jrsalata.MacroProcessor
Sets the label for the macro processor.
setLabel(String) - Method in interface edu.iu.jrsalata.MacroProcessorInterface
Sets the label for the current macro being processed.
setLine(String) - Method in class edu.iu.jrsalata.Statement
Sets the line of the statement.
setLocation(HexNum) - Method in class edu.iu.jrsalata.BaseStatement
Sets the location of this BaseStatement.
setName(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Sets the name for this program.
setObjCode(String) - Method in class edu.iu.jrsalata.DirectiveStatement
Sets the object code for this directive statement.
setOpcode(HexNum) - Method in class edu.iu.jrsalata.RegisterStatement
Sets the opcode for this RegisterStatement.
setPFlag() - Method in class edu.iu.jrsalata.ExtendedStatement
Sets the pFlag to true.
setQueue(Queue<Statement>) - Method in class edu.iu.jrsalata.ObjectWriter
Sets the queue of statements to be processed.
setQueue(Queue<Statement>) - Method in interface edu.iu.jrsalata.ObjectWriterInterface
Sets the queue of statements.
setReg1(HexNum) - Method in class edu.iu.jrsalata.RegisterStatement
Sets the value of the first register.
setReg2(HexNum) - Method in class edu.iu.jrsalata.RegisterStatement
Sets the value of the second register.
setSize(HexNum) - Method in class edu.iu.jrsalata.DirectiveStatement
Sets the size of the directive statement.
setStart(String, HexNum) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Sets the starting address for a given block in the start table.
SIC - Enum constant in enum class edu.iu.jrsalata.Format
Represents SIC-only statements
SIC_FLAG - Static variable in class edu.iu.jrsalata.AbstractStatementBuilderBuilder
In order to differentiate between SIC and SIC/XE, all SIC files must start with this flag
SicStatement - Class in edu.iu.jrsalata
The SicStatement class represents a SIC statement in an assembler.
SicStatement() - Constructor for class edu.iu.jrsalata.SicStatement
Constructs a new SicStatement object with default values.
SicStatement(HexNum, HexNum, String) - Constructor for class edu.iu.jrsalata.SicStatement
Constructs a SicStatement object with the specified location, opcode, and arguments.
SicStatementBuilder - Class in edu.iu.jrsalata
The SicStatementBuilder class is responsible for processing and creating SIC statements from a given string.
SicStatementBuilder() - Constructor for class edu.iu.jrsalata.SicStatementBuilder
Constructs a new SicStatementBuilder object.
SingleStatement - Class in edu.iu.jrsalata
The SingleStatement class represents a single assembly statement.
SingleStatement() - Constructor for class edu.iu.jrsalata.SingleStatement
Default constructor for the SingleStatement class.
SingleStatement(HexNum, HexNum) - Constructor for class edu.iu.jrsalata.SingleStatement
Constructs a SingleStatement object with the specified location and opcode.
size - Variable in class edu.iu.jrsalata.Statement
size represents how many bytes long the statement is
splitLine(String) - Static method in class edu.iu.jrsalata.Utility
Splits the given line into parts based on spaces after cleaning it.
splitStatement(String) - Method in class edu.iu.jrsalata.AbstractStatementBuilder
Splits an assembly statement into its constituent parts: mnemonic, arguments, and label.
startTable - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
startTable handles the starting location of each program block Note that we are making startTable a LinkedHashMap this is so that we can maintain the order of each program block which is needed for calculating the relative start locations of each block
Statement - Class in edu.iu.jrsalata
The Statement class represents an abstract base class for different types of statements in an assembler.
Statement() - Constructor for class edu.iu.jrsalata.Statement
Protected constructor for the Statement class.
Statement(HexNum) - Constructor for class edu.iu.jrsalata.Statement
Constructs a new Statement with the specified size.
Statement(HexNum, String) - Constructor for class edu.iu.jrsalata.Statement
Constructs a new Statement with the specified size and block.
StatementBuilder - Class in edu.iu.jrsalata
The StatementBuilder class is responsible for processing SIC/XE assembly statements and generating corresponding Statement objects based on the mnemonic and arguments.
StatementBuilder() - Constructor for class edu.iu.jrsalata.StatementBuilder
Constructor for StatementBuilder.
statements - Variable in class edu.iu.jrsalata.AbstractStatementBuilder
statements is the queue that is returned to the client Each of them contains a statement that has appropriate info on its location, args, and values so it can be assembled
subtract(int) - Method in class edu.iu.jrsalata.HexNum
Subtracts a given integer value from the current hexadecimal value.
subtract(HexNum) - Method in class edu.iu.jrsalata.HexNum
Subtracts the given HexNum value from this HexNum and returns the result as a new HexNum.
SymTable - Class in edu.iu.jrsalata
The SymTable class provides a static symbol table, block table, and macro table that can be used across other classes.

T

THREE - Enum constant in enum class edu.iu.jrsalata.Format
Represents format 3 and 4 3/4 bytes 6 bits for opcode 2 bits for addressing mode 1/2 byte for other flags 3/2 bytes for displacement +1 byte if format 4
toString() - Method in class edu.iu.jrsalata.HexNum
Returns a string representation of the hexadecimal number.
toString(int) - Method in class edu.iu.jrsalata.HexNum
Converts the hexadecimal number to a string representation with a specified number of digits.
TWO - Enum constant in enum class edu.iu.jrsalata.Format
Represents format 2 2 bytes 1 byte containing the opcode 1/2 byte containing register 1 1/2 byte containing register 2

U

Utility - Class in edu.iu.jrsalata
Utility class provides static methods for string manipulation and processing.
Utility() - Constructor for class edu.iu.jrsalata.Utility
 

V

value - Variable in class edu.iu.jrsalata.HexNum
Holds the hex representation of this number
valueOf(String) - Static method in enum class edu.iu.jrsalata.Format
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.iu.jrsalata.NumSystem
Returns the enum constant of this class with the specified name.
values() - Static method in enum class edu.iu.jrsalata.Format
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.iu.jrsalata.NumSystem
Returns an array containing the constants of this enum class, in the order they are declared.
visit(BaseStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(BaseStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(DirectiveStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(DirectiveStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(ExtendedStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
Visits an ExtendedStatement and adds its modification to the list of modifications if the modification is not an empty string.
visit(ExtendedStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(RegisterStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(RegisterStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(SicStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(SicStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(SingleStatement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(SingleStatement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
visit(Statement) - Method in class edu.iu.jrsalata.ModificationVisitor
 
visit(Statement) - Method in interface edu.iu.jrsalata.VisitorInterface
Visits the given statement.
VisitorInterface - Interface in edu.iu.jrsalata
VisitorInterface defines a common interface for various types of visitors that can process different kinds of statements in an assembler.

W

writeDefineRecord(FileWriter, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Writes a define record to the specified FileWriter using the provided AbstractStatementBuilder.
writeEndRecord(FileWriter, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Writes the end record to the specified FileWriter.
writeHeaderRecord(FileWriter, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Writes a header record to the specified FileWriter.
writeModificationRecords(FileWriter, Queue<String>, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Writes modification records to the provided FileWriter.
writeReferRecords(FileWriter, AbstractStatementBuilder) - Method in class edu.iu.jrsalata.ObjectWriter
Writes the reference records to the specified file using the provided FileWriter.
writeTextRecords(FileWriter, Queue<Statement>, AbstractStatementBuilder, FileWriter) - Method in class edu.iu.jrsalata.ObjectWriter
Writes text records to the provided FileWriter based on the given queue of Statements.

X

xFlag - Variable in class edu.iu.jrsalata.ExtendedStatement
stores the x flag
xFlag - Variable in class edu.iu.jrsalata.SicStatement
xFlag represents if an index is being used represented by ",X" at the end of args
A B C D E F G H I L M N O P Q R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form