mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-16 14:30:33 +00:00
Added SELECT/CASE/DEFAULT to documentation
This commit is contained in:
parent
459ef1b197
commit
cd21e60f9a
1296
doc/c02.txt
1296
doc/c02.txt
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,38 @@
|
|||||||
C02 for C programmers
|
C02 for C programmers
|
||||||
|
|
||||||
TYPES
|
TYPES
|
||||||
|
|
||||||
C02 only supports one data type: unsigned char.
|
C02 only supports one data type: unsigned char.
|
||||||
|
|
||||||
POINTERS
|
POINTERS
|
||||||
|
|
||||||
C02 does not support pointer type variables or parameters. However, the
|
C02 does not support pointer type variables or parameters. However, the
|
||||||
address-of operator may be used in function calls.
|
address-of operator may be used in function calls and the inline
|
||||||
|
statement.
|
||||||
|
|
||||||
DECLARATIONS
|
|
||||||
|
DECLARATIONS
|
||||||
Variable and function names may be no more than six characters in length.
|
|
||||||
Multiple variable declarations separated by commas are allowed.
|
Variable and function names may be no more than six characters in length.
|
||||||
|
Multiple variable declarations separated by commas are allowed.
|
||||||
A variable in a declaration may be initialized by following it with an
|
|
||||||
equal sign and a constant, however this declaration is done at compile
|
A variable in a declaration may be initialized by following it with an
|
||||||
time, so no re-initialization will occur during code execution.
|
equal sign and a constant, however this declaration is done at compile
|
||||||
|
time, so no re-initialization will occur during code execution.
|
||||||
Array declarations using bracket syntax specify the upper bound, rather
|
|
||||||
than the array size. Therefore, the array will be allocated with one more
|
Array declarations using bracket syntax specify the upper bound, rather
|
||||||
element than the specified number.
|
than the array size. Therefore, the array will be allocated with one more
|
||||||
|
element than the specified number.
|
||||||
EXPRESSIONS
|
|
||||||
|
EXPRESSIONS
|
||||||
C02 supports the addition, subtraction, bitwise-and, bitwise-or, and
|
|
||||||
exclusive-or operators. The multiplication, division, and binary shift
|
C02 supports the addition, subtraction, bitwise-and, bitwise-or, and
|
||||||
operators are not supported. These can be implemented through functions.
|
exclusive-or operators. The multiplication, division, and binary shift
|
||||||
|
operators are not supported. These can be implemented through functions.
|
||||||
|
|
||||||
|
STATEMENTS
|
||||||
|
|
||||||
|
Instead of the switch statement, C02 uses the select statement. The
|
||||||
|
select statement works almost identically to the switch statement except
|
||||||
|
that case blocks do not fall through and the break statement does not
|
||||||
|
exit a case block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user