Skip to content

Commit

Permalink
README code formatting (...)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-trebacz committed Apr 9, 2012
1 parent 5c40a92 commit 06e6349
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Compiler structure and engine is heavily inspired by [Let's Build a Compiler, by
### IF

Usage:
```
```basic
IF _condition_ THEN
...
[ELSE
Expand All @@ -29,7 +29,7 @@ Executes a code block if _condition_ is met. Optional ELSE block executed if _co
### LOOP

Usage:
```
```basic
LOOP [WHILE _condition_]
...
END WHILE
Expand All @@ -40,15 +40,16 @@ Loops through a code block. Whe _condition_ is supplied, loops while the _condit
### CLS

Usage:
```CLS
```basic
CLS
```

Clears whole 32x16 screen (video buffer at 0x8000)

### PRINT

Usage:
```
```basic
PRINT _expression_ [; _expression]
PRINT
```
Expand All @@ -58,7 +59,7 @@ Prints _expression(s)_ at current screen cursor location. Multiple expressions c
### LOCATE

Usage:
```
```basic
LOCATE _Y_[, _X_]
```

Expand All @@ -67,7 +68,7 @@ Sets current cursor location to _X_, _Y_. Set's only _Y_ if _X_ is not provided.
### COLOR

Usage:
```
```basic
COLOR _FOREGROUND_, _BACKGROUND_
```

Expand All @@ -76,7 +77,7 @@ Sets current output color to _FOREGROUND_ and _BACKGROUND_. Both these values ca
### KEY

Usage:
```
```basic
DIM Code
Code = KEY
```
Expand All @@ -86,7 +87,7 @@ Used in an expression, it returns character code of last pressed key.
### STR

Usage:
```
```basic
DIM Char
Char = STR(_expression_)
```
Expand All @@ -96,7 +97,7 @@ Returns an ASCII character from given character code.
### CHR

Usage:
```
```basic
DIM Code
Code = STR(_expression_)
```
Expand All @@ -106,7 +107,7 @@ Returns a character code from first character of an ASCII string (opposite to ST
### INPUT

Usage:
```
```basic
DIM YourName
YourName = INPUT
```
Expand Down

0 comments on commit 06e6349

Please sign in to comment.