From b6eca43f136adb2a4d603b0d94f105a6319cbf8e Mon Sep 17 00:00:00 2001 From: Piotr Wiszowaty Date: Sun, 27 Jul 2014 16:37:52 +0200 Subject: [PATCH] Update readme formatting --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 51c05dc..38ae820 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,17 @@ $BA98 \ hexadecimal number ### Word definitions Syntax: + `:` _name_ *[* `[label]` _asm-label_ *]* _words_ `;` + or: + `:` _name_ *[* `[label]` _asm-label_ *]* `[code]` + ; inline-assembly + `[end-code]` `;` Examples: @@ -109,38 +114,49 @@ Examples: ### Data declarations One-cell variable: + `variable` _name_ Two-cell variable: + `2variable` _name_ Assembly label at current program counter: + `create` _name_ Compile a one-cell value: + _value_ `,` Compile a one-byte value: + _value_ `c,` Allocate a byte-array: + _length_ `allot` Allocate Atari XL/XE Antic counted string: + `,'` _text_`'` Allocate ASCII counted string: + `,"` _text_`"` Allocate Atari XL/XE Antic string: + `'` _text_`'` Allocate counted ASCII string: + `"` _text_`"` ### Constants Syntax: + _value_ `constant` _name_ Example: @@ -151,15 +167,21 @@ $230 constant dladr ### Inline assembly blocks Syntax: + `[code]` + _; assembly code_ + `[end-code]` ### Compiler directives Syntax: + `[text-section]` _name_ + or: + `[data-section]` _name_ Words