C.Basic Command Reference

 C.Basic - Index
< English | 日本語

Content is checked by fx-9860GII (OS 2.04).
This is on-going project, any changes may be made.


- 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.


- C.Basic Command Reference

* "Compatible" = compatible with Casio Basic
* "Extended"    = extended function or new command

- Basic SpecificationCompatible  Extended
Display Area
Graphics Coordinate Systems
Control of Internal Cursor Row
 
- Basic Operation CommandsCompatible  Extended
 (Substitution)
" " (Display)
(Dispplay & Pause)
? (input) [fx-5800P]
?→ (input) [fx-9860GII, fx-CG20/10]
 
- I/O CommandsCompatible  Extended
Getkey
Getkey1, Getkey2, Getkey3
Locate X,Y,<value>[,R]
LocateYX Y,X,<value>[,R]
 
- Program CommandsCompatible  Extended
If... Then... [Else]... IfEnd
If... Then... ElseIf... [Else]... IfEnd
For... To... [Step...] Next
While... WhileEnd
Do... LpWhile
Switch... Case... Default... SwitchEnd
 
- Program Control CommandsCompatible  Extended
Break
Return
Stop
Prog "<file name>"
Prog "<fle name>",x,y,z... (Pass & Return values) 
 
- Jump CommandsCompatible  Extended
Goto... Lbl
Isz
Dsz
Gosub... Lbl... Return
  
- Relational OperatorsCompatible  Extended
=, ≠, <, >, ≤, 
 
- Logical OperatorsCompatible  Extended
And, Or, Not, Nor
 
- Descriptio CodesCompatible  Extended
: (Multi-statement Command & Display suppression)
' (Comment Text Delimiter)
'/<Command available only on C.Basic>
  
- NumbersCompatibleExtended
Type of Number
0x/0X, 0b/0B
 
- VariablesCompatible  Extended
A - Z (Capital Letter)
~
a - z (Small Letter)
#, % (double and integer variables)
Local
 
- ArrayCompatible  Extended
Dim Z / Z[ ] [fx-5800P], Dim A / A[ ]
 
- MatrixCompatible  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 CommandsCompatible  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 FunctionsCompatible  Extended
Many of key-in functions✔
Abs, Int, Frac, !, MOD( )✔
sinh, cosh, tanh, sinh-1, cosh-1, tanh-1 ✔
 
- Randum NumberCompatible  Extended
Ran#, RanInt#( )
 
- StringsCompatible  Extended
Str, StrJoin( ), StrLen( ), StrCmp( ), StrSrc( )✔
StrLeft( ), StrRight( ), StrMid( )✔
Exp▶Str( ), Exp( ), StrUpr( ), StrLwr( )✔
StrInv( ), StrShift( ), StrRotate( ), \, +
Sprintf( )✔
Str( )
  
- Graphics SetupCompatible  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 CommandsCompatible  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 CommandCompatible  Extended
%, Ticks✔
 
- Debug CommandCompatible  Extended
ACBreak
 
- VRAM
RefreshCtrl, RefreshTime
Screen, PutDispDD
 
- Function Key Menu
FkeyMenu( )
 
- Excute ModeCompatible  Extended
'#CBINT, "#CBint
'#CBASIC, '#CBasic, '#CBDBL, '#CBdbl
 
- Hardware ControlCompatible  Extended
 Backlight
 
- Machine Language Commands
SysCall( ), Call( )
Peek( ), Poke()
ValPr( ), ProgPr( )
 
  






Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.



関連記事

テーマ : プログラム関数電卓
ジャンル : コンピュータ

コメントの投稿

非公開コメント

最新記事
最新コメント
カテゴリ
C# (3)
検索フォーム
Visitors
Online Counter
現在の閲覧者数:
プロフィール

やす (Krtyski)

Author:やす (Krtyski)
since Oct 30, 2013


プログラム関数電卓は、プログラムを作り・使ってナンボ!

実際に触って気づいたこと、自作プログラム、電卓プログラミングについて書いています

おもしろい・役に立つならクリックしてください。励みになります。
にほんブログ村 IT技術ブログ 開発言語へ
にほんブログ村


人気ブログランキングへ


FC2ブログランキングへ


写真: 「4駆で泥んこ遊び@オックスフォード郊外」

リンク
月別アーカイブ
Sitemap

全ての記事を表示する

RSSリンクの表示
最新トラックバック
ブロとも申請フォーム

この人とブロともになる

QRコード
QR