A B C D E F G H I L M N O P R S T U V W X

A

aboutDialog - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
aboutDialog - Variable in class edu.cornell.cs.sam.ui.SamTester
 
accept(File) - Method in class edu.cornell.cs.sam.ui.components.FileDialogManager.SimpleFilter
 
actualReturnValue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
add(String, int) - Method in interface edu.cornell.cs.sam.core.ReferenceTable
Adds a new reference to a symbol
add(String, int) - Method in class edu.cornell.cs.sam.core.SamReferenceTable
 
add(String, int) - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
add(String, int) - Method in interface edu.cornell.cs.sam.core.SymbolTable
Adds a new pair
addBreakpoint(int) - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Adds a PC to the list of breakpoints
addBreakpoints(SamGUI.BreakpointList) - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Adds a list of breakpoints
addButton(String, JPanel, GridBagLayout, GridBagConstraints, int, int, int, int, double, double) - Static method in class edu.cornell.cs.sam.ui.components.GridBagUtils
 
addComponent(JComponent, Container, GridBagLayout, GridBagConstraints, int, int, int, int, double, double) - Static method in class edu.cornell.cs.sam.ui.components.GridBagUtils
 
addFileInput(JPanel, GridBagLayout, GridBagConstraints, SamTester, int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
addInst(Instruction) - Method in interface edu.cornell.cs.sam.core.Program
Add instruction to the program
addInst(Instruction[]) - Method in interface edu.cornell.cs.sam.core.Program
Add multiple instructions to the program
addInst(Instruction) - Method in class edu.cornell.cs.sam.core.SamProgram
 
addInst(Instruction[]) - Method in class edu.cornell.cs.sam.core.SamProgram
 
addInstruction(String, Class<? extends Instruction>) - Method in class edu.cornell.cs.sam.core.SamAssembler.SamInstructionCache
 
addIO(int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
addIO(Document, Element, String, TestScript.Test.DataType) - Static method in class edu.cornell.cs.sam.ui.TestScript
 
addIOType(Document, Element, String, Collection<TestScript.Test.DataType>) - Static method in class edu.cornell.cs.sam.ui.TestScript
 
addLabel(String, JPanel, GridBagLayout, GridBagConstraints, int, int, int, int, double, double) - Static method in class edu.cornell.cs.sam.ui.components.GridBagUtils
 
addReadSchedule(JPanel, GridBagLayout, GridBagConstraints, int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
addReturnValue(JPanel, GridBagLayout, GridBagConstraints, int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
addStep(ProgramState) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
addTest() - Method in class edu.cornell.cs.sam.ui.SamTester
 
addTest(TestScript.Test) - Method in class edu.cornell.cs.sam.ui.TestScript
Add a test
addTestsMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
addToRead(TestScript.Test.DataType) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
addToWrite(TestScript.Test.DataType) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
addWriteSchedule(JPanel, GridBagLayout, GridBagConstraints, int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
assemble(String) - Static method in class edu.cornell.cs.sam.core.SamAssembler
Assembles a program from a single file
assemble(Reader) - Static method in class edu.cornell.cs.sam.core.SamAssembler
Assembles a program from a single reader
assemble(String[]) - Static method in class edu.cornell.cs.sam.core.SamAssembler
Assembles a program from multiple filenames
assemble() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
AssemblerException - Exception in edu.cornell.cs.sam.core
Specifies that there was an error while the assembler was loading the file
AssemblerException() - Constructor for exception edu.cornell.cs.sam.core.AssemblerException
 
AssemblerException(String) - Constructor for exception edu.cornell.cs.sam.core.AssemblerException
 
AssemblerException(int) - Constructor for exception edu.cornell.cs.sam.core.AssemblerException
 
AssemblerException(String, int) - Constructor for exception edu.cornell.cs.sam.core.AssemblerException
 
autoSort - Variable in class edu.cornell.cs.sam.ui.TestScript
 

B

bindSelectionListener(ListSelectionListener) - Method in class edu.cornell.cs.sam.ui.components.SamStackPanel
 
breakpoints - Variable in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Stores the breakpoints
breakpoints - Variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
A list of all current breakpoints.
buildButtonPanel() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
buildConsolePanel() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
buildProgramCodePanel() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
buttonPanel - Variable in class edu.cornell.cs.sam.ui.SamTester
 

C

canPushBack() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
canPushBack() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Checks if the stream can be pushed back
CellRenderer - Class in edu.cornell.cs.sam.ui.components
This is the parent class for the other renderers and overrides methods for performance reasons
CellRenderer() - Constructor for class edu.cornell.cs.sam.ui.components.CellRenderer
 
charValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.CH
 
check(char) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
check(String) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
check(char) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Removes the next token if it is an operator, and matches the character c.
check(String) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Removes the next token if it is a word, and matches the string s.
checkBreakpoint(int) - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Checks if the PC provided is a breakpoint
CHOOSER_OPEN - Static variable in class edu.cornell.cs.sam.ui.SamCapture
 
CHOOSER_OPEN - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
CHOOSER_SAMPROGRAM - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
CHOOSER_SAVE - Static variable in class edu.cornell.cs.sam.ui.SamCapture
 
CHOOSER_SAVE - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
ClassFileLoader - Class in edu.cornell.cs.sam.utils
A special class loader whose only purpose is to expose the defineClass function
ClassFileLoader(ClassLoader) - Constructor for class edu.cornell.cs.sam.utils.ClassFileLoader
 
classID - Static variable in class edu.cornell.cs.sam.ui.SamCapture
 
classID - Static variable in class edu.cornell.cs.sam.ui.SamGUI
 
classID - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
clear() - Method in class edu.cornell.cs.sam.ui.SamTester
 
clear() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
clearInterrupt() - Method in class edu.cornell.cs.sam.utils.SamThread
Removes the interrupt flag
clearTests() - Method in class edu.cornell.cs.sam.ui.TestScript
Remove all tests from this script
clearText() - Method in class edu.cornell.cs.sam.ui.components.StatusBar
Clears the current text
close() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
close() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Closes the input stream
close() - Method in class edu.cornell.cs.sam.ui.SamCapture
 
close() - Method in class edu.cornell.cs.sam.ui.SamGUI
Destroys the window, system, and any dialogs
close() - Method in class edu.cornell.cs.sam.ui.SamTester
 
close() - Method in interface edu.cornell.cs.sam.ui.SamUI.Component
 
code - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
COLOR_CH - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The background color used for characters
COLOR_DEFAULT - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The color used for any items that do not have a correct type
COLOR_FLOAT - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The background color used for floats
COLOR_INT - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The background color used for integers
COLOR_MA - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The background color used for memory addresses
COLOR_PA - Static variable in class edu.cornell.cs.sam.ui.components.MemoryCell
The background color used for program addresses
colorsDialog - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
compareTo(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
completed - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
confirmClose() - Method in class edu.cornell.cs.sam.ui.SamTester
 
contentPane - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
contentPane - Variable in class edu.cornell.cs.sam.ui.SamTester
 
cpu - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
cpu() - Method in class edu.cornell.cs.sam.core.Sys
Returns the first CPU (or null if no CPUs)
cpus() - Method in class edu.cornell.cs.sam.core.Sys
Returns the CPU collection (or null if no CPUs are available)
createBottomPanel() - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
createButtonPanel() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createComponents(SamTester) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
createComponents() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createFileMenu() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createMenus() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createObject(String, SamTester.AddTestDialog.IOType) - Static method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
createRow(TestScript.Test) - Method in class edu.cornell.cs.sam.ui.SamTester
 
createRunMenu() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createSamMenu(SamUI.Component) - Static method in class edu.cornell.cs.sam.ui.SamUI
 
createTable() - Method in class edu.cornell.cs.sam.ui.SamTester
 
createTestsMenu() - Method in class edu.cornell.cs.sam.ui.SamTester
 

D

dec(int) - Method in interface edu.cornell.cs.sam.core.Processor
Decrements the register and returns the new value.
dec(int) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
delay - Variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
The delay after each intruction
deleteAll() - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Clears all of the breakpoints
deleteBreakpoint(int) - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Deletes the pc from the list of breakpoints
deleteBreakpoints(SamGUI.BreakpointList) - Method in class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
Deletes a list of breakpoints
deleteIO(int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
deleteSymbol(String) - Method in interface edu.cornell.cs.sam.core.ReferenceTable
Deletes a symbol and all references to it
deleteSymbol(String) - Method in class edu.cornell.cs.sam.core.SamReferenceTable
 
deleteTest() - Method in class edu.cornell.cs.sam.ui.SamTester
 
deleteTest(int) - Method in class edu.cornell.cs.sam.ui.TestScript
Delete the test case
deleteTestsEnabled - Variable in class edu.cornell.cs.sam.ui.SamTester
 
deleteTestsMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 

E

edu.cornell.cs.sam.core - package edu.cornell.cs.sam.core
 
edu.cornell.cs.sam.core.instructions - package edu.cornell.cs.sam.core.instructions
 
edu.cornell.cs.sam.io - package edu.cornell.cs.sam.io
 
edu.cornell.cs.sam.ui - package edu.cornell.cs.sam.ui
 
edu.cornell.cs.sam.ui.components - package edu.cornell.cs.sam.ui.components
 
edu.cornell.cs.sam.utils - package edu.cornell.cs.sam.utils
 
enableAutoSorting(boolean) - Method in class edu.cornell.cs.sam.ui.TestScript
Set this to true to enable the test script to be automatically sorted by test file name in alphabetical order
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.CH
 
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.FLOAT
 
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.INT
 
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.MA
 
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.PA
 
equals(Object) - Method in class edu.cornell.cs.sam.ui.TestScript.Test.STR
 
error(String) - Method in class edu.cornell.cs.sam.ui.SamTester
 
error() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
exec() - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Executes the instruction
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ADD
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ADDF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ADDSP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_AND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITAND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITNAND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITNOR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITNOT
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITOR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_BITXOR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_CMP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_CMPF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_DIV
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_DIVF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_DUP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_EQUAL
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_FREE
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_FTOI
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_FTOIR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_GREATER
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ISNEG
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ISNIL
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ISPOS
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_ITOF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_JSR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_JSRIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_JUMP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_JUMPC
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_JUMPIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_LESS
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_LINK
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_LSHIFT
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_LSHIFTIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_MALLOC
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_MOD
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_NAND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_NOR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_OR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_POPFBR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_POPSP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHABS
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHFBR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMM
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMCH
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMMA
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMPA
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMSTR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHOFF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_PUSHSP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_READ
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_READCH
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_READF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_READSTR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_RSHIFT
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_RSHIFTIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_RST
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_SKIP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_STOP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_STOREABS
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_STOREIND
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_STOREOFF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_SUB
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_SUBF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_SWAP
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_TIMES
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_TIMESF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_UNLINK
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_WRITE
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_WRITECH
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_WRITEF
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_WRITESTR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SAM_XOR
 
exec() - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
execute() - Method in class edu.cornell.cs.sam.ui.SamGUI.RunThread
Starts the thread
execute() - Method in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
execute() - Method in class edu.cornell.cs.sam.utils.SamThread
The main method used to execute one step.
exit() - Static method in class edu.cornell.cs.sam.ui.SamUI
 
ExplicitFreeAllocator - Class in edu.cornell.cs.sam.core
This allocator provides support for explicit malloc()/free() Expects heap size larger than Memory.UNIT_SIZE
ExplicitFreeAllocator() - Constructor for class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 

F

FBR - Static variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
FBR - Static variable in interface edu.cornell.cs.sam.core.Processor
The frame base register - points to the base of the current function frame
FileDialogManager - Class in edu.cornell.cs.sam.ui.components
 
FileDialogManager(int) - Constructor for class edu.cornell.cs.sam.ui.components.FileDialogManager
Initialize with n file dialogs - all of which save the last location/type of file opened
FileDialogManager.SimpleFilter - Class in edu.cornell.cs.sam.ui.components
A File filter that checks for a simple extension
FileDialogManager.SimpleFilter(String, String) - Constructor for class edu.cornell.cs.sam.ui.components.FileDialogManager.SimpleFilter
 
fileDialogs - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
fileDialogs - Variable in class edu.cornell.cs.sam.ui.SamTester
 
filename - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
fileName - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
fileTextField - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
firePropertyChange(String, Object, Object) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, byte, byte) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, char, char) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, short, short) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, int, int) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, long, long) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, float, float) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, double, double) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
firePropertyChange(String, boolean, boolean) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
floatValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.FLOAT
 
free(int) - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
free(int) - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Frees the given position in memory, which must have been allocated with malloc()
fromInt(int) - Static method in enum edu.cornell.cs.sam.core.Memory.Type
Returns the Type corresponding to this integer code

G

get(int) - Method in interface edu.cornell.cs.sam.core.Processor
Returns the register value requested
get(int) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
getAboutDialog() - Method in class edu.cornell.cs.sam.ui.SamCapture
 
getAboutDialog() - Method in class edu.cornell.cs.sam.ui.SamGUI
Returns the aboutDialog for this program
getAboutDialog() - Method in class edu.cornell.cs.sam.ui.SamTester
 
getAboutDialog() - Method in interface edu.cornell.cs.sam.ui.SamUI.Component
 
getActualReturnValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getAddr() - Method in class edu.cornell.cs.sam.core.HeapAllocator.Allocation
Gets the start address of this allocation
getAllocation(HeapAllocator.Allocation) - Method in interface edu.cornell.cs.sam.core.Memory
Returns an array containing the data for the given allocation.
getAllocation(HeapAllocator.Allocation) - Method in class edu.cornell.cs.sam.core.SamMemory
 
getAllocations() - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
getAllocations() - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Gets an iterator to the allocations on the heap
getBreakpointList() - Method in class edu.cornell.cs.sam.ui.SamGUI.RunThread
 
getCause() - Method in exception edu.cornell.cs.sam.ui.TestScript.TestScriptException
 
getCharacter() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getCharacter() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not a character)
getClass(File, String) - Method in class edu.cornell.cs.sam.utils.ClassFileLoader
 
getCode() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getColor() - Method in class edu.cornell.cs.sam.ui.components.MemoryCell
 
getComment() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getComment() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not a comment)
getDescription() - Method in class edu.cornell.cs.sam.ui.components.FileDialogManager.SimpleFilter
 
getElement(int) - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
getElements(int) - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
getFile() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getFileDialog() - Method in class edu.cornell.cs.sam.ui.SamTester
 
getFileName() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getFloat() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getFloat() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not a float)
getHeapAllocator() - Method in interface edu.cornell.cs.sam.core.Memory
Get the Heap Allocator object associated with this memory.
getHeapAllocator() - Method in class edu.cornell.cs.sam.core.SamMemory
 
getInformation(TestScript.Test, boolean) - Method in class edu.cornell.cs.sam.ui.SamTester
 
getInst(int) - Method in interface edu.cornell.cs.sam.core.Program
Get instruction at specificed location
getInst(int) - Method in class edu.cornell.cs.sam.core.SamProgram
 
getInstList() - Method in interface edu.cornell.cs.sam.core.Program
Get all instructions as a list
getInstList() - Method in class edu.cornell.cs.sam.core.SamProgram
 
getInstruction(String) - Method in class edu.cornell.cs.sam.core.SamAssembler.SamInstructionCache
 
getInt() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getInt() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not an integer)
getLastPC() - Method in class edu.cornell.cs.sam.utils.ProgramState
 
getLength() - Method in interface edu.cornell.cs.sam.core.Program
Gets total number of instructions in program
getLength() - Method in class edu.cornell.cs.sam.core.SamProgram
 
getLine() - Method in exception edu.cornell.cs.sam.core.AssemblerException
Retrives the line number if provided, -1 otherwise
getLine() - Method in exception edu.cornell.cs.sam.io.TokenizerException
 
getMem(int) - Method in interface edu.cornell.cs.sam.core.Memory
Returns the data object at the requested memory position
getMem(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
getMemory() - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
getMemory() - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Gets the memory object of this allocator
getMessage() - Method in exception edu.cornell.cs.sam.core.AssemblerException
Retrieves the message
getMessage() - Method in exception edu.cornell.cs.sam.io.TokenizerException
 
getMessage() - Method in exception edu.cornell.cs.sam.ui.TestScript.TestScriptException
 
getMinimumSize() - Method in class edu.cornell.cs.sam.ui.SamCapture
 
getName() - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Gets the name of this instruction
getName() - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
getNewTest(TestScript, SamTester) - Static method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
getNewTestScript() - Method in class edu.cornell.cs.sam.ui.SamTester
 
getNextUID() - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
getOp() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getOp() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not an operator)
getOpenDirectory(Component, File, int) - Method in class edu.cornell.cs.sam.ui.components.FileDialogManager
Runs open dialog and returns the directory selected, or null if canceled
getOpenFile(Component, String, String, File, int) - Method in class edu.cornell.cs.sam.ui.components.FileDialogManager
Runs open dialog and returns the file selected, or null if canceled
getOperand() - Method in class edu.cornell.cs.sam.core.instructions.SamCharInstruction
Get the character operand of this instruction
getOperand() - Method in class edu.cornell.cs.sam.core.instructions.SamFloatInstruction
Get the floating point operand of this instruction
getOperand() - Method in class edu.cornell.cs.sam.core.instructions.SamIntInstruction
Returns the integer operand of this instruction
getOperand() - Method in class edu.cornell.cs.sam.core.instructions.SamStringInstruction
Get the String operand of this instruction
getParent() - Method in class edu.cornell.cs.sam.utils.SamThread
Returns the thread parent
getPreferredSize() - Method in class edu.cornell.cs.sam.ui.SamCapture
 
getProgram() - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Gets the program that this instruction is part of
getProgram() - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
getProgram() - Method in interface edu.cornell.cs.sam.core.Processor
Returns the program that is currently in memory to be executed
getProgram() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
getRead() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getReferences(String) - Method in interface edu.cornell.cs.sam.core.ReferenceTable
Returns the addresses to all references to a particular symbol.
getReferences(String) - Method in class edu.cornell.cs.sam.core.SamReferenceTable
 
getReferenceTable() - Method in interface edu.cornell.cs.sam.core.Program
Returns the references table
getReferenceTable() - Method in class edu.cornell.cs.sam.core.SamProgram
 
getRegisters() - Method in interface edu.cornell.cs.sam.core.Processor
Returns a new copy of the register array.
getRegisters() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
getRegisters() - Method in class edu.cornell.cs.sam.utils.ProgramState
 
getReturnValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getReturnValue() - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
getSaveFile(Component, String, String, File, int) - Method in class edu.cornell.cs.sam.ui.components.FileDialogManager
Runs file selection dialog and returns the File selected or null if canceled
getScriptFile() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getSize() - Method in class edu.cornell.cs.sam.core.HeapAllocator.Allocation
Gets the size of this allocation
getSourceFile() - Method in class edu.cornell.cs.sam.ui.TestScript
Returns the file this TestScript is using
getStack() - Method in interface edu.cornell.cs.sam.core.Memory
Returns a list containing the current stack
getStack() - Method in class edu.cornell.cs.sam.core.SamMemory
 
getStack() - Method in class edu.cornell.cs.sam.utils.ProgramState
 
getStateSteps() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getString() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getString() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not a string)
getSymbols() - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
getSymbols() - Method in interface edu.cornell.cs.sam.core.SymbolTable
Returns the symbols contained in this table.
getSymbolTable() - Method in interface edu.cornell.cs.sam.core.Program
Returns the symbol table
getSymbolTable() - Method in class edu.cornell.cs.sam.core.SamProgram
 
getSys() - Method in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
getSystem() - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Gets the System object of this instruction
getSystem() - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
getSystem() - Method in interface edu.cornell.cs.sam.core.Memory
Return the Sys object associated with this memory.
getSystem() - Method in interface edu.cornell.cs.sam.core.Processor
Returns the system object of this processor
getSystem() - Method in class edu.cornell.cs.sam.core.SamMemory
 
getSystem() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
getTest(String) - Method in class edu.cornell.cs.sam.ui.TestScript
Return a specific test
getTestName() - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
getTestNames() - Method in class edu.cornell.cs.sam.ui.TestScript
Return the list of test names
getTestResult() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getTestResult(TestScript.TestResult) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
getTests() - Method in class edu.cornell.cs.sam.ui.TestScript
Return the vector of the tests
getTests() - Method in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
getText() - Method in class edu.cornell.cs.sam.ui.components.MemoryCell
 
getToolTip() - Method in class edu.cornell.cs.sam.ui.components.MemoryCell
 
getType() - Method in class edu.cornell.cs.sam.core.Memory.Data
Returns the type of this data object
getType(int) - Method in interface edu.cornell.cs.sam.core.Memory
Returns the type at the requested memory position
getType(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
getValue() - Method in class edu.cornell.cs.sam.core.Memory.Data
Returns the value of this data object as stored in memory
getValue(int) - Method in interface edu.cornell.cs.sam.core.Memory
Returns the value at the requested memory position
getValue(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
getWhitespaceBeforeToken() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getWhitespaceBeforeToken() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the whitespace in the file before the current token.
getWord() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
getWord() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the next token (unless it is not a word)
getWrite() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
GridBagUtils - Class in edu.cornell.cs.sam.ui.components
 
GridBagUtils() - Constructor for class edu.cornell.cs.sam.ui.components.GridBagUtils
 

H

HALT - Static variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
HALT - Static variable in interface edu.cornell.cs.sam.core.Processor
The halt register - set to one to stop the processor
HeapAllocator - Interface in edu.cornell.cs.sam.core
The HeapAllocator manages the SaM heap
HeapAllocator.Allocation - Class in edu.cornell.cs.sam.core
Represents a heap allocation
HeapAllocator.Allocation(int, int) - Constructor for class edu.cornell.cs.sam.core.HeapAllocator.Allocation
Create a new allocation

I

inc(int) - Method in interface edu.cornell.cs.sam.core.Processor
Increments the register and returns the new value.
inc(int) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
increaseDisplayMenuItem - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
init() - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
init() - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Resets any internal state in the heap allocator to initial state.
init() - Method in interface edu.cornell.cs.sam.core.Memory
Initializes memory to default state
init() - Method in interface edu.cornell.cs.sam.core.Processor
Initializes all registers to their initial state
init() - Method in class edu.cornell.cs.sam.core.SamMemory
 
init() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
Instruction - Interface in edu.cornell.cs.sam.core.instructions
Interface for an instruction to be executed
instructionList - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
instructionListPanel - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
instructionListView - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
instructions - Static variable in class edu.cornell.cs.sam.core.SamAssembler
 
interrupt() - Method in class edu.cornell.cs.sam.utils.SamThread
Interrupts the thread
interruptRequested() - Method in class edu.cornell.cs.sam.utils.SamThread
Check if an interrupt has been requested
intValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.INT
 
intValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.MA
 
intValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.PA
 
ioSuccessful - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
ioSuccessful - Variable in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
isAutoSortingEnabled() - Method in class edu.cornell.cs.sam.ui.TestScript
Returns whether auto sorting is enabled
isCompleted() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
isExecutable() - Method in interface edu.cornell.cs.sam.core.Program
Returns whether this program can be executed - it is executable if all symbols have been resolved.
isExecutable() - Method in class edu.cornell.cs.sam.core.SamProgram
 
isIoSuccessful() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
isIOSuccessful() - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
isStackCleared() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
isStackCleared() - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 

L

lineNo() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
lineNo() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the line number of the last token requested
load(Program) - Method in interface edu.cornell.cs.sam.core.Processor
Loads the program that the processor must execute
load(Program) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
load(InputStream) - Method in class edu.cornell.cs.sam.ui.TestScript
Loads the provided input stream
loadFile(File) - Method in class edu.cornell.cs.sam.ui.SamCapture
Loads the provided file
loadFile(File) - Method in class edu.cornell.cs.sam.ui.SamGUI
Loads the provided file
loadFile(File) - Method in class edu.cornell.cs.sam.ui.SamTester
 
loadFromProperties(Properties) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
loadFromProperties(Properties, boolean) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
loadProgram(Program, String) - Method in class edu.cornell.cs.sam.ui.SamGUI
Loads the provided program

M

main(String[]) - Static method in class edu.cornell.cs.sam.ui.SamText
 
main(String[]) - Static method in class edu.cornell.cs.sam.ui.SamUI
 
mainPanel - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
mainPanel - Variable in class edu.cornell.cs.sam.ui.SamTester
 
malloc(int) - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
malloc(int) - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Allocates the specified amount of memory on the heap, and pushes its address on the stack.
match(char) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
match(String) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
match(char) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Removes the next token if it is an operator, and matches the given character.
match(String) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Removes the next token if it is a word, and matches the given string.
mem - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
mem() - Method in class edu.cornell.cs.sam.core.Sys
Returns the shared memory (or null if no memory)
mem - Variable in class edu.cornell.cs.sam.ui.TestScript
 
Memory - Interface in edu.cornell.cs.sam.core
The Memory interface provides low-level memory access methods
Memory.Data - Class in edu.cornell.cs.sam.core
Represents memory data
Memory.Data(int, Memory.Type) - Constructor for class edu.cornell.cs.sam.core.Memory.Data
Create a new memory data object
Memory.Type - Enum in edu.cornell.cs.sam.core
Represents memory type
MemoryCell - Class in edu.cornell.cs.sam.ui.components
 
MemoryCell(Memory.Data, int) - Constructor for class edu.cornell.cs.sam.ui.components.MemoryCell
 
MEMORYLIMIT - Static variable in interface edu.cornell.cs.sam.core.Memory
The upper limit of memory
modified - Variable in class edu.cornell.cs.sam.ui.SamTester
 

N

name - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
newFileMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
newIOButtonPanel(int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
newIOList(int) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
newScript() - Method in class edu.cornell.cs.sam.ui.SamTester
 
newTypeList(boolean) - Static method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
nextLineNo() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
nextLineNo() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the line number of the next token to be read

O

op - Variable in class edu.cornell.cs.sam.core.instructions.SamCharInstruction
 
op - Variable in class edu.cornell.cs.sam.core.instructions.SamFloatInstruction
 
op - Variable in class edu.cornell.cs.sam.core.instructions.SamIntInstruction
 
op - Variable in class edu.cornell.cs.sam.core.instructions.SamStringInstruction
 
openButton - Variable in class edu.cornell.cs.sam.ui.SamTester
 
openFileMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
openScript() - Method in class edu.cornell.cs.sam.ui.SamTester
 
openSimMenuItem - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
openTestDetails(int) - Method in class edu.cornell.cs.sam.ui.SamTester
 

P

PC - Static variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
PC - Static variable in interface edu.cornell.cs.sam.core.Processor
The program counter - contains the address of the instruction to be executed next
peekAtKind() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
peekAtKind() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Returns the type of the next token
pop() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a data object off the stack
pop() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popCH() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a character off the stack
popCH() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popFLOAT() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a floating pointer number off the stack
popFLOAT() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popINT() - Method in interface edu.cornell.cs.sam.core.Memory
Pops an integer off the stack
popINT() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popMA() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a memory address off the stack
popMA() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popPA() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a program address off the stack
popPA() - Method in class edu.cornell.cs.sam.core.SamMemory
 
popValue() - Method in interface edu.cornell.cs.sam.core.Memory
Pops a value off the stack
popValue() - Method in class edu.cornell.cs.sam.core.SamMemory
 
printXML(String, PrintWriter, boolean) - Static method in class edu.cornell.cs.sam.utils.XMLUtils
 
printXML(char, PrintWriter, boolean) - Static method in class edu.cornell.cs.sam.utils.XMLUtils
 
proc - Variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
Provides access to the processor
proc - Variable in class edu.cornell.cs.sam.ui.TestScript
 
proc - Variable in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
Processor - Interface in edu.cornell.cs.sam.core
The processor is responsible for stepping through instructions, and manipulating the stack and registers.
processTest(Element) - Method in class edu.cornell.cs.sam.ui.TestScript
Processes an individual test element
prog - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
Program - Interface in edu.cornell.cs.sam.core
The program object contains the symbol table for the program and the instructions to execute
program - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
ProgramState - Class in edu.cornell.cs.sam.utils
Holds the processor state
ProgramState(int, List<? extends Memory.Data>, int[]) - Constructor for class edu.cornell.cs.sam.utils.ProgramState
 
push(Memory.Data) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a data object on the stack
push(int, Memory.Type) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a value/type pair on the stack
push(Memory.Data) - Method in class edu.cornell.cs.sam.core.SamMemory
 
push(int, Memory.Type) - Method in class edu.cornell.cs.sam.core.SamMemory
 
pushBack() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
pushBack() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Pushes the last token requested back.
pushCH(char) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a character on the stack
pushCH(char) - Method in class edu.cornell.cs.sam.core.SamMemory
 
pushFLOAT(float) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a floating pointer number on the stack
pushFLOAT(float) - Method in class edu.cornell.cs.sam.core.SamMemory
 
pushINT(int) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes an integer on the stack
pushINT(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
pushMA(int) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a memory address on the stack
pushMA(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
pushPA(int) - Method in interface edu.cornell.cs.sam.core.Memory
Pushes a program address on the stack
pushPA(int) - Method in class edu.cornell.cs.sam.core.SamMemory
 

R

read - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
READ - Static variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
readAdd - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
readChar() - Method in interface edu.cornell.cs.sam.core.Video
Request character input from the video implementation
readChar() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
readChar() - Method in class edu.cornell.cs.sam.ui.SamText
 
readChar() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
readDelete - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
readFloat() - Method in interface edu.cornell.cs.sam.core.Video
Request floating point input from the video implementation
readFloat() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
readFloat() - Method in class edu.cornell.cs.sam.ui.SamText
 
readFloat() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
readInt() - Method in interface edu.cornell.cs.sam.core.Video
Requests integer input from the video implementation
readInt() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
readInt() - Method in class edu.cornell.cs.sam.ui.SamText
 
readInt() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
readList - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
readString() - Method in interface edu.cornell.cs.sam.core.Video
Request String input from the video implementation
readString() - Method in class edu.cornell.cs.sam.ui.SamGUI
 
readString() - Method in class edu.cornell.cs.sam.ui.SamText
 
readString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
ReferenceTable - Interface in edu.cornell.cs.sam.core
The Reference Table stores information about unresolved symbols - it keeps track of references to each symbol.
register(int, T) - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
REGISTERS - Static variable in class edu.cornell.cs.sam.core.SamProcessor
 
RegistrationSystem - Class in edu.cornell.cs.sam.utils
 
RegistrationSystem() - Constructor for class edu.cornell.cs.sam.utils.RegistrationSystem
 
removeDisplayMenuItem - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
repaint(long, int, int, int, int) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
repaint(Rectangle) - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
resetState() - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
resolveAddress(String) - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
resolveAddress(String) - Method in interface edu.cornell.cs.sam.core.SymbolTable
Returns an address for the given symbol
resolveReferences() - Method in interface edu.cornell.cs.sam.core.Program
Resolves references in this program from the symbol table
resolveReferences() - Method in class edu.cornell.cs.sam.core.SamProgram
 
resolveReferencesFrom(Program) - Method in interface edu.cornell.cs.sam.core.Program
Resolves prog's references from the symbol table
resolveReferencesFrom(Program) - Method in class edu.cornell.cs.sam.core.SamProgram
 
resolveSymbol(int) - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
resolveSymbol(int) - Method in interface edu.cornell.cs.sam.core.SymbolTable
Return one symbol for a given address
resolveSymbols(int) - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
resolveSymbols(int) - Method in interface edu.cornell.cs.sam.core.SymbolTable
Returns all symbols for a given address
returnValue - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
returnValue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
returnValue - Variable in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
returnValueTextField - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
returnValueTypeList - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
revalidate() - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
rqueue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
run() - Method in interface edu.cornell.cs.sam.core.Processor
Execute the whole program.
run() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
run(Sys, SamThread) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
run() - Method in class edu.cornell.cs.sam.utils.SamThread
Initiates thread execution.
runButton - Variable in class edu.cornell.cs.sam.ui.SamTester
 
runReadQueue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
runRunMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
runTests() - Method in class edu.cornell.cs.sam.ui.SamTester
 
runWriteQueue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 

S

SAM_ADD - Class in edu.cornell.cs.sam.core.instructions
Adds two locations on the stack, taking into account type promotion to MA or PA.
SAM_ADD() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ADD
 
SAM_ADDF - Class in edu.cornell.cs.sam.core.instructions
Adds two floating point numbers on the stack
SAM_ADDF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ADDF
 
SAM_ADDSP - Class in edu.cornell.cs.sam.core.instructions
Adds an integer to the stack pointer
SAM_ADDSP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ADDSP
 
SAM_AND - Class in edu.cornell.cs.sam.core.instructions
Performs a logical AND on two stack locations
SAM_AND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_AND
 
SAM_BITAND - Class in edu.cornell.cs.sam.core.instructions
Performs bitwise AND on two stack locations
SAM_BITAND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITAND
 
SAM_BITNAND - Class in edu.cornell.cs.sam.core.instructions
Performs a bitwise NAND on two stack locations
SAM_BITNAND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITNAND
 
SAM_BITNOR - Class in edu.cornell.cs.sam.core.instructions
Performs bitwise NOR on two locations on the stack
SAM_BITNOR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITNOR
 
SAM_BITNOT - Class in edu.cornell.cs.sam.core.instructions
Performs bitwise negation on the top of the stack
SAM_BITNOT() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITNOT
 
SAM_BITOR - Class in edu.cornell.cs.sam.core.instructions
Performs bitwise OR on two locations of the stack
SAM_BITOR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITOR
 
SAM_BITXOR - Class in edu.cornell.cs.sam.core.instructions
Performs bitwise XOR on two locations of the stack
SAM_BITXOR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_BITXOR
 
SAM_CMP - Class in edu.cornell.cs.sam.core.instructions
Compares two integers, and places -1, 0, or 1 on the stack if the first is respectively smaller, equal, or larger than the second (top)
SAM_CMP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_CMP
 
SAM_CMPF - Class in edu.cornell.cs.sam.core.instructions
Compares two floating pointer numbers, and places -1, 0, or 1 on the stack if the first is respectively smaller, equal, or larger than the second (top)
SAM_CMPF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_CMPF
 
SAM_DIV - Class in edu.cornell.cs.sam.core.instructions
Divides two integers on the stack
SAM_DIV() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_DIV
 
SAM_DIVF - Class in edu.cornell.cs.sam.core.instructions
Divides two floating point numbers.
SAM_DIVF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_DIVF
 
SAM_DUP - Class in edu.cornell.cs.sam.core.instructions
Duplicates the top stack value
SAM_DUP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_DUP
 
SAM_EQUAL - Class in edu.cornell.cs.sam.core.instructions
Checks if two values are equal
SAM_EQUAL() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_EQUAL
 
SAM_FREE - Class in edu.cornell.cs.sam.core.instructions
Deallocates the given address, which was allocated by SAM_MALLOC
SAM_FREE() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_FREE
 
SAM_FTOI - Class in edu.cornell.cs.sam.core.instructions
Converts a floating point value to an integer by truncating
SAM_FTOI() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_FTOI
 
SAM_FTOIR - Class in edu.cornell.cs.sam.core.instructions
Converts a floating point number to an integer by rounding.
SAM_FTOIR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_FTOIR
 
SAM_GREATER - Class in edu.cornell.cs.sam.core.instructions
Checks if the bottom integer is greater than the top integer
SAM_GREATER() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_GREATER
 
SAM_ISNEG - Class in edu.cornell.cs.sam.core.instructions
Checks if an integer is negative
SAM_ISNEG() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ISNEG
 
SAM_ISNIL - Class in edu.cornell.cs.sam.core.instructions
Checks if a value is zero
SAM_ISNIL() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ISNIL
 
SAM_ISPOS - Class in edu.cornell.cs.sam.core.instructions
Checks if an integer is positive
SAM_ISPOS() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ISPOS
 
SAM_ITOF - Class in edu.cornell.cs.sam.core.instructions
Converts an integer to a floating point number
SAM_ITOF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_ITOF
 
SAM_JSR - Class in edu.cornell.cs.sam.core.instructions
Jumps to the opcode address, saving the old PC
SAM_JSR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_JSR
 
SAM_JSRIND - Class in edu.cornell.cs.sam.core.instructions
Jumps to the address on top of the stack, saving the old PC.
SAM_JSRIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_JSRIND
 
SAM_JUMP - Class in edu.cornell.cs.sam.core.instructions
Jumps to the opcode address
SAM_JUMP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_JUMP
 
SAM_JUMPC - Class in edu.cornell.cs.sam.core.instructions
Jumps to the opcode address if the top of the stack is true (nonzero)
SAM_JUMPC() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_JUMPC
 
SAM_JUMPIND - Class in edu.cornell.cs.sam.core.instructions
Jumps to the address on top of the stack
SAM_JUMPIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_JUMPIND
 
SAM_LESS - Class in edu.cornell.cs.sam.core.instructions
Checks if the bottom integer is smaller than the top integer
SAM_LESS() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_LESS
 
SAM_LINK - Class in edu.cornell.cs.sam.core.instructions
Sets the FBR to the current SP, saving the old FBR on the stack
SAM_LINK() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_LINK
 
SAM_LSHIFT - Class in edu.cornell.cs.sam.core.instructions
Shifts an integer op bits to the left
SAM_LSHIFT() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_LSHIFT
 
SAM_LSHIFTIND - Class in edu.cornell.cs.sam.core.instructions
Shifts left the integer below the top of the stack as many bits as specified by the top of the stack
SAM_LSHIFTIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_LSHIFTIND
 
SAM_MALLOC - Class in edu.cornell.cs.sam.core.instructions
Allocates the requested memory space on the heap and pushes the resulting address on the stack
SAM_MALLOC() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_MALLOC
 
SAM_MOD - Class in edu.cornell.cs.sam.core.instructions
Performs modulus on two integers
SAM_MOD() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_MOD
 
SAM_NAND - Class in edu.cornell.cs.sam.core.instructions
Performs logical NAND on two integers
SAM_NAND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_NAND
 
SAM_NOR - Class in edu.cornell.cs.sam.core.instructions
Performs logical NOR on two integers
SAM_NOR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_NOR
 
SAM_NOT - Class in edu.cornell.cs.sam.core.instructions
Negates an integer (logical NOT)
SAM_NOT() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_NOT
 
SAM_OR - Class in edu.cornell.cs.sam.core.instructions
Performs logical OR on two integers
SAM_OR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_OR
 
SAM_POPFBR - Class in edu.cornell.cs.sam.core.instructions
Pops the FBR off the stack
SAM_POPFBR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_POPFBR
 
SAM_POPSP - Class in edu.cornell.cs.sam.core.instructions
Restores the SP to the top value on the stack
SAM_POPSP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_POPSP
 
SAM_PUSHABS - Class in edu.cornell.cs.sam.core.instructions
Pushes the value at the operand address on the stack
SAM_PUSHABS() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHABS
 
SAM_PUSHFBR - Class in edu.cornell.cs.sam.core.instructions
Pushes the FBR on the stack
SAM_PUSHFBR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHFBR
 
SAM_PUSHIMM - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand integer on the stack
SAM_PUSHIMM() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMM
 
SAM_PUSHIMMCH - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand character on the stack
SAM_PUSHIMMCH() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMCH
 
SAM_PUSHIMMF - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand floating point number on the stack
SAM_PUSHIMMF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMF
 
SAM_PUSHIMMMA - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand memory address on the stack
SAM_PUSHIMMMA() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMMA
 
SAM_PUSHIMMPA - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand program address on the stack
SAM_PUSHIMMPA() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMPA
 
SAM_PUSHIMMSTR - Class in edu.cornell.cs.sam.core.instructions
Pushes the operand string on the heap, and store its address on the stack
SAM_PUSHIMMSTR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIMMSTR
 
SAM_PUSHIND - Class in edu.cornell.cs.sam.core.instructions
Pushes the value at the address on top of the stack
SAM_PUSHIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHIND
 
SAM_PUSHOFF - Class in edu.cornell.cs.sam.core.instructions
Pushes the value at the operand offset from the FBR on top of the stack
SAM_PUSHOFF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHOFF
 
SAM_PUSHSP - Class in edu.cornell.cs.sam.core.instructions
Save the stack pointer on the stack
SAM_PUSHSP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_PUSHSP
 
SAM_READ - Class in edu.cornell.cs.sam.core.instructions
Reads an integer from the video interface, and pushes that on the stack
SAM_READ() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_READ
 
SAM_READCH - Class in edu.cornell.cs.sam.core.instructions
Reads a character from the video interface, and pushes it on the stack
SAM_READCH() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_READCH
 
SAM_READF - Class in edu.cornell.cs.sam.core.instructions
Reads a floating point number from the video interface, and pushes that on the stack
SAM_READF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_READF
 
SAM_READSTR - Class in edu.cornell.cs.sam.core.instructions
Reads a string from the video interface, stores that on the heap, and places its address on the stack
SAM_READSTR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_READSTR
 
SAM_RSHIFT - Class in edu.cornell.cs.sam.core.instructions
Shifts an integer op bits to the right
SAM_RSHIFT() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_RSHIFT
 
SAM_RSHIFTIND - Class in edu.cornell.cs.sam.core.instructions
Shifts right the integer below the top of the stack as many bits as specified by the top of the stack
SAM_RSHIFTIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_RSHIFTIND
 
SAM_RST - Class in edu.cornell.cs.sam.core.instructions
Resets execution to the address on top of the stack
SAM_RST() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_RST
 
SAM_SKIP - Class in edu.cornell.cs.sam.core.instructions
Pops a number off the stack, and skips that many instructions
SAM_SKIP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_SKIP
 
SAM_STOP - Class in edu.cornell.cs.sam.core.instructions
Stops execution
SAM_STOP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_STOP
 
SAM_STOREABS - Class in edu.cornell.cs.sam.core.instructions
Stores the value on top of the stack at the operand address
SAM_STOREABS() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_STOREABS
 
SAM_STOREIND - Class in edu.cornell.cs.sam.core.instructions
Stores the value on top of the stack at the address stored below it
SAM_STOREIND() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_STOREIND
 
SAM_STOREOFF - Class in edu.cornell.cs.sam.core.instructions
Stores the value on top of the stack at the operand offset from the FBR
SAM_STOREOFF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_STOREOFF
 
SAM_SUB - Class in edu.cornell.cs.sam.core.instructions
Subtracts the top of the stack from the bottom, taking into account type promotion to MA or PA
SAM_SUB() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_SUB
 
SAM_SUBF - Class in edu.cornell.cs.sam.core.instructions
Subtracts two floating point numbers
SAM_SUBF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_SUBF
 
SAM_SWAP - Class in edu.cornell.cs.sam.core.instructions
Swaps the top two values of the stack
SAM_SWAP() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_SWAP
 
SAM_TIMES - Class in edu.cornell.cs.sam.core.instructions
Multiplies two integers
SAM_TIMES() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_TIMES
 
SAM_TIMESF - Class in edu.cornell.cs.sam.core.instructions
Multiplies two floating point numbers
SAM_TIMESF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_TIMESF
 
SAM_UNLINK - Class in edu.cornell.cs.sam.core.instructions
Restores the FBR from the stack
SAM_UNLINK() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_UNLINK
 
SAM_VERSION - Static variable in class edu.cornell.cs.sam.core.Sys
The version of the SaM Core
SAM_WRITE - Class in edu.cornell.cs.sam.core.instructions
Pops an integer off the stack, and writes it to the video interface
SAM_WRITE() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_WRITE
 
SAM_WRITECH - Class in edu.cornell.cs.sam.core.instructions
Pops a character off the stack, and writes it to the video interface
SAM_WRITECH() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_WRITECH
 
SAM_WRITEF - Class in edu.cornell.cs.sam.core.instructions
Pops a floating point number off the stack and writes it to the video interface
SAM_WRITEF() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_WRITEF
 
SAM_WRITESTR - Class in edu.cornell.cs.sam.core.instructions
Pops the address of a string off the stack, retrieves the string, and prints it on the video interface
SAM_WRITESTR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_WRITESTR
 
SAM_XOR - Class in edu.cornell.cs.sam.core.instructions
Performs logical XOR on two integers
SAM_XOR() - Constructor for class edu.cornell.cs.sam.core.instructions.SAM_XOR
 
SamAboutDialog - Class in edu.cornell.cs.sam.ui.components
 
SamAboutDialog(String, String, String, JFrame) - Constructor for class edu.cornell.cs.sam.ui.components.SamAboutDialog
 
SamAddressInstruction - Class in edu.cornell.cs.sam.core.instructions
All instructions with a program address operand derive from this class.
SamAddressInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamAddressInstruction
 
SamAssembler - Class in edu.cornell.cs.sam.core
The SamAssembler is responsible for reading in a file and creating a Program object that can then be sent to the Processor for execution
SamAssembler() - Constructor for class edu.cornell.cs.sam.core.SamAssembler
 
SamAssembler.SamInstructionCache - Class in edu.cornell.cs.sam.core
 
SamAssembler.SamInstructionCache() - Constructor for class edu.cornell.cs.sam.core.SamAssembler.SamInstructionCache
 
SamCapture - Class in edu.cornell.cs.sam.ui
Allows the display of past program states
SamCapture() - Constructor for class edu.cornell.cs.sam.ui.SamCapture
Creates a new SamCapture
SamCharInstruction - Class in edu.cornell.cs.sam.core.instructions
All instructions with a character operand derive from this class
SamCharInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamCharInstruction
 
SamColorReferenceDialog - Class in edu.cornell.cs.sam.ui.components
Ths is a dialog box that includes the reference for the colors use in the stack and heap
SamColorReferenceDialog(JFrame) - Constructor for class edu.cornell.cs.sam.ui.components.SamColorReferenceDialog
 
SamFloatInstruction - Class in edu.cornell.cs.sam.core.instructions
All instructions with a floating point operand derive from this class
SamFloatInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamFloatInstruction
 
SamGUI - Class in edu.cornell.cs.sam.ui
Provides a GUI for the SaM Simulator that can run SaM programs and capture their state after each instruction execution for later review.
SamGUI(Sys) - Constructor for class edu.cornell.cs.sam.ui.SamGUI
Creates a new SamGUI with an existing system Use start() to actually show the window Use loadFile() to load a file at startup
SamGUI.BreakpointList - Class in edu.cornell.cs.sam.ui
Stores breakpoints and provides convenience functions We currently use a hashtable for fast access with key=PC of break and value=Boolean(true)
SamGUI.BreakpointList() - Constructor for class edu.cornell.cs.sam.ui.SamGUI.BreakpointList
 
SamGUI.RunThread - Class in edu.cornell.cs.sam.ui
Allows a GUI to run a program with breakpoints and with the ability to stop execution at any time
SamGUI.RunThread(SamThread.ThreadParent, Sys, int) - Constructor for class edu.cornell.cs.sam.ui.SamGUI.RunThread
Creates a new thread
SamHeapPanel - Class in edu.cornell.cs.sam.ui.components
 
SamHeapPanel() - Constructor for class edu.cornell.cs.sam.ui.components.SamHeapPanel
 
SamInstruction - Class in edu.cornell.cs.sam.core.instructions
Base class for all SamInstructions Defines common features such as shortcut variables and methods, toString(), name, cpu/mem access, and an abstract exec().
SamInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamInstruction
 
SamIntInstruction - Class in edu.cornell.cs.sam.core.instructions
All instructions with an integer operand are derived from this class.
SamIntInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamIntInstruction
 
SamMemory - Class in edu.cornell.cs.sam.core
Memory implementation: Integer Array - Alternating data/type fields, 32-bit wide - Even addresses contain type - Odd addresses contain data
SamMemory(Sys) - Constructor for class edu.cornell.cs.sam.core.SamMemory
 
SamProcessor - Class in edu.cornell.cs.sam.core
Implementation of a SaM Processor
SamProcessor(Sys) - Constructor for class edu.cornell.cs.sam.core.SamProcessor
 
SamProgram - Class in edu.cornell.cs.sam.core
Implementation of Program using an ArrayList for storage.
SamProgram() - Constructor for class edu.cornell.cs.sam.core.SamProgram
 
SamReferenceTable - Class in edu.cornell.cs.sam.core
Reference table implementation using a hashtable of array lists with references.
SamReferenceTable() - Constructor for class edu.cornell.cs.sam.core.SamReferenceTable
 
SamRegistersPanel - Class in edu.cornell.cs.sam.ui.components
 
SamRegistersPanel() - Constructor for class edu.cornell.cs.sam.ui.components.SamRegistersPanel
 
SamStackPanel - Class in edu.cornell.cs.sam.ui.components
 
SamStackPanel() - Constructor for class edu.cornell.cs.sam.ui.components.SamStackPanel
 
SamStringInstruction - Class in edu.cornell.cs.sam.core.instructions
All instructions with a String operand derive from this class
SamStringInstruction() - Constructor for class edu.cornell.cs.sam.core.instructions.SamStringInstruction
 
SamSymbolTable - Class in edu.cornell.cs.sam.core
SymbolTable implementation using two HashMaps, one for forward lookup and one for reverse.
SamSymbolTable() - Constructor for class edu.cornell.cs.sam.core.SamSymbolTable
 
SamTester - Class in edu.cornell.cs.sam.ui
Provides a GUI for testing multiple files.
SamTester() - Constructor for class edu.cornell.cs.sam.ui.SamTester
 
SamTester.AddTestDialog - Class in edu.cornell.cs.sam.ui
 
SamTester.AddTestDialog(TestScript, SamTester) - Constructor for class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
SamTester.AddTestDialog.IOType - Enum in edu.cornell.cs.sam.ui
 
SamText - Class in edu.cornell.cs.sam.ui
This is a front end for executing a SaM program from a console
SamText() - Constructor for class edu.cornell.cs.sam.ui.SamText
 
SamThread - Class in edu.cornell.cs.sam.utils
The base class for threads in SaM GUIs.
SamThread() - Constructor for class edu.cornell.cs.sam.utils.SamThread
 
SamThread.ThreadParent - Interface in edu.cornell.cs.sam.utils
The parent of a thread
SamTokenizer - Class in edu.cornell.cs.sam.io
This is a SamTokenizer implementation that has full backwards/forwards mobility and loads everything into memory as soon as it is created.
SamTokenizer(String, SamTokenizer.TokenizerOptions...) - Constructor for class edu.cornell.cs.sam.io.SamTokenizer
Creates a new SamTokenizer with a file for a source
SamTokenizer(Reader, SamTokenizer.TokenizerOptions...) - Constructor for class edu.cornell.cs.sam.io.SamTokenizer
Creates a new SamTokenizer with a Reader as a source
SamTokenizer(SamTokenizer.TokenizerOptions...) - Constructor for class edu.cornell.cs.sam.io.SamTokenizer
Creates a new SamTokenizer with System.in as a source
SamTokenizer.TokenizerOptions - Enum in edu.cornell.cs.sam.io
 
SamUI - Class in edu.cornell.cs.sam.ui
This provides various shared functions used among all the SaM UI classes
SamUI() - Constructor for class edu.cornell.cs.sam.ui.SamUI
 
SamUI.Component - Interface in edu.cornell.cs.sam.ui
 
save(File) - Method in class edu.cornell.cs.sam.ui.SamGUI
Saves the provided file
save(File) - Method in class edu.cornell.cs.sam.ui.TestScript
Saves the test script to a file
saveAsFileMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
saveAsMenuItem - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
saveCapture() - Method in class edu.cornell.cs.sam.ui.SamCapture
Saves the provided file
saveFileMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
saveScript(boolean) - Method in class edu.cornell.cs.sam.ui.SamTester
 
saveToProperties() - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
saveToProperties(boolean) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
scriptFile - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
scriptFileExtension - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
scriptFileTypeName - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
scrollList(JList) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
set(int, int) - Method in interface edu.cornell.cs.sam.core.Processor
Set value of the register
set(int, int) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
setBreakpointList(SamGUI.BreakpointList) - Method in class edu.cornell.cs.sam.ui.SamGUI.RunThread
 
setButtons(boolean, boolean, boolean, boolean, boolean) - Method in class edu.cornell.cs.sam.ui.SamTester
 
setFileName(String) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
setHeapAllocator(HeapAllocator) - Method in interface edu.cornell.cs.sam.core.Memory
Set the HeapAllocator object associated with this memory.
setHeapAllocator(HeapAllocator) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setIOSuccessful(boolean) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
setMem(int, Memory.Data) - Method in interface edu.cornell.cs.sam.core.Memory
Stores the given data object in memory
setMem(int, int, Memory.Type) - Method in interface edu.cornell.cs.sam.core.Memory
Stores the given value/type pair in memory
setMem(int, Memory.Data) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setMem(int, int, Memory.Type) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setMemory(Memory) - Method in class edu.cornell.cs.sam.core.ExplicitFreeAllocator
 
setMemory(Memory) - Method in interface edu.cornell.cs.sam.core.HeapAllocator
Sets the memory object of this allocator
setOperand(char) - Method in class edu.cornell.cs.sam.core.instructions.SamCharInstruction
Set the character operand of this instruction
setOperand(float) - Method in class edu.cornell.cs.sam.core.instructions.SamFloatInstruction
Set the floating point operand of this instruction
setOperand(int) - Method in class edu.cornell.cs.sam.core.instructions.SamIntInstruction
Sets the integer operand of this instruction
setOperand(String) - Method in class edu.cornell.cs.sam.core.instructions.SamStringInstruction
Set the String operand of this instruction
setParent(SamThread.ThreadParent) - Method in class edu.cornell.cs.sam.utils.SamThread
Sets the parent to the provided parent param parent The parent to set
setPermanentText(String) - Method in class edu.cornell.cs.sam.ui.components.StatusBar
Set text that won't be cleared till requested
setProgram(Program) - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Sets the program that this instruction is part of
setProgram(Program) - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
setRead(Collection<TestScript.Test.DataType>) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
setReferenceTable(ReferenceTable) - Method in interface edu.cornell.cs.sam.core.Program
Sets the references table
setReferenceTable(ReferenceTable) - Method in class edu.cornell.cs.sam.core.SamProgram
 
setReturnValue(TestScript.Test.DataType) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
setReturnValue(TestScript.Test.DataType) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
setScriptFile(TestScript) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
setSourceFile(File) - Method in class edu.cornell.cs.sam.ui.TestScript
Sets the file this testscript will load
setStackCleared(boolean) - Method in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
setStatus(int) - Method in class edu.cornell.cs.sam.ui.SamTester
 
setSymbolTable(SymbolTable) - Method in interface edu.cornell.cs.sam.core.Program
Sets the symbol table
setSymbolTable(SymbolTable) - Method in class edu.cornell.cs.sam.core.SamProgram
 
setSystem(Sys) - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Sets the System object for this instruction
setSystem(Sys) - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
setSystem(Sys) - Method in interface edu.cornell.cs.sam.core.Memory
Set the Sys object associated with this memory.
setSystem(Sys) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setTests(List<? extends TestScript.Test>) - Method in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
setText(String) - Method in class edu.cornell.cs.sam.ui.components.StatusBar
Sets the text - this will be removed after 5 seconds
setType(int, Memory.Type) - Method in interface edu.cornell.cs.sam.core.Memory
Sets this location to the given type
setType(int, Memory.Type) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setValue(int, int) - Method in interface edu.cornell.cs.sam.core.Memory
Stores the given value in memory
setValue(int, int) - Method in class edu.cornell.cs.sam.core.SamMemory
 
setVideo(Video) - Method in class edu.cornell.cs.sam.core.Sys
Sets the video card to the provided component
setWindowListeners() - Method in class edu.cornell.cs.sam.ui.SamTester
 
setWrite(Collection<TestScript.Test.DataType>) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
size() - Method in interface edu.cornell.cs.sam.core.ReferenceTable
Returns the size of the reference table
size() - Method in class edu.cornell.cs.sam.core.SamReferenceTable
 
skipToken() - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
skipToken() - Method in interface edu.cornell.cs.sam.io.Tokenizer
Skips the next token
sourceFile - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
sourceFile - Variable in class edu.cornell.cs.sam.ui.TestScript
 
SP - Static variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
SP - Static variable in interface edu.cornell.cs.sam.core.Processor
The stack pointer - points to the first free location on the stack
stackCleared - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
stackCleared - Variable in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
STACKLIMIT - Static variable in interface edu.cornell.cs.sam.core.Memory
The upper limit of the stack
start(List<? extends ProgramState>, Program, String) - Method in class edu.cornell.cs.sam.ui.SamCapture
 
start() - Method in class edu.cornell.cs.sam.ui.SamCapture
 
start() - Method in class edu.cornell.cs.sam.ui.SamGUI
Makes the window visible
start() - Method in class edu.cornell.cs.sam.ui.SamTester
 
startUI() - Static method in class edu.cornell.cs.sam.ui.SamCapture
Starts SamCapture without loading any file
startUI(String) - Static method in class edu.cornell.cs.sam.ui.SamCapture
Starts SamCapture and loads a file
startUI(List<? extends ProgramState>, Program, String) - Static method in class edu.cornell.cs.sam.ui.SamCapture
Starts the UI and loads a vector of steps, a program, and a filename
startUI() - Static method in class edu.cornell.cs.sam.ui.SamGUI
Starts SamGUI without a file loaded
startUI(String) - Static method in class edu.cornell.cs.sam.ui.SamGUI
Starts SamGUI and loads the provided file
startUI(Program, String, Sys) - Static method in class edu.cornell.cs.sam.ui.SamGUI
Starts SamGUI with the provided program/filename/system
startUI() - Static method in class edu.cornell.cs.sam.ui.SamTester
 
startUI(String) - Static method in class edu.cornell.cs.sam.ui.SamTester
 
stateSteps - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
STATUS_EMPTY - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
STATUS_LOADED - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
STATUS_NOTREADY - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
STATUS_RUNNING - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
StatusBar - Class in edu.cornell.cs.sam.ui.components
A status bar with a beveled border
StatusBar() - Constructor for class edu.cornell.cs.sam.ui.components.StatusBar
Creates a new status bar
statusBar - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
statusBar - Variable in class edu.cornell.cs.sam.ui.SamTester
 
step() - Method in interface edu.cornell.cs.sam.core.Processor
Executes one instruction.
step() - Method in class edu.cornell.cs.sam.core.SamProcessor
 
stepDisplays - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
steps - Variable in class edu.cornell.cs.sam.ui.SamCapture
 
stopButton - Variable in class edu.cornell.cs.sam.ui.SamTester
 
stopRunMenuItem - Variable in class edu.cornell.cs.sam.ui.SamTester
 
stopTests() - Method in class edu.cornell.cs.sam.ui.SamTester
 
stringValue() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.STR
 
SymbolTable - Interface in edu.cornell.cs.sam.core
The SymbolTable allows symbol to address and address to symbol lookups.
sys - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
Sys - Class in edu.cornell.cs.sam.core
The Sys class provides a centralized point of access to all the system components.
Sys() - Constructor for class edu.cornell.cs.sam.core.Sys
Creates a new single cpu Sys.
Sys(int) - Constructor for class edu.cornell.cs.sam.core.Sys
Creates a new Sys with processor(s) and memory
sys - Variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
Provides access to the system
sys - Variable in class edu.cornell.cs.sam.ui.TestScript
 
sys - Variable in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
SystemException - Exception in edu.cornell.cs.sam.core
Indicates there was a System error (cpu/memory error) during execution
SystemException() - Constructor for exception edu.cornell.cs.sam.core.SystemException
 
SystemException(String) - Constructor for exception edu.cornell.cs.sam.core.SystemException
 

T

test(char) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
test(String) - Method in class edu.cornell.cs.sam.io.SamTokenizer
 
test(char) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Checks if the next token is an operator and matches the character c.
test(String) - Method in interface edu.cornell.cs.sam.io.Tokenizer
Checks if the next token is a word and matches the string s.
testData - Variable in class edu.cornell.cs.sam.ui.SamTester
 
testFile - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
testFileExtension - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
testFileTypeName - Static variable in class edu.cornell.cs.sam.ui.SamTester
 
testName - Variable in class edu.cornell.cs.sam.ui.TestScript.TestResult
 
testNames - Variable in class edu.cornell.cs.sam.ui.TestScript
 
testRenderer - Variable in class edu.cornell.cs.sam.ui.SamTester
 
tests - Variable in class edu.cornell.cs.sam.ui.SamTester
 
tests - Variable in class edu.cornell.cs.sam.ui.TestScript
 
tests - Variable in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
testScript - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
testScript - Variable in class edu.cornell.cs.sam.ui.SamTester
 
TestScript - Class in edu.cornell.cs.sam.ui
This class holds an execution script to test multiple sam files and report the results.
TestScript() - Constructor for class edu.cornell.cs.sam.ui.TestScript
Creates a new TestScript
TestScript.Test - Class in edu.cornell.cs.sam.ui
Represents one single test
TestScript.Test(String) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test
 
TestScript.Test.CH - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.CH(char) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.CH
 
TestScript.Test.DataType - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.DataType() - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.DataType
 
TestScript.Test.FLOAT - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.FLOAT(float) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.FLOAT
 
TestScript.Test.INT - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.INT(int) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.INT
 
TestScript.Test.MA - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.MA(int) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.MA
 
TestScript.Test.PA - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.PA(int) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.PA
 
TestScript.Test.STR - Class in edu.cornell.cs.sam.ui
 
TestScript.Test.STR(String) - Constructor for class edu.cornell.cs.sam.ui.TestScript.Test.STR
 
TestScript.TestResult - Class in edu.cornell.cs.sam.ui
This stores results from a test case run
TestScript.TestResult(String) - Constructor for class edu.cornell.cs.sam.ui.TestScript.TestResult
 
TestScript.TestScriptException - Exception in edu.cornell.cs.sam.ui
 
TestScript.TestScriptException(String) - Constructor for exception edu.cornell.cs.sam.ui.TestScript.TestScriptException
 
TestScript.TestScriptException(String, Throwable) - Constructor for exception edu.cornell.cs.sam.ui.TestScript.TestScriptException
 
TestScript.TestThread - Class in edu.cornell.cs.sam.ui
 
TestScript.TestThread(SamThread.ThreadParent, Sys, List<? extends TestScript.Test>) - Constructor for class edu.cornell.cs.sam.ui.TestScript.TestThread
 
testsView - Variable in class edu.cornell.cs.sam.ui.SamTester
 
testThread - Variable in class edu.cornell.cs.sam.ui.SamTester
 
THREAD_BREAKPOINT - Static variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
 
THREAD_EXCEPTION - Static variable in class edu.cornell.cs.sam.utils.SamThread
A thread status indication there was an exception in the thread
THREAD_EXIT_OK - Static variable in class edu.cornell.cs.sam.utils.SamThread
A thread status indication successful completion
THREAD_INTERRUPTED - Static variable in class edu.cornell.cs.sam.utils.SamThread
A thread status indicating that the thread has been interrupted
THREAD_STEP - Static variable in class edu.cornell.cs.sam.ui.SamGUI.RunThread
 
THREAD_TEST_COMPLETED - Static variable in class edu.cornell.cs.sam.ui.TestScript.TestThread
 
threadEvent(int, Object) - Method in class edu.cornell.cs.sam.ui.SamGUI
 
threadEvent(int, Object) - Method in class edu.cornell.cs.sam.ui.SamTester
 
threadEvent(int, Object) - Method in interface edu.cornell.cs.sam.utils.SamThread.ThreadParent
Called when a thread event has occurred
toInt() - Method in enum edu.cornell.cs.sam.core.Memory.Type
Returns the integer code of this type
Tokenizer - Interface in edu.cornell.cs.sam.io
 
Tokenizer.TokenType - Enum in edu.cornell.cs.sam.io
Represents the type of a tokenizer token
TokenizerException - Exception in edu.cornell.cs.sam.io
Used for errors with the tokenizer
TokenizerException() - Constructor for exception edu.cornell.cs.sam.io.TokenizerException
 
TokenizerException(String) - Constructor for exception edu.cornell.cs.sam.io.TokenizerException
 
TokenizerException(int) - Constructor for exception edu.cornell.cs.sam.io.TokenizerException
 
TokenizerException(String, int) - Constructor for exception edu.cornell.cs.sam.io.TokenizerException
 
TokenParseException - Exception in edu.cornell.cs.sam.io
Exception that indicates error while parsing a token
TokenParseException(String, int) - Constructor for exception edu.cornell.cs.sam.io.TokenParseException
 
toString() - Method in exception edu.cornell.cs.sam.core.AssemblerException
 
toString() - Method in interface edu.cornell.cs.sam.core.instructions.Instruction
Prints out the text that represents this SaM instruction
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamAddressInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamCharInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamFloatInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamIntInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.instructions.SamStringInstruction
 
toString() - Method in class edu.cornell.cs.sam.core.Memory.Data
Returns a descriptive string of this data object
toString() - Method in interface edu.cornell.cs.sam.core.ReferenceTable
Returns a string version of the table
toString() - Method in class edu.cornell.cs.sam.core.SamProgram
 
toString() - Method in class edu.cornell.cs.sam.core.SamReferenceTable
 
toString() - Method in class edu.cornell.cs.sam.core.SamSymbolTable
 
toString() - Method in interface edu.cornell.cs.sam.core.SymbolTable
Returns a string version of the table
toString() - Method in exception edu.cornell.cs.sam.core.SystemException
 
toString() - Method in exception edu.cornell.cs.sam.io.TokenizerException
 
toString() - Method in enum edu.cornell.cs.sam.ui.SamTester.AddTestDialog.IOType
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.CH
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.FLOAT
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.INT
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.MA
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.PA
 
toString() - Method in class edu.cornell.cs.sam.ui.TestScript.Test.STR
 

U

UNIT_SIZE - Static variable in interface edu.cornell.cs.sam.core.Memory
Memory unit size in bits
unregister(int, Object) - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
unregister(int) - Static method in class edu.cornell.cs.sam.utils.RegistrationSystem
 
update(Memory) - Method in class edu.cornell.cs.sam.ui.components.SamHeapPanel
 
update(Processor) - Method in class edu.cornell.cs.sam.ui.components.SamRegistersPanel
 
update(ProgramState) - Method in class edu.cornell.cs.sam.ui.components.SamRegistersPanel
 
update(Memory) - Method in class edu.cornell.cs.sam.ui.components.SamStackPanel
 
update(ProgramState) - Method in class edu.cornell.cs.sam.ui.components.SamStackPanel
 
updateIOList(List<?>, JList) - Method in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
updateTable() - Method in class edu.cornell.cs.sam.ui.SamTester
 
updateTestStatus() - Method in class edu.cornell.cs.sam.ui.SamTester
 
updateTitle() - Method in class edu.cornell.cs.sam.ui.SamTester
 

V

validate() - Method in class edu.cornell.cs.sam.ui.components.CellRenderer
 
validTest - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
valueOf(String) - Static method in enum edu.cornell.cs.sam.core.Memory.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.cornell.cs.sam.io.SamTokenizer.TokenizerOptions
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.cornell.cs.sam.io.Tokenizer.TokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.cornell.cs.sam.ui.SamTester.AddTestDialog.IOType
Returns the enum constant of this type with the specified name.
values() - Static method in enum edu.cornell.cs.sam.core.Memory.Type
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.cornell.cs.sam.io.SamTokenizer.TokenizerOptions
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.cornell.cs.sam.io.Tokenizer.TokenType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.cornell.cs.sam.ui.SamTester.AddTestDialog.IOType
Returns an array containing the constants of this enum type, in the order they're declared.
verify(int, int) - Method in interface edu.cornell.cs.sam.core.Processor
Verifies if the value is valid for this registers and throws an exception if not.
verify(int, int) - Method in class edu.cornell.cs.sam.core.SamProcessor
 
video - Variable in class edu.cornell.cs.sam.core.instructions.SamInstruction
 
video() - Method in class edu.cornell.cs.sam.core.Sys
Returns the video card (or null if no video card)
Video - Interface in edu.cornell.cs.sam.core
The Video interface allows the processor to output data or to request input.

W

warning(String) - Method in class edu.cornell.cs.sam.ui.SamTester
 
wqueue - Variable in class edu.cornell.cs.sam.ui.TestScript.Test
 
write - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
WRITE - Static variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
writeAdd - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
writeChar(char) - Method in interface edu.cornell.cs.sam.core.Video
Writes character output to the video implementation
writeChar(char) - Method in class edu.cornell.cs.sam.ui.SamGUI
 
writeChar(char) - Method in class edu.cornell.cs.sam.ui.SamText
 
writeChar(char) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
writeDelete - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
writeFloat(float) - Method in interface edu.cornell.cs.sam.core.Video
Writes floating point output to the video implementation
writeFloat(float) - Method in class edu.cornell.cs.sam.ui.SamGUI
 
writeFloat(float) - Method in class edu.cornell.cs.sam.ui.SamText
 
writeFloat(float) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
writeInt(int) - Method in interface edu.cornell.cs.sam.core.Video
Writes integer output to the video implementation
writeInt(int) - Method in class edu.cornell.cs.sam.ui.SamGUI
 
writeInt(int) - Method in class edu.cornell.cs.sam.ui.SamText
 
writeInt(int) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
writeList - Variable in class edu.cornell.cs.sam.ui.SamTester.AddTestDialog
 
writeString(String) - Method in interface edu.cornell.cs.sam.core.Video
Writes string output to the video implementation
writeString(String) - Method in class edu.cornell.cs.sam.ui.SamGUI
 
writeString(String) - Method in class edu.cornell.cs.sam.ui.SamText
 
writeString(String) - Method in class edu.cornell.cs.sam.ui.TestScript.Test
 
writeXML(Node, PrintWriter) - Static method in class edu.cornell.cs.sam.utils.XMLUtils
Writes the XML for a node to the output stream with no doctype
writeXML(Node, PrintWriter, String, String) - Static method in class edu.cornell.cs.sam.utils.XMLUtils
Writes the XML for a node to the output stream

X

XMLUtils - Class in edu.cornell.cs.sam.utils
This class contains several abstract methods for writing XML files.
XMLUtils() - Constructor for class edu.cornell.cs.sam.utils.XMLUtils
 

A B C D E F G H I L M N O P R S T U V W X