From 14833d64b18928a76b292531a62ed886dc7d08d1 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 11 May 2024 20:07:19 +0200 Subject: [PATCH] Diagrams fixed --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2992174..8aa618a 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,9 @@ classDiagram ```mermaid classDiagram + class Operand { + + Word getValue() + } class Instruction { + void execute(Memory memory, ProgramCounter pc) # String opcode() @@ -73,15 +76,16 @@ classDiagram class JumpEq class Mul class Print - Instruction <|-- Word - Instruction <|-- Address - Add <|-- Instruction - Copy <|-- Instruction - Halt <|-- Instruction - Jump <|-- Instruction - JumpEq <|-- Instruction - Mul <|-- Instruction - Print <|-- Instruction + Instruction *-- Operand + Operand <|-- Word + Operand <|-- Address + Add --|> Instruction + Copy --|> Instruction + Halt --|> Instruction + Jump --|> Instruction + JumpEq --|> Instruction + Mul --|> Instruction + Print --|> Instruction ``` ```mermaid