Sequence diagram
This commit is contained in:
parent
9f3b5f17b9
commit
39d04244cf
1 changed files with 22 additions and 0 deletions
22
README.md
22
README.md
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue