Update readme formatting

This commit is contained in:
Piotr Wiszowaty 2014-07-27 16:37:52 +02:00
parent 47bf9b658d
commit b6eca43f13

View File

@ -80,12 +80,17 @@ $BA98 \ hexadecimal number
### Word definitions ### Word definitions
Syntax: Syntax:
`:` _name_ *[* `[label]` _asm-label_ *]* _words_ `;` `:` _name_ *[* `[label]` _asm-label_ *]* _words_ `;`
or: or:
`:` _name_ `:` _name_
*[* `[label]` _asm-label_ *]* *[* `[label]` _asm-label_ *]*
`[code]` `[code]`
; inline-assembly ; inline-assembly
`[end-code]` `;` `[end-code]` `;`
Examples: Examples:
@ -109,38 +114,49 @@ Examples:
### Data declarations ### Data declarations
One-cell variable: One-cell variable:
`variable` _name_ `variable` _name_
Two-cell variable: Two-cell variable:
`2variable` _name_ `2variable` _name_
Assembly label at current program counter: Assembly label at current program counter:
`create` _name_ `create` _name_
Compile a one-cell value: Compile a one-cell value:
_value_ `,` _value_ `,`
Compile a one-byte value: Compile a one-byte value:
_value_ `c,` _value_ `c,`
Allocate a byte-array: Allocate a byte-array:
_length_ `allot` _length_ `allot`
Allocate Atari XL/XE Antic counted string: Allocate Atari XL/XE Antic counted string:
`,'` _text_`'` `,'` _text_`'`
Allocate ASCII counted string: Allocate ASCII counted string:
`,"` _text_`"` `,"` _text_`"`
Allocate Atari XL/XE Antic string: Allocate Atari XL/XE Antic string:
`'` _text_`'` `'` _text_`'`
Allocate counted ASCII string: Allocate counted ASCII string:
`"` _text_`"` `"` _text_`"`
### Constants ### Constants
Syntax: Syntax:
_value_ `constant` _name_ _value_ `constant` _name_
Example: Example:
@ -151,15 +167,21 @@ $230 constant dladr
### Inline assembly blocks ### Inline assembly blocks
Syntax: Syntax:
`[code]` `[code]`
_; assembly code_ _; assembly code_
`[end-code]` `[end-code]`
### Compiler directives ### Compiler directives
Syntax: Syntax:
`[text-section]` _name_ `[text-section]` _name_
or: or:
`[data-section]` _name_ `[data-section]` _name_
Words Words