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

A

accept(File) - Method in class ExampleFileFilter
Return true if this file should be shown in the directory pane, false if it shouldn't.
addExtension(String) - Method in class ExampleFileFilter
Adds a filetype "dot" extension to filter against.
ADDR_OFFSET - Static variable in class SCMainMem
 
assemble() - Method in class SCAssembler
 

B

BASE_ADDR - Static variable in class SCMainMem
 

C

COMMENT_END - Static variable in class SCAssembler
 
CPU - class CPU.
CPU simulates the central processing unit of SimpComp, which hosts and maintains registers, pc and ir.
CPU() - Constructor for class CPU
 
CPUTest - class CPUTest.
Junit tester for CPU.
CPUTest(String) - Constructor for class CPUTest
Constructor, required by Junit in order to run without GUI.

D

drawInputGUI(String) - Static method in class SCMainGUI
Displays a static prompt for a two characters input.

E

ExampleFileFilter - class ExampleFileFilter.
A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about.
ExampleFileFilter() - Constructor for class ExampleFileFilter
Creates a file filter.
ExampleFileFilter(String) - Constructor for class ExampleFileFilter
Creates a file filter that accepts files with the given extension.
ExampleFileFilter(String[]) - Constructor for class ExampleFileFilter
Creates a file filter from the given string array.
ExampleFileFilter(String[], String) - Constructor for class ExampleFileFilter
Creates a file filter from the given string array and description.
ExampleFileFilter(String, String) - Constructor for class ExampleFileFilter
Creates a file filter that accepts the given file type.

F

fixLength(String, int) - Static method in class SCFormatUtil
Converts a String argument to a specified length.

G

getByteAt(int) - Method in class SCMainMem
Retrieves a byte of data from a specified address location.
getByteAt(String) - Method in class SCMainMem
Retrieves a byte of data from a specified address location.
getDescription() - Method in class ExampleFileFilter
Returns the human readable description of this filter.
getExtension(File) - Method in class ExampleFileFilter
Return the extension portion of the file's name .
getFilename() - Method in class SCAssembler
Retrieves the name of file.
getFileName() - Method in class SimpComp
Returns the name of file currently opened.
getFlag() - Method in class CPU
Returns the current flag status (includes ZNOC) as an integer.
getIR() - Method in class CPU
Retrieves the instruction register (IR).
getOK() - Method in class SCAssembler
Returns the value of the OK check bit.
getParams() - Method in class CPU
Retrieves the parameters of the current instruction.
getPC() - Method in class CPU
Retrieves the program counter (PC).
getRegister() - Method in class CPU
Retrieves the register array.
getStdOut() - Method in class CPU
Returns the standard ouput.

H

hasSpace(String) - Static method in class SCFormatUtil
Checks if a String contains one or more white space characters.
hasTab(String) - Static method in class SCFormatUtil
Checks if a String contains one or more tab characters.

I

init() - Method in class TestInputApplet
 
isExtensionListInDescription() - Method in class ExampleFileFilter
Returns whether the extension list (.jpg, .gif, etc) should show up in the human readable description.
isValidObjCode(String) - Static method in class SCFormatUtil
Checks if a line of object code is valid.

L

LABEL_END - Static variable in class SCAssembler
 
launchSC() - Method in class SCAssembler
Launches the SimpComp simulator with filename.obj.
loadMainMem(String, SCMainMem) - Static method in class SimpComp
Opens a specified Object File (.obj) and populates the main memory.

M

main(String[]) - Static method in class CPUTest
 
main(String[]) - Static method in class SCAssembler
Main() used as test driver only.
main(String[]) - Static method in class SimpComp
Launches the SimpComp simulator.
MAX_ADDR - Static variable in class SCMainMem
 
MNEMONIC_END - Static variable in class SCAssembler
 

N

NUM - Static variable in class SCFormatUtil
 

O

openDstFile(String) - Static method in class SCFormatUtil
Opens/Creates destination file for output
openSrcFile(String) - Static method in class SCFormatUtil
Opens source file for input.
OPERANDS_END - Static variable in class SCAssembler
 

P

putByteAt(int, short) - Method in class SCMainMem
Puts a byte of data at a specified address location.
putByteAt(String, short) - Method in class SCMainMem
Puts a byte of data at a specified address location.

R

REG - Static variable in class SCFormatUtil
 
reset() - Method in class CPU
Resets all registers and flags to 0, program counter to 0x1000, stdI/O to empty.
reset() - Method in class SCMainMem
Resets the memory, each address to 0;
reset() - Method in class SimpComp
Resets all components.
run() - Method in class SimpComp
Overwrites the run() from Runnable.

S

SCAMainGUI - class SCAMainGUI.
 
SCAMainGUI(String, SCAssembler) - Constructor for class SCAMainGUI
Constructor, places all GUI components in appropriate Panels.
SCAssembler - class SCAssembler.
 
SCAssembler(String) - Constructor for class SCAssembler
 
SCFormatUtil - class SCFormatUtil.
 
SCFormatUtil() - Constructor for class SCFormatUtil
 
SCMainGUI - class SCMainGUI.
Primary GUI of the SimpComp Simulator.
SCMainGUI(SimpComp) - Constructor for class SCMainGUI
Constructor, places all GUI components in appropriate Panels.
SCMainMem - class SCMainMem.
SCmainMem simulates the main memory module of a SimpComp computer.
SCMainMem() - Constructor for class SCMainMem
Constructor, initializes the entire memory array to 0.
sequencer(SCMainMem) - Method in class CPU
Executes one instruction per call.
sequencerStep() - Method in class SimpComp
Invokes cpu.sequencer() and updates GUI's corresponding fields.
setDescription(String) - Method in class ExampleFileFilter
Sets the human readable description of this filter.
setExtensionListInDescription(boolean) - Method in class ExampleFileFilter
Determines whether the extension list (.jpg, .gif, etc) should show up in the human readable description.
setUp() - Method in class CPUTest
Sets up the instance variables for testings.
SimpComp - class SimpComp.
SimpComp simulates a SimpComp computer.
SimpComp(String) - Constructor for class SimpComp
Constructors, prompts user for obj file if not supplied while invoking SimpComp and populates main memory with data.
stateChanged(ChangeEvent) - Method in class SCAMainGUI
Modifies tab icons.
suit() - Static method in class CPUTest
 

T

tesLDBREGREG() - Method in class CPUTest
 
testADDCREGREG() - Method in class CPUTest
 
testADDREGREG() - Method in class CPUTest
 
testANDREGREG() - Method in class CPUTest
 
testCALLIMMED() - Method in class CPUTest
 
testCALLREG() - Method in class CPUTest
 
TestInputApplet - class TestInputApplet.
 
TestInputApplet() - Constructor for class TestInputApplet
 
testLDBREG__IMMED() - Method in class CPUTest
 
testLDBREG__REG() - Method in class CPUTest
 
testLDBREG_IMMED() - Method in class CPUTest
 
testLDBREG_REG() - Method in class CPUTest
 
testLDBREGADDR() - Method in class CPUTest
 
testLDBREGIMMED() - Method in class CPUTest
 
testLDBREGX() - Method in class CPUTest
 
testLDREG__IMMED() - Method in class CPUTest
 
testLDREG__REG() - Method in class CPUTest
 
testLDREG_IMMED() - Method in class CPUTest
 
testLDREG_REG() - Method in class CPUTest
 
testLDREGADDR() - Method in class CPUTest
 
testLDREGIMMED() - Method in class CPUTest
 
testLDREGREG() - Method in class CPUTest
 
testLDREGX() - Method in class CPUTest
 
testMOVREGREG() - Method in class CPUTest
 
testNOTREG() - Method in class CPUTest
 
testORREGREG() - Method in class CPUTest
 
testPUSHPOP() - Method in class CPUTest
 
testPUSHPOPB() - Method in class CPUTest
 
testRET() - Method in class CPUTest
 
testRETI() - Method in class CPUTest
 
testROTLREG() - Method in class CPUTest
 
testROTRREG() - Method in class CPUTest
 
testSHLREG() - Method in class CPUTest
 
testSHRREG() - Method in class CPUTest
 
testST__IMMEDREG() - Method in class CPUTest
 
testST__REGREG() - Method in class CPUTest
 
testST_IMMEDREG() - Method in class CPUTest
 
testST_REGREG() - Method in class CPUTest
 
testSTADDRREG() - Method in class CPUTest
 
testSTB__IMMEDREG() - Method in class CPUTest
 
testSTB__REGREG() - Method in class CPUTest
 
testSTB_IMMEDREG() - Method in class CPUTest
 
testSTB_REGREG() - Method in class CPUTest
 
testSTBADDRREG() - Method in class CPUTest
 
testSTBREGREG() - Method in class CPUTest
 
testSTBXREG() - Method in class CPUTest
 
testSTREGREG() - Method in class CPUTest
 
testSTXREG() - Method in class CPUTest
 
testSUBBREGREG() - Method in class CPUTest
 
testSUBREGREG() - Method in class CPUTest
 
testXORREGREG() - Method in class CPUTest
 
toFourHex(int) - Static method in class SCFormatUtil
Converts an integer to Hex string of length 2.
toInteger(String) - Static method in class SCFormatUtil
Converts a String argument to an int value.
toString() - Method in class CPU
Overwrites the toString() inherited from Object Class.
toString(int) - Method in class SCMainMem
Converts a range of memory values, from pc-4 to pc+4, into a concatenated string String.
toTwoHex(int) - Static method in class SCFormatUtil
Converts an integer to Hex string of length 2.

U

updateASM(String) - Method in class SCAMainGUI
 
updateLST(String) - Method in class SCAMainGUI
 
updateOBJ(String) - Method in class SCAMainGUI
 
updateOutput(String) - Method in class SCAMainGUI
 
updateSYM(String) - Method in class SCAMainGUI
 

W

windowClosing(WindowEvent) - Method in class SCAMainGUI
Overwrites windowClosing() in WindowAdapter.
windowClosing(WindowEvent) - Method in class SCMainGUI
Overwrites windowClosing() in WindowAdapter.

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