Sequence diagram

This commit is contained in:
Imbus 2024-04-21 20:53:38 +02:00
parent 9f3b5f17b9
commit 39d04244cf

View file

@ -80,3 +80,25 @@ classDiagram
Computer --> Program
Computer --> ProgramCounter
```
```mermaid
sequenceDiagram
participant Computer
participant Program
participant Memory
participant ProgramCounter
participant Instruction
Computer -> Program: load(program)
loop Program Execution
Program -> Computer: run()
loop Instructions Execution
Computer -> ProgramCounter: incPC()
ProgramCounter -> Program: getPC()
Program -> Program: executeInstruction()
Program -> Instruction: execute(memory, PC)
Instruction -> Memory: read/write(address)
Program -> ProgramCounter: incPC()
end
end
```