mirror of https://github.com/g012/l65.git
Added a paragraph about binary literals in README.md.
This commit is contained in:
parent
dc9519d83e
commit
6bdc61e300
12
README.md
12
README.md
|
@ -10,7 +10,9 @@ Table of Contents
|
||||||
* [Command Line Usage](#command-line-usage)
|
* [Command Line Usage](#command-line-usage)
|
||||||
* [Samples - Getting Started](#samples---getting-started)
|
* [Samples - Getting Started](#samples---getting-started)
|
||||||
* [API](#api)
|
* [API](#api)
|
||||||
* [Lambda Functions](#lambda-functions)
|
* [Lua Extensions](#lua-extensions)
|
||||||
|
* [Lambda Functions](#lambda-functions)
|
||||||
|
* [Binary Numbers](#binary-numbers)
|
||||||
* [Instruction List](#instruction-list)
|
* [Instruction List](#instruction-list)
|
||||||
* [Regular Opcodes](#regular-opcodes)
|
* [Regular Opcodes](#regular-opcodes)
|
||||||
* [Undocumented Opcodes](#undocumented-opcodes)
|
* [Undocumented Opcodes](#undocumented-opcodes)
|
||||||
|
@ -104,10 +106,16 @@ There's also `vcspal.act`, a palette file for authoring software for VCS. Use th
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### Lambda Functions
|
### Lua Extensions
|
||||||
|
|
||||||
|
#### Lambda Functions
|
||||||
|
|
||||||
Since anonymous functions are core to l65, the extension syntax such as `\a,b(a+b)` is available to define them: it expands to `function(a,b) return a+b end`.
|
Since anonymous functions are core to l65, the extension syntax such as `\a,b(a+b)` is available to define them: it expands to `function(a,b) return a+b end`.
|
||||||
|
|
||||||
|
#### Binary Numbers
|
||||||
|
|
||||||
|
A simple parsing of number literals in the form of `0b11011` converts this base-2 / binary number into a decimal number after the l65 pass. There is no support for them in other places though - no format type for `string.format` or anything else.
|
||||||
|
|
||||||
### Instruction List
|
### Instruction List
|
||||||
|
|
||||||
#### Regular Opcodes
|
#### Regular Opcodes
|
||||||
|
|
Loading…
Reference in New Issue