Last change
on this file was 11, checked in by chronos, 13 years ago |
- Added: Some other examples from web.
|
File size:
738 bytes
|
Line | |
---|
1 | L - Level
|
---|
2 | PC - Program Counter
|
---|
3 | A - Accumulator
|
---|
4 |
|
---|
5 | Base instruction
|
---|
6 | ================
|
---|
7 |
|
---|
8 | ( L <= L + 1
|
---|
9 | ) L <= L - 1
|
---|
10 | + [P] <= [P] + 1
|
---|
11 | - [P] <= [P] - 1
|
---|
12 | , [P] <= IN
|
---|
13 | . OUT <= [P]
|
---|
14 | [ WHILE [P] > 0 DO BEGIN
|
---|
15 | ] END
|
---|
16 | Faster data copying:
|
---|
17 | # A <= [P]
|
---|
18 | $ [P] <= A
|
---|
19 | Subroutines:
|
---|
20 | *NAME CALL
|
---|
21 | @NAME SUBROUTINE
|
---|
22 | & RETURN
|
---|
23 | Backward compatibility:
|
---|
24 | > [P-] <= [P-] + 1
|
---|
25 | < [P-] <= [P-] - 1
|
---|
26 |
|
---|
27 |
|
---|
28 | Examples
|
---|
29 | ========
|
---|
30 | OutputInput: ,[.,]
|
---|
31 | ClearValue: [-]
|
---|
32 | ClearBlock(Count, Data): [+(-)-]
|
---|
33 | InputBlock(Count, Data): [+(,)-]
|
---|
34 | PrintBlock(Count, Data): [+(.)-]
|
---|
35 | PrintBlockZeroDelimited(Data): [.)+(]
|
---|
36 | Sum(Op1, Op2): )++([-])--([-)++(+)--(])+([-)+(+)-(])+(
|
---|
37 |
|
---|
38 |
|
---|
39 | Usable symbols
|
---|
40 | ================
|
---|
41 | $%*#&@{}m<>?.;:"'^~°!_-+§()/\|[]â¬Ã÷À
|
---|
Note:
See
TracBrowser
for help on using the repository browser.