Diagrams fixed
This commit is contained in:
parent
dee1d42924
commit
14833d64b1
1 changed files with 13 additions and 9 deletions
22
README.md
22
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
|
||||
|
|
Loading…
Reference in a new issue