Index

A C D E F G H I J L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form

A

action - Variable in class io.matita08.logic.Operation
The executable action for this operation.
actionPerformed(ActionEvent) - Method in class io.matita08.GUI.listeners.Load
Handles the action event when the load button is clicked.
add - Enum constant in enum class io.matita08.logic.Operations3Bit
ADD (Addition) - Opcode 4.
add - Enum constant in enum class io.matita08.logic.Operations4Bit
ADD (Addition) - Opcode 5.
add(Value) - Method in class io.matita08.value.DoubleValue
Performs addition with another value.
add(Value) - Method in class io.matita08.value.SingleValue
Performs addition with another value.
add(Value) - Method in class io.matita08.value.UndefinedDoubleValue
Performs addition with another value.
add(Value) - Method in class io.matita08.value.UndefinedSingleValue
Performs addition with another value.
add(Value) - Method in class io.matita08.value.Value
Performs addition with another value.
addComponentsToPane(Container) - Static method in class io.matita08.GUI.tests.GridBagLayoutDemo
 
all - Static variable in enum class io.matita08.data.FlagsConstants
Constant equivalent to 2^values().length-1.
all - Static variable in class io.matita08.logic.Operation
Array containing all available operations loaded from the external enum.
all - Static variable in enum class io.matita08.logic.Operations3Bit
Array containing all available operations in this instruction set.
all - Static variable in enum class io.matita08.logic.Operations4Bit
Array containing all available operations in this instruction set.
ALUOpcode - Static variable in class io.matita08.data.ControlUnit
String representation of current ALU operation for display.

C

clone() - Method in class io.matita08.value.UndefinedDoubleValue
Returns the same UndefinedDoubleValue instance.
clone() - Method in class io.matita08.value.UndefinedSingleValue
Returns the same UndefinedSingleValue instance.
Constants - Class in io.matita08
Configuration constants and command-line argument processing for the CPU Simulator.
ControlUnit - Class in io.matita08.data
CPU Control Unit State Management.
create(int) - Static method in class io.matita08.value.Value
Creates a new single value with the specified numeric value.
create(int, boolean) - Static method in class io.matita08.value.Value
Creates a new single value with the specified numeric value and sign interpretation.
current - Static variable in class io.matita08.data.ControlUnit
Current execution phase of the CPU.
currentCycle - Static variable in class io.matita08.data.ControlUnit
Current cycle number within the current instruction execution.
cycles - Variable in class io.matita08.logic.Operation
The number of CPU cycles required to execute this operation.

D

decode() - Static method in class io.matita08.logic.Execution
DECODE Phase - Decodes the instruction and prepares for execution.
Decode - Enum constant in enum class io.matita08.logic.Phase
DECODE Phase - Instruction Interpretation.
Display - Class in io.matita08.GUI
Main graphical user interface for the CPU Simulator application.
DoubleValue - Class in io.matita08.value
Concrete implementation of Value representing a multi-word value.
DoubleValue() - Constructor for class io.matita08.value.DoubleValue
Constructs a new DoubleValue with all components initialized to undefined values.
DoubleValue(int) - Constructor for class io.matita08.value.DoubleValue
Constructs a new DoubleValue from a single integer value.
DoubleValue(Value) - Constructor for class io.matita08.value.DoubleValue
Constructs a new DoubleValue by copying from another Value.
DoubleValue(Value, Value) - Constructor for class io.matita08.value.DoubleValue
Constructs a new DoubleValue from two separate Value components.

E

equals(int) - Method in class io.matita08.value.UndefinedDoubleValue
Checks if this value equals the specified numeric value.
equals(int) - Method in class io.matita08.value.UndefinedSingleValue
Checks if this value equals the specified numeric value.
equals(int) - Method in class io.matita08.value.Value
Checks if this value equals the specified numeric value.
ExceptionHandler - Class in io.matita08
Custom uncaught exception handler for the CPU simulator application.
ExceptionHandler(boolean) - Constructor for class io.matita08.ExceptionHandler
Constructs a new ExceptionHandler with the specified thread type.
execute() - Static method in class io.matita08.logic.Execution
EXECUTE Phase - Executes the decoded instruction.
Execute - Enum constant in enum class io.matita08.logic.Phase
EXECUTE Phase - Instruction Execution.
Execution - Class in io.matita08.logic
CPU Execution Engine - Instruction Cycle Management.
Execution() - Constructor for class io.matita08.logic.Execution
 

F

fetch() - Static method in class io.matita08.logic.Execution
FETCH Phase - Retrieves the next instruction from memory.
Fetch - Enum constant in enum class io.matita08.logic.Phase
FETCH Phase - Instruction Retrieval.
Flags - Class in io.matita08.data
CPU Flags Management System.
Flags() - Constructor for class io.matita08.data.Flags
 
FlagsConstants - Enum Class in io.matita08.data
Enumeration of CPU flag constants used in the simulator's flag management system.

G

get() - Static method in class io.matita08.data.Flags
Get the string representation of all flags
get() - Method in enum class io.matita08.data.FlagsConstants
Gets the bitmask value for this flag constant.
get() - Method in enum class io.matita08.logic.Operations3Bit
Gets the Operation wrapper for this instruction.
get() - Method in class io.matita08.value.DoubleValue
Gets the numeric value as an integer.
get() - Method in class io.matita08.value.Value
Gets the numeric value as an integer.
get(int) - Static method in class io.matita08.data.Flags
Gets the current state of flag(s) using a bitmask.
get(int) - Static method in class io.matita08.logic.Operation
Retrieves an operation by its opcode identifier.
get(FlagsConstants) - Static method in class io.matita08.data.Flags
Gets the current state of a specific flag.
getAcc() - Static method in class io.matita08.data.Registers
Gets the current Accumulator register value.
getAddressSize() - Static method in class io.matita08.Constants
Gets the address size configuration in single-value units.
getAddressSize() - Static method in class io.matita08.logic.Operation
Gets the address size used by the CPU architecture.
getAndInc() - Method in class io.matita08.value.DoubleValue
Returns the current value and then increments this DoubleValue.
getAndIncPc() - Static method in class io.matita08.logic.Operation
Gets the current Program Counter value and increments it for the next instruction.
getBufIn() - Static method in class io.matita08.data.Registers
Gets the current Input Buffer value.
getBufOut() - Static method in class io.matita08.data.Registers
Gets the current Output Buffer value.
getHalt() - Static method in enum class io.matita08.logic.Operations3Bit
Gets the HALT operation for CPU termination.
getHalt() - Static method in enum class io.matita08.logic.Operations4Bit
Gets the HALT operation for CPU termination.
getIr() - Static method in class io.matita08.data.Registers
Gets the current Instruction Register value.
getMAR() - Static method in class io.matita08.data.Registers
Gets the current Memory Address Register value.
getMC(int) - Static method in class io.matita08.data.Registers
Reads a value from Central Memory at the specified integer address.
getMC(DoubleValue) - Static method in class io.matita08.data.Registers
Reads a value from Central Memory using a DoubleValue address.
getMC(Value) - Static method in class io.matita08.data.Registers
Reads a value from Central Memory at the specified address.
getMCSize() - Static method in class io.matita08.Constants
Gets the central memory size in addressable locations.
getMDR() - Static method in class io.matita08.data.Registers
Gets the current Memory Data Register value.
getNew() - Static method in class io.matita08.value.Value
Creates a new undefined single value.
getNewAddress() - Static method in class io.matita08.value.Value
Creates a new undefined address-sized value.
getOperationEnumName() - Static method in class io.matita08.Constants
Gets the fully qualified class name of the operation enumeration.
getOverflow() - Static method in class io.matita08.data.Registers
Gets the current state of the Overflow flag.
getPointer() - Static method in class io.matita08.data.Registers
Gets the current Address Pointer value.
getRadix() - Static method in class io.matita08.Constants
Gets the radix (number base) used for value display.
getRegB() - Static method in class io.matita08.data.Registers
Gets the current Register B value.
getSigned() - Method in class io.matita08.value.DoubleValue
Gets the value interpreted as a signed integer.
getSigned() - Method in class io.matita08.value.SingleValue
Gets the value interpreted as a signed integer.
getSigned() - Method in class io.matita08.value.UndefinedDoubleValue
Gets the value interpreted as a signed integer.
getSigned() - Method in class io.matita08.value.UndefinedSingleValue
Gets the value interpreted as a signed integer.
getSigned() - Method in class io.matita08.value.Value
Gets the value interpreted as a signed integer.
getUnknown() - Static method in enum class io.matita08.logic.Operations3Bit
Gets the UNKNOWN operation for invalid opcodes.
getUnknown() - Static method in enum class io.matita08.logic.Operations4Bit
Gets the UNKNOWN operation for invalid opcodes.
getUnsigned() - Method in class io.matita08.value.DoubleValue
Gets the value interpreted as an unsigned integer.
getUnsigned() - Method in class io.matita08.value.SingleValue
Gets the value interpreted as an unsigned integer.
getUnsigned() - Method in class io.matita08.value.UndefinedDoubleValue
Gets the value interpreted as an unsigned integer.
getUnsigned() - Method in class io.matita08.value.UndefinedSingleValue
Gets the value interpreted as an unsigned integer.
getUnsigned() - Method in class io.matita08.value.Value
Gets the value interpreted as an unsigned integer.
getValueMax() - Static method in class io.matita08.Constants
Gets the maximum value that can be represented in a single register.
getZero() - Static method in class io.matita08.data.Registers
Gets the current state of the Zero flag.
GridBagLayoutDemo - Class in io.matita08.GUI.tests
 
GridBagLayoutDemo() - Constructor for class io.matita08.GUI.tests.GridBagLayoutDemo
 

H

Halt - Enum constant in enum class io.matita08.logic.Operations3Bit
HALT (Halt Execution) - Opcode 7.
Halt - Enum constant in enum class io.matita08.logic.Operations4Bit
HALT (Halt Execution) - Opcode 15.
Halt - Static variable in class io.matita08.logic.Operation
Special operation representing a halt/stop instruction.

I

in - Enum constant in enum class io.matita08.logic.Operations3Bit
IN (Input) - Opcode 3.
in - Enum constant in enum class io.matita08.logic.Operations4Bit
IN (Input) - Opcode 3.
init() - Static method in class io.matita08.GUI.Display
Initialize the GUI
init(String[]) - Static method in class io.matita08.Constants
Parses command-line arguments to configure the simulator.
instance - Static variable in class io.matita08.GUI.Display
Singleton instance of the Display window.
io.matita08 - package io.matita08
Root package for the CPU Simulator application.
io.matita08.data - package io.matita08.data
Data management package for the CPU simulator.
io.matita08.GUI - package io.matita08.GUI
Graphical User Interface (GUI) package for the CPU Simulator application.
io.matita08.GUI.listeners - package io.matita08.GUI.listeners
Event listener implementations for GUI components in the CPU simulator.
io.matita08.GUI.tests - package io.matita08.GUI.tests
 
io.matita08.logic - package io.matita08.logic
CPU logic and execution engine package for the simulator.
io.matita08.value - package io.matita08.value
Value system package for the CPU simulator.
isUndefined() - Method in class io.matita08.value.UndefinedDoubleValue
Checks if this value is in an undefined state.
isUndefined() - Method in class io.matita08.value.UndefinedSingleValue
Checks if this value is in an undefined state.
isUndefined() - Method in class io.matita08.value.Value
Checks if this value is in an undefined state.

J

jmp - Enum constant in enum class io.matita08.logic.Operations4Bit
JMP (Unconditional Jump) - Opcode 7.
jpo - Enum constant in enum class io.matita08.logic.Operations4Bit
JPO (Jump if Overflow) - Opcode 9.
jpz - Enum constant in enum class io.matita08.logic.Operations3Bit
JPZ (Jump if Zero) - Opcode 6.
jpz - Enum constant in enum class io.matita08.logic.Operations4Bit
JPZ (Jump if Zero) - Opcode 8.

L

Line - Class in io.matita08.GUI
A custom Swing component that draws a horizontal line for visual separation.
Line() - Constructor for class io.matita08.GUI.Line
 
load - Enum constant in enum class io.matita08.logic.Operations3Bit
LOAD (Load) - Opcode 1.
load - Enum constant in enum class io.matita08.logic.Operations4Bit
LOAD (Load) - Opcode 0.
load(ActionEvent) - Method in class io.matita08.GUI.listeners.Load
Handles the file selection action from the file chooser.
Load - Class in io.matita08.GUI.listeners
Action listener implementation for handling file loading operations in the CPU simulator.
Load() - Constructor for class io.matita08.GUI.listeners.Load
Constructs a new Load action listener with configured file chooser.
loadMC(File) - Static method in class io.matita08.Utils
Loads a program file into the simulator's central memory asynchronously.
logStream - Static variable in class io.matita08.ExceptionHandler
Print stream for writing to the log file.

M

main(String[]) - Static method in class io.matita08.GUI.Display
Execute this only to test the GUI, the real program starts in Main.main(String[])
main(String[]) - Static method in class io.matita08.GUI.tests.GridBagLayoutDemo
 
main(String[]) - Static method in class io.matita08.GUI.tests.RectanglesGridBagLayout
 
main(String[]) - Static method in class io.matita08.GUI.tests.SpringDemo
 
main(String[]) - Static method in class io.matita08.Main
Main entry point for the CPU Simulator application.
Main - Class in io.matita08
Main entry point for the CPU Simulator application.
Main() - Constructor for class io.matita08.Main
 
modFlag - Static variable in class io.matita08.data.Registers
Modification flags for tracking which components need GUI updates.
mul(Value) - Method in class io.matita08.value.DoubleValue
Performs multiplication with another value.
mul(Value) - Method in class io.matita08.value.SingleValue
Performs multiplication with another value.
mul(Value) - Method in class io.matita08.value.UndefinedDoubleValue
Performs multiplication with another value.
mul(Value) - Method in class io.matita08.value.UndefinedSingleValue
Performs multiplication with another value.
mul(Value) - Method in class io.matita08.value.Value
Performs multiplication with another value.

N

name - Variable in class io.matita08.logic.Operation
The human-readable name of this operation.
next - Static variable in class io.matita08.data.ControlUnit
Next execution phase to transition to.
next() - Static method in class io.matita08.logic.Execution
Gets the next instruction address and increments the program counter.
None - Enum constant in enum class io.matita08.logic.Phase
NONE Phase - Default State.
nullValue - Static variable in class io.matita08.value.Value
Singleton instance representing an undefined single value.

O

opcode - Static variable in class io.matita08.data.ControlUnit
Current operation being executed.
opcode - Variable in class io.matita08.logic.Operation
The numeric opcode identifier for this operation.
Operation - Class in io.matita08.logic
Represents a CPU operation/instruction in the simulator with dynamic loading capabilities.
Operations3Bit - Enum Class in io.matita08.logic
3-Bit CPU Instruction Set Implementation.
Operations4Bit - Enum Class in io.matita08.logic
4-Bit CPU Instruction Set Implementation.
out - Enum constant in enum class io.matita08.logic.Operations3Bit
OUT (Output) - Opcode 2.
out - Enum constant in enum class io.matita08.logic.Operations4Bit
OUT (Output) - Opcode 4.
OVERFLOW - Enum constant in enum class io.matita08.data.FlagsConstants
Overflow Flag - Set to true when the last arithmetic operation resulted in an overflow (exceeds maximum representable value) or underflow (falls below minimum representable value in the case of subtraction).

P

paintComponent(Graphics) - Method in class io.matita08.GUI.Line
Paints the line component by drawing a centered horizontal black line.
pc() - Static method in class io.matita08.data.Registers
Gets the Program Counter register.
Phase - Enum Class in io.matita08.logic
CPU Execution Phases - Instruction Cycle States.

R

readMC(Value) - Static method in class io.matita08.logic.Operation
Initiates a memory read operation from the specified address.
readPointer(int) - Static method in class io.matita08.logic.Execution
Reads address pointer data during multi-cycle instruction execution.
readPointer(int) - Static method in class io.matita08.logic.Operation
Initiates a pointer read operation for the specified cycle.
RectanglesGridBagLayout - Class in io.matita08.GUI.tests
 
RectanglesGridBagLayout() - Constructor for class io.matita08.GUI.tests.RectanglesGridBagLayout
 
Registers - Class in io.matita08.data
CPU Register and Memory Management System.
rng - Static variable in class io.matita08.Utils
Shared random number generator used throughout the application.
run() - Method in enum class io.matita08.logic.Phase
Executes the action associated with this phase.
runOnNewThread(Runnable) - Static method in class io.matita08.Utils
Starts a new thread in the dedicated task group for executing background operations.

S

set - Enum constant in enum class io.matita08.logic.Operations3Bit
SET (Set Register B) - Opcode 5.
set - Enum constant in enum class io.matita08.logic.Operations4Bit
SET (Set Register B) - Opcode 2.
set(int) - Method in class io.matita08.value.DoubleValue
Sets this value to the specified numeric value.
set(int) - Method in class io.matita08.value.SingleValue
Sets this value to the specified numeric value.
set(int) - Method in class io.matita08.value.UndefinedDoubleValue
Sets this value to the specified numeric value.
set(int) - Method in class io.matita08.value.UndefinedSingleValue
Sets this value to the specified numeric value.
set(int) - Method in class io.matita08.value.Value
Sets this value to the specified numeric value.
set(int, boolean) - Static method in class io.matita08.data.Flags
Sets or unsets flag(s) using a bitmask.
set(FlagsConstants, boolean) - Static method in class io.matita08.data.Flags
Sets or unsets a specific flag.
set(Value) - Method in class io.matita08.value.DoubleValue
Sets this value to match another value.
set(Value) - Method in class io.matita08.value.Value
Sets this value to match another value.
setAcc(Value) - Static method in class io.matita08.data.Registers
Sets the Accumulator register and updates modification flags.
setBufIn(Value) - Static method in class io.matita08.data.Registers
Sets the Input Buffer and updates modification flags.
setBufOut(Value) - Static method in class io.matita08.data.Registers
Sets the Output Buffer and updates modification flags.
setContainerSize(Container, int) - Static method in class io.matita08.GUI.tests.SpringDemo
 
setIr(Value) - Static method in class io.matita08.data.Registers
Sets the Instruction Register to a new value.
setMAR(Value) - Static method in class io.matita08.data.Registers
Sets the Memory Address Register and updates modification flags.
setMarR(Value) - Static method in class io.matita08.logic.Execution
Sets MAR and performs a memory read operation.
setMC(int, Value) - Static method in class io.matita08.data.Registers
Writes a value to Central Memory at the specified integer address.
setMC(DoubleValue, Value) - Static method in class io.matita08.data.Registers
Writes a value to Central Memory using a DoubleValue address.
setMC(Value, Value) - Static method in class io.matita08.data.Registers
Writes a value to Central Memory using a generic Value address.
setMC(Value, Value) - Static method in class io.matita08.logic.Operation
Sets a value in central memory at the specified address.
setMDR(Value) - Static method in class io.matita08.data.Registers
Sets the Memory Data Register and updates modification flags.
setOverflow(boolean) - Static method in class io.matita08.data.Registers
Sets the Overflow flag state.
setPointer(Value) - Static method in class io.matita08.data.Registers
Sets the Address Pointer and updates modification flags.
setRegB(Value) - Static method in class io.matita08.data.Registers
Sets Register B and updates modification flags.
setRemainingCycles(int) - Static method in class io.matita08.logic.Operation
Sets the number of remaining execution cycles for the current operation.
setZero(boolean) - Static method in class io.matita08.data.Registers
Sets the Zero flag state.
SingleValue - Class in io.matita08.value
Concrete implementation of Value representing a single-word value.
SingleValue(int) - Constructor for class io.matita08.value.SingleValue
Constructs a new SingleValue with the specified numeric value.
SingleValue(int, boolean) - Constructor for class io.matita08.value.SingleValue
Constructs a new SingleValue with the specified numeric value and sign interpretation.
SpringDemo - Class in io.matita08.GUI.tests
 
SpringDemo() - Constructor for class io.matita08.GUI.tests.SpringDemo
 
step() - Static method in class io.matita08.logic.Execution
Executes a single CPU instruction step.
step(int) - Static method in class io.matita08.logic.Execution
Executes multiple CPU instruction steps up to the specified maximum.
step(ActionEvent) - Static method in class io.matita08.logic.Execution
GUI event handler for single-step execution.
stepped - Static variable in class io.matita08.logic.Execution
Flag indicating whether a step operation has been performed.
sto - Enum constant in enum class io.matita08.logic.Operations3Bit
STO (Store) - Opcode 0.
sto - Enum constant in enum class io.matita08.logic.Operations4Bit
STO (Store) - Opcode 1.
sub - Enum constant in enum class io.matita08.logic.Operations4Bit
SUB (Subtraction) - Opcode 6.
sub(Value) - Method in class io.matita08.value.DoubleValue
Performs subtraction with another value.
sub(Value) - Method in class io.matita08.value.SingleValue
Performs subtraction with another value.
sub(Value) - Method in class io.matita08.value.UndefinedDoubleValue
Performs subtraction with another value.
sub(Value) - Method in class io.matita08.value.UndefinedSingleValue
Performs subtraction with another value.
sub(Value) - Method in class io.matita08.value.Value
Performs subtraction with another value.

T

taskGroup - Static variable in class io.matita08.Utils
ThreadGroup where temporary tasks are executed.
toString() - Method in class io.matita08.value.DoubleValue
Returns a string representation of this value.
toString() - Method in class io.matita08.value.UndefinedSingleValue
Returns a string representation of this value.
toString() - Method in class io.matita08.value.Value
Returns a string representation of this value.
totalCycles - Static variable in class io.matita08.data.ControlUnit
Total number of cycles required for the current instruction.

U

uncaughtException(Thread, Throwable) - Method in class io.matita08.ExceptionHandler
Handles uncaught exceptions by logging them and taking appropriate action.
UndefinedDoubleValue - Class in io.matita08.value
Concrete implementation of Value representing an undefined multi-word value.
UndefinedSingleValue - Class in io.matita08.value
Concrete implementation of Value representing an undefined single-word value.
Unknown - Enum constant in enum class io.matita08.logic.Operations3Bit
UNKNOWN (Invalid Opcode Handler).
Unknown - Enum constant in enum class io.matita08.logic.Operations4Bit
UNKNOWN (Invalid Opcode Handler) - Opcode 16.
Unknown - Static variable in class io.matita08.logic.Operation
Default operation used when an invalid opcode is encountered.
unset() - Static method in class io.matita08.value.DoubleValue
unset() - Static method in class io.matita08.value.SingleValue
unset() - Static method in class io.matita08.value.Value
Returns the string representation of an unset/undefined value.
update() - Static method in class io.matita08.GUI.Display
Update the GUI If the current thread is the swing event thread it will get run immediately, else it will wait for the swing thread to execute the update
Utils - Class in io.matita08
Utility class providing common functionality for the CPU simulator.

V

Value - Class in io.matita08.value
Abstract base class representing a value in the CPU simulator.
Value() - Constructor for class io.matita08.value.Value
 
valueOf(String) - Static method in enum class io.matita08.data.FlagsConstants
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.matita08.logic.Operations3Bit
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.matita08.logic.Operations4Bit
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.matita08.logic.Phase
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.matita08.data.FlagsConstants
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.matita08.logic.Operations3Bit
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.matita08.logic.Operations4Bit
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.matita08.logic.Phase
Returns an array containing the constants of this enum class, in the order they are declared.

W

wrapper - Variable in enum class io.matita08.logic.Operations3Bit
The Operation wrapper object that provides the execution interface.
wrapper - Variable in enum class io.matita08.logic.Operations4Bit
The Operation wrapper object that provides the execution interface.

Z

ZERO - Enum constant in enum class io.matita08.data.FlagsConstants
Zero Flag - Set to true when the result of the last arithmetic or logical operation equals zero.
A C D E F G H I J L M N O P R S T U V W Z 
All Classes and Interfaces|All Packages|Serialized Form