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
|
```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
|
||||||
|
|
Loading…
Reference in a new issue