How venkateshwara01/team-thanthrashakthi works
This is a Java educational STC89C52 simulator. The main workflow is loading assembly in the Swing UI, sending commands to the core process, executing instructions against CPU state and memory, and returning snapshots to the UI; the core also sends logs to a separate logging process. The graph includes the instruction, register, flag, and storage layers used by execution. Scheduling, process management, and peripheral simulation appear in the README scope, but their implementation is not present in the sampled source, so those branches are marked as documented scope rather than verified runtime flow.
Main entry points: CPU.java CPU execution · CoreProcess.java Core process · SimulatorUI.java Simulator UI · shared IPC messages and state
Components 16
User interface and IPC
- Simulator UI
src/ui/SimulatorUI.java - IPC messages and state
src/shared
CPU and instructions
- Core process
src/CPU/CoreProcess.java - CPU execution
src/CPU/CPU.java - Instruction parser
src/instruction/Instruction.java - Instruction set
src/instruction/InstructionSet.java - Registers
src/CPU/Registers.java - CPU flags
src/CPU/Flags.java
Memory and data structures
- Program memory
src/memory/ProgramMemory.java - Data memory
src/memory/DataMemory.java - Stack
src/memory/Stack.java - FIFO queue
src/memory/FifoQueue.java
Process services and scope
- Logging process
src/logging/LoggingProcess.java - Process scheduling
src - GPIO, timer, interrupts
src
Other components
- Simulator user
Connections 19
- Simulator user → Simulator UI: operates
README.md - Simulator UI → Core process: sends commands
src/ui/SimulatorUI.java - Core process → Simulator UI: returns snapshots
src/CPU/CoreProcess.java - Simulator UI → IPC messages and state: uses messages
src/ui/SimulatorUI.java - Core process → IPC messages and state: uses messages
src/CPU/CoreProcess.java - Core process → CPU execution: dispatches commands
src/CPU/CoreProcess.java - CPU execution → Instruction parser: decodes instructions
src/CPU/CPU.java - CPU execution → Program memory: loads and fetches
src/CPU/CPU.java - Program memory → Instruction parser: creates instructions
src/memory/ProgramMemory.java - CPU execution → Registers: updates state
src/CPU/CPU.java - CPU execution → CPU flags: updates flags
src/CPU/CPU.java - CPU execution → Data memory: reads and writes
src/CPU/CPU.java - CPU execution → Stack: pushes and pops
src/CPU/CPU.java - CPU execution → FIFO queue: enqueues and dequeues
src/CPU/CPU.java - Stack → Data memory: reads and writes
src/memory/Stack.java - Core process → Logging process: sends logs
src/CPU/CoreProcess.java - Core process → IPC messages and state: builds snapshots
src/CPU/CoreProcess.java - Process scheduling → CPU execution: coordinates processes
README.md - GPIO, timer, interrupts → CPU execution: models hardware
README.md