diff --git a/README.md b/README.md index 88d3e71..0836d96 100644 --- a/README.md +++ b/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 +```