Jump to content
Wikipedia The Free Encyclopedia

Casio BASIC

From Wikipedia, the free encyclopedia
Casio calculator programming language
This article's lead section may be too long. Please read the length guidelines and help move details into the article's body. (October 2025) (Learn how and when to remove this message)

Casio BASIC is a programming language used in the Casio calculators, such as the ClassPad, PRIZM Series, fx-9750G series, fx-9860G Series, fx-5800P, Algebra FX and CFX graphing calculators. It is also known as "BasicLike" in some models.

This programming language has nothing to do with the more or less standard BASIC, which incorporated from the beginning of the ’80s, the so-called "Pocket computers" or "Pocket PC" from Casio, among which the FX series can be found. -702P, Series 100 (PB-100), Series 700 (PB-100), and many others. The version of BASIC of these machines is called Casio POCKETPC BASIC.[1]

The language is a linear structured, BASIC-based programming language. It was devised to allow users to program in commonly performed calculations, such as the Pythagorean theorem and complex trigonometric calculations.

Output from the program can be in the form of scrolling or located text, graphs, or by writing data to lists and matrices in the calculator memory. Casio also makes label printers which can be used with rolls of paper for the Casio BASIC calculators.[2] Programs, variables, data, and other items can be exchanged from one calculator to another (via SB-62 cable) and to and from a computer (via USB cable). All new models of Casio graphing calculators have both ports and include both cables.

The Casio calculators, like other big three manufacturers’ machines, can acquire data from instruments via a data logger or data acquisition unit. Probes for temperature, light intensity, pH, sound intensity (dBA), voltage and others attach to the data logger [3] . Home-made and Do-it-yourself (DIY) data acquisition units and sensors can be built and configured for use with Casio calculators [4] . Data can be collected from weather instruments and other sensors to record heart rate, blood pressure, galvanic skin resistance, EKG and so on.

Like Tiny BASIC, the BASIC interpreter for Casio BASIC restricts variable names to the letters A-Z with just one predefined array (in Casio BASIC, Z, as compared to A in Level I BASIC and @ in Palo Alto Tiny BASIC). For Casio's graphical calculators, italic x, y, r and θ are also used as variable names for certain calculations. Therefore, extending the array size of predefined variable names from 26 to 30.

Numerical data can be stored in the lists and matrices available on Casio calculators. This data can be used to create sprites for non-text programs.[5] In this way, the language can also be used to create games, such as Pong , Monopoly and role-playing games.

Additionally, characters can be stored as strings in the string memory.[6]

Examples

[edit ]

Hello world program in Casio BASIC:

"Hello, world!"

Or by using the Print command:

Print "Hello World"

Program to calculate the Fibonacci sequence:

"Generate # of Fibonacci Sequence..."
?→N
N≤0⇒Stop
0→A
1→B
For 1→J To N Step 1
A◢
A+B→C
B→A
C→B
Next

Program to calculate the Pythagorean theorem:

ClrText
Print "1) SOLVE C"
Print "2) SOLVE A OR B"
Input X, "CHOOSE 1) OR 2)"
If X=1
Then 
Input A, "INPUT A:"
Input B, "INPUT B:"
Print √(A^2+B^2)
IfEnd
If X=2
Then
Input C, "INPUT C:"
Input A, "KNOWN (A OR B)"
Print √(C^2-A^2)
IfEnd

References

[edit ]
  1. ^ "Historia y evolución del Casio PocketPC BASIC" (in Spanish). Retrieved 2021年09月10日.
  2. ^ Casio CFX-9850 PB Users' Manual, Chapter 21
  3. ^ Casio CFX-9850 PB Users' Manual, Chapter 17
  4. ^ Fenton, Michael. "Michael Fenton — Education Research Project". mikefentonnz.github.io. Retrieved 2025年11月03日.
  5. ^ "Casio BASIC matrix sprite tutorial". Archived from the original on 2014年05月19日. Retrieved 2014年05月19日.
  6. ^ Casio fx-9860GII Software User's Guide, Version 3.50, Chapter 2
[edit ]

See also

[edit ]
Dialects of the BASIC programming language (list)
Classic
Microsoft
Texas Instruments
Hewlett-Packard
Locomotive Software
Microcomputers
Minicomputers
Time-sharing computers
Other
Extenders
Procedure-
oriented
Proprietary
Free and
open source
With object
extensions
Proprietary
Free and
open source
RAD
designers
Proprietary
Free and
open source
Defunct

AltStyle によって変換されたページ (->オリジナル) /