-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatements.txt
65 lines (63 loc) · 2.5 KB
/
statements.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
statements
IchigoJam BASIC
IchigoJam BASIC RPi ★ not supported
IchigoJam PC ※ not compatible
-----------------------------------------------------------
[Function]
Quick list of Statements.
[Command format]
'<comment> - short form REMark
BEEP [<period>, <length>] - tone generator
BPS [<communication speed>] [, <I2C communication speed>]
CLEAR - clear variables, alias CLV
CLV - clear keyboard buffer and key state
CLO - clear input / output state
CLP - clear PCG font changes
CLS - clear visible screen area
CLT - clear TICK() timer
CLV - clear variables
COPY <destination>, <source>, <length> - memcopy
ELSE - optional in IF~THEN~ELSE
END - end program execution
FILES [[<start file number>,] <end file number>] - list
FILES [<Maximum number of files>]
FOR <variable>=<number> TO <number> [STEP <step>] - NEXT
GOTO <line> - jump to <line>
GOSUB <line> - branch to subroutine at <line>
GSB <line> - gosub, alias for GOSUB
IF (eval) THEN (true) ELSE (false)
INPUT ["<string>",] <variable> - user input
IoT.OUT <value> - send data to sakura.io module ※
KBD <keyboard array> - only on RPi
LC - alias for LOCATE
LED <number> - same as OUT7, turn on / off the lamp
LET <variable> = <value> - assign variable
LET [<array>], <number>, number, ... - number array
LET [<array>], "<string>", "<string>", ... - string array
LOAD [<program number>] - load n, 0 or last program
LOCATE <x-axis>, <y-axis> - set position of cursor
LOCATE <x-axis>, -1 - set position of serial cursor
LRUN [<program number>] [, <line number>]
NEXT - end for FOR~NEXT loop
OUT [<terminal>,] <value> - output to the OUT terminal
PLAY "<MML>" - Music Macro Language
PLAY <start address> - play <MML> in memory or variable
POKE <address>, <value> [, <value>] [, ...] - memory ※
PRINT "<character string> ["] [;] - to screen or serial
PWM <terminal>, <pulse width> [, <pulse period>] ※
REM <comment> - program line comment
RESET - soft reset
RETURN - return from last GOSUB
RTN - return, alias RETURN
SAVE [<program number>] - save the program
SCROLL <direction> - scroll screen
SLEEP - pause program execution, button start ★
SRND <value> - seed random number generator
STOP - stop program execution
SWITCH [<mode>] - switch video/LCD ★※
TEMPO <tempo> - T of PLAY in <MML>
THEN - optional in IF~THEN~ELSE, can be GOTO
UART <mode 1> [, <mode 2>] - serial output mode
VIDEO <display> [, <clock down>] - change video
WAIT <time> [, <dive>] - seconds or scanlines (-time)
[Commentary]