-
Notifications
You must be signed in to change notification settings - Fork 4
/
LOAD.txt
executable file
·62 lines (50 loc) · 2.71 KB
/
LOAD.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
LOAD
IchigoJam BASIC 0.8.0~
IchigoJam BASIC RPi
IchigoJam PC 0.1 beta 5~
-----------------------------------------------------------
[ 機能 ]
プログラムを読み込みます。
[ コマンド 書式 ]
LOAD [<プログラム番号>]
[ 例 ]
LOAD
[ 解説 ]
現在 IchigoJam で読み込まれているプログラムは消去され、
LOAD で読み込まれたプログラムに改められます。
<プログラム番号> の値は次のとおりです。
0 のみ IchigoJam BASIC 1.2b59 IoT
0~ 2 IchigoJam BASIC ~0.9.9 本体(LPC1114)
0~ 3 IchigoJam BASIC 1.0.0~ 本体(LPC1114)・
IchigoJam web・IchigoJam ap・IchigoJam PC
IchigoJam BASIC RPi SD カード ~1.2b15RPi・~1.2.4RPi など
0~ 5 IchigoCake BASIC
0~ 14 IchigoJam BASIC 本体(RISC-V)
0~ 99 IchigoJam BASIC RPi SD カード 1.2b16RPi~・1.2.5RPi~
100~226 IchigoJam BASIC 0.9.3~0.9.8 RC EEPROM
100~227 IchigoJam BASIC 0.9.9 RC~ など EEPROM
省略した時は 0.9.8 まで 0、
0.9.9 より最新でアクセスしたプログラム番号になります。
起動直後で省略した場合は 0 を読み込みます。
EEPROM の容量と配線によって有効な値は変化します。
使用できないプログラム番号は File Error になります。
EEPROM は 32K~1024K ビットで使用可能で、
0.9.8-RC までで 1024K ビットを使用する場合および
一部の EEPROM を除いて中身を完全に使用できます。
32K~256K ビットでは同じプログラムを
複数のプログラム番号で参照する事にご注意下さい。
16K ビット以下の EEPROM は I2C のアクセスに違いがあるため、
プログラム保存に使用する事ができません。
IchigoJam BASIC RPi は (micro)SD メモリーカードの
files ディレクトリ内ファイルから読みます。
IchigoCake BASIC はプログラム容量が 4k バイトになっているため、
他の IchigoJam BASIC との EEPROM 共用は問題があります。
専用に用意する事が推奨されます。
プログラム番号にプログラムがない場合(NEW で SAVE した場合)は
エラーにならず、OK 表示になります。
読み込みし、すぐ実行する事ができます。LRUN を参照して下さい。
技術的には本体や EEPROM の領域 1K バイト分を
仮想アドレス領域 #C00~#FFF に写しています。
そのため、プログラムの空いた領域(#FFF に近い後ろの領域)を
POKE で値を入れ SAVE 行う事でこの値も含めて保存し、
LOAD・LRUN の後 PEEK でこの値を取り出せます。