C.Basic Command Reference
- C.Basic - Introduction & Download
C.Basic is an on-calc language running on fx-9860G Series, picking the best of both Casio Basic and usability of fx-5800P. It's not only almost compatible with Casio Basic but also providing extended commands for more powerful programming. It runs much faster than the Casio Basic.
- Inside Casio Basic
For compatible commands, go to Inside Casio Basic.
* "Extended" = extended function or new command
- Basic Specification | Compatible | Extended | |
Display Area | ✔ | ||
Graphics Coordinate Systems | ✔ | ||
Control of Internal Cursor Row | ✔ | ||
- Basic Operation Commands | Compatible | Extended | |
→(Substitution) | ✔ | ||
" " (Display) | ✔ | ||
◢ (Dispplay & Pause) | ✔ | ||
? (input) [fx-5800P] | ✔ | ||
?→ (input) [fx-9860GII, fx-CG20/10] | ✔ | ||
- I/O Commands | Compatible | Extended | |
Getkey | ✔ | ||
Getkey1, Getkey2, Getkey3 | ✔ | ||
Locate X,Y,<value>[,R] | ✔ | ✔ | |
LocateYX Y,X,<value>[,R] | ✔ | ||
- Program Commands | Compatible | Extended | |
If... Then... [Else]... IfEnd | ✔ | ✔ | |
If... Then... ElseIf... [Else]... IfEnd | ✔ | ||
For... To... [Step...] Next | ✔ | ||
While... WhileEnd | ✔ | ||
Do... LpWhile | ✔ | ||
Switch... Case... Default... SwitchEnd | ✔ | ||
- Program Control Commands | Compatible | Extended | |
Break | ✔ | ||
Return | ✔ | ||
Stop | ✔ | ||
Prog "<file name>" | ✔ | ||
Prog "<fle name>",x,y,z... (Pass & Return values) | ✔ | ||
- Jump Commands | Compatible | Extended | |
Goto... Lbl | ✔ | ||
⇒ | ✔ | ||
Isz | ✔ | ||
Dsz | ✔ | ||
Gosub... Lbl... Return | ✔ | ||
- Relational Operators | Compatible | Extended | |
=, ≠, <, >, ≤, ≥ | ✔ | ||
- Logical Operators | Compatible | Extended | |
And, Or, Not, Nor | ✔ | ||
- Description Codes | Compatible | Extended | |
: (Multi-statement Command & Display suppression) | ✔ | ✔ | |
' (Comment Text Delimiter) | ✔ | ||
'/<Command available only on C.Basic> | ✔ | ||
- Numbers | Compatible | Extended | |
Type of Number | ✔ | ||
0x/0X, 0b/0B | ✔ | ||
- Variables | Compatible | Extended | |
A - Z (Capital Letter) | ✔ | ||
~ | ✔ | ||
a - z (Small Letter) | ✔ | ||
#, % (double and integer variables) | ✔ | ||
Local | ✔ | ||
- Array | Compatible | Extended | |
Dim Z / Z[ ] [fx-5800P], Dim A / A[ ] | ✔ | ||
- Matrix | Compatible | Extended | |
{m,n}→Dim Mat A (Allocates Memoryx) | ✔ | ||
[[...][...]...]→Mat A (Allocates & Initializes Memory) | ✔ | ✔ | |
<number>->Mat A (Initializes & Substitute to Matrix) | ✔ | ||
<string>->Mat A (Initializes & Substitute to Matrix) | ✔ | ||
Fill( ) (Initialize & Substitute to Matrix) | ✔ | ||
Mat A.x (x = p, b, w, l, f) (Type of Matrix) | ✔ | ||
Mat A[ ], Mat a [ ], A[ ], a[ ] (Expression of Matrix) | ✔ | ||
Mat A.v (VRAM access by 1bit Matrix) | ✔ | ||
'#Str (Handling String by Matrix) | ✔ | ||
#Mat 0, #Mat 1, Device Coordinate System | ✔ | ||
ElmSize( ), ColSize( ), RowSize( ) | ✔ | ||
Save, Load( ), IsExist( ) | ✔ | ||
Trn | |||
- Bitmap Commands | Compatible | Extended | |
dotGet( ), dotPut( ), dotTrim( ) | ✔ | ||
ReadGraph( ), WriteGraph( ) | ✔ | ||
dotLife (dedicated to game of life) | ✔ | ||
- Display Setup (text) | Compatible | Extended | |
Cls (Text) | ✔ | ||
ClrText (Text) | ✔ | ||
Eng | ✔ | ✔ | |
EngOn, EngOff | ✔ | ||
Norm | ✔ | ✔ | |
Sci | ✔ | ✔ | |
Fix | ✔ | ✔ | |
Deg, Rad, Gra | ✔ | ✔ | |
°, r (rad), g (gra), ▶DMS | ✔ | ||
Rnd, RndFix( ) | ✔ | ||
f, p, n, μ, m | ✔ | ||
k, M, G, T, P, E | ✔ | ||
- Mathematical Functions | Compatible | Extended | |
Many of key-in functions | ✔ | ||
Abs, Int, Frac, !, MOD( ) | ✔ | ||
sinh, cosh, tanh, sinh-1, cosh-1, tanh-1 | ✔ | ||
| |||
- Randum Number | Compatible | Extended | |
Ran#, RanInt#( ) | ✔ | ||
- Strings | Compatible | Extended | |
Str, StrJoin( ), StrLen( ), StrCmp( ), StrSrc( ) | ✔ | ||
StrLeft( ), StrRight( ), StrMid( ) | ✔ | ||
Exp▶Str( ), Exp( ), StrUpr( ), StrLwr( ) | ✔ | ||
StrInv( ), StrShift( ), StrRotate( ), \, + | ✔ | ||
Sprintf( ) | ✔ | ||
Str( ) | ✔ | ||
- Graphics Setup | Compatible | Extended | |
ClrGraph | ✔ | ||
ViewWindow | ✔ | ||
Xmin, Xmax, Xdot, Xscl, Xfct | ✔ | ||
Ymin, Ymax, Yscl, Yfct | ✔ | ||
AxesOn, AxesOff | ✔ | ||
GridOn, GridOff | ✔ | ||
LabelOn, LabelOff | ✔ | ||
CoordOn, CoordOff | ✔ | ||
S-L-Normal, S-L-Thick, S-L-Dot, S-L-Broken | ✔ | ||
- Graphics Sketch Commands | Compatible | Extended | |
Cls (Graphics) | ✔ | ||
ClrGraph | ✔ | ||
Text Y,X,<value> | ✔ | ||
Text Y,X,<value>[,N/R/O/V] | ✔ | ||
PxlOn Y,X | ✔ | ||
PxlOff Y,X | ✔ | ||
PxlChg Y,X | ✔ | ||
PxlTest(Y,X) | ✔ | ||
Plot | ✔ | ||
Line | ✔ | ||
PlotOn X,Y | ✔ | ||
PlotOff X,Y | ✔ | ||
F-Line X2,Y2,X1,T1 | ✔ | ||
F-Line X2,Y2,X1,Y1,C/X | ✔ | ||
Vertical X | ✔ | ||
Vertical X,C/X | ✔ | ||
Horizontal Y | ✔ | ||
Horizontal Y,C/X | ✔ | ||
Circle X,Y,R | ✔ | ||
Circle X,Y,R,C/X | ✔ | ||
SketchNormal, SketchThick, SketchDot, SketchBroken | ✔ | ||
StoPict, RclPict | ✔ | ✔ | |
Rect, FillRect | ✔ | ||
FKeyMenu(<n>,<string>[,R]) | ✔ | ||
PutDispDD | ✔ | ||
Screen | ✔ | ||
- Graph | |||
Y | |||
Graph Y= | |||
DrawGraph | |||
- Timer Command | Compatible | Extended | |
%, Ticks | ✔ | ||
- Debug Command | Compatible | Extended | |
ACBreak | ✔ | ||
- VRAM | |||
RefreshCtrl, RefreshTime | |||
Screen, PutDispDD | |||
- Function Key Menu | |||
FkeyMenu( ) | |||
- Excute Mode | Compatible | Extended | |
'#CBINT, "#CBint | ✔ | ||
'#CBASIC, '#CBasic, '#CBDBL, '#CBdbl | ✔ | ||
- Hardware Control | Compatible | Extended | |
Backlight | ✔ | ||
- Machine Language Commands | |||
SysCall( ), Call( ) | ✔ | ||
Peek( ), Poke() | ✔ | ||
ValPr( ), ProgPr( ) | ✔ | ||
- 関連記事
-
- fx-CG20 / CG50 用お勧めの充電池と充電器 2022/12/22
- お勧めの充電池と充電器 (2) 2021/07/18
- C.Basic Command Reference 2014/08/01
- VRAM Access by 1bit Matrix 2014/08/01
- Expression of Matrix (C.Basic) 2014/08/01