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 ```mermaid
classDiagram classDiagram
class Operand {
+ Word getValue()
}
class Instruction { class Instruction {
+ void execute(Memory memory, ProgramCounter pc) + void execute(Memory memory, ProgramCounter pc)
# String opcode() # String opcode()
@ -73,15 +76,16 @@ classDiagram
class JumpEq class JumpEq
class Mul class Mul
class Print class Print
Instruction <|-- Word Instruction *-- Operand
Instruction <|-- Address Operand <|-- Word
Add <|-- Instruction Operand <|-- Address
Copy <|-- Instruction Add --|> Instruction
Halt <|-- Instruction Copy --|> Instruction
Jump <|-- Instruction Halt --|> Instruction
JumpEq <|-- Instruction Jump --|> Instruction
Mul <|-- Instruction JumpEq --|> Instruction
Print <|-- Instruction Mul --|> Instruction
Print --|> Instruction
``` ```
```mermaid ```mermaid