Diagrams fixed

This commit is contained in:
Imbus 2024-05-11 20:07:19 +02:00
parent dee1d42924
commit 14833d64b1

View file

@ -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