Skip to content

Commit

Permalink
Add exception examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yanorei32 committed Nov 29, 2019
1 parent aa51a77 commit bbb0b94
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ After power-on, it will go to Editor Mode.
### Data memory access violation
If this happens, you did read or write out of the memory boundary.

Minimum:
```
<+
+[>+]
```

Output:
```
ERROR: PTR < 0
Expand All @@ -100,6 +106,11 @@ ERROR: PTR >= RAM SIZE
### Null character output
If this happens, you tried to print NULL character.

Minimum:
```
.
```

Output:
```
ERROR: '\0' OUTPUT.
Expand All @@ -108,6 +119,12 @@ ERROR: '\0' OUTPUT.
### Syntax error
It's your typo.

Minimum:
```
+]
[
```

Output:
```
ERROR: FAILED TO FIND '['
Expand Down

0 comments on commit bbb0b94

Please sign in to comment.