Casio BASIC

Last updated

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

Contents

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, as with those of many of the other big three manufacturers' machines, can acquire data from instruments via a data logger to which probes for temperature, light intensity, pH, sound intensity (dBA), voltage and other electrical parameters, as well as other readings, and custom probes to attach to the data logger [3] can be built and configured for use with the data logger and calculator. Existing instruments can also be modified to interface with the calculator-data logger, in order to collect such data including such things as weather instruments and means of collecting data such as pulse, 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. [4] 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. [5]

Examples

Hello world program in Casio BASIC:

"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

Related Research Articles

<span class="mw-page-title-main">Calculator</span> Electronic device used for calculations

An electronic calculator is typically a portable electronic device used to perform calculations, ranging from basic arithmetic to complex mathematics.

<span class="mw-page-title-main">Graphing calculator</span> Electronic calculator capable of plotting graphs

A graphing calculator is a handheld computer that is capable of plotting graphs, solving simultaneous equations, and performing other tasks with variables. Most popular graphing calculators are programmable calculators, allowing the user to create customized programs, typically for scientific, engineering or education applications. They have large screens that display several lines of text and calculations.

<span class="mw-page-title-main">Scientific calculator</span> Calculator designed to calculate problems in science, engineering, and mathematics

A scientific calculator is an electronic calculator, either desktop or handheld, designed to perform calculations using basic and complex mathematical operations and functions. They have completely replaced slide rules and are used in both educational and professional settings.

TI-BASIC is the official name of a BASIC-like language built into Texas Instruments (TI)'s graphing calculators. TI-BASIC is a language family of three different and incompatible versions, released on different products:

<span class="mw-page-title-main">Casio FX-850P</span>

The Casio FX-850P is a scientific calculator introduced in 1987 and sold until 1999.

<span class="mw-page-title-main">Tandy Pocket Computer</span>

The Tandy Pocket Computer or TRS-80 Pocket Computer is one of a line of 1980s small pocket computers—calculator-sized programmable computing devices—sold by Tandy Corporation under the "Tandy" or "RadioShack TRS-80" brands.

There are various ways in which calculators interpret keystrokes. These can be categorized into two main types:

<span class="mw-page-title-main">Calculator watch</span> Type of watch with calculator functionality

A calculator watch is a digital watch with a built-in calculator, usually including buttons on the watch face. Calculator watches were first introduced in the 1970s and continue to be produced, despite falling from their peak popularity during the 1980s. The most dominant brands were the Casio Databank series and Timex.

<span class="mw-page-title-main">Casio fx-7000G</span> Graphing calculator by Casio

The Casio FX-7000G is a calculator which is widely known as being the world's first graphing calculator available to the public. It was introduced to the public and later manufactured between 1985 and c. 1988. Notable features are its ability to graph functions, and that it is programmable. The calculator offers 82 scientific functions and is capable of manual computation for basic arithmetic problems.

Programmable calculators are calculators that can automatically carry out a sequence of operations under control of a stored program. Most are Turing complete, and, as such, are theoretically general-purpose computers. However, their user interfaces and programming environments are specifically tailored to make performing small-scale numerical computations convenient, rather than general-purpose use.

<span class="mw-page-title-main">Casio ClassPad 300</span> Family of graphing calculators by Casio

The Casio ClassPad 300, ClassPad 330 and fx-CP400 are stylus based touch-screen graphing calculators. It comes with a collection of applications that support self-study, like 3D Graph, Geometry, eActivity, Spreadsheet, etc. A large 160x240 pixel LCD touch screen enables stylus-based operation. It resembles Casio's earlier Pocket Viewer line. HP and Texas Instruments attempted to release similar pen based calculators (the HP Xpander and PET Project, but both were cancelled before release to the market.

<span class="mw-page-title-main">HP-16C</span> Programmable calculator produce by Hewlett-Packard

The HP-16C Computer Scientist is a programmable pocket calculator that was produced by Hewlett-Packard between 1982 and 1989. It was specifically designed for use by computer programmers, to assist in debugging. It is a member of the HP Voyager series of programmable calculators. It was the only programmer's calculator ever produced by HP, though many later HP calculators have incorporated most of the 16C's functions.

<span class="mw-page-title-main">Casio 9850 series</span> Series of graphing calculators by Casio

The Casio CFX-9850G series is a series of graphing calculators manufactured by Casio Computer Co., Ltd. from 1996 to 2008.

The Casio fx-9860G is a series of graphing calculators manufactured by Casio, successor of the fx-9750G PLUS/CFX-9850 PLUS/CFX-9950 PLUS/CFX-9970 family of calculators. All of them are capable of being programmed by means of sophisticated languages and tools including assembly language, Basic variants, and ports of programming languages such as C, as well as hosting add-ins which are compiled on a computer and then downloaded to the calculator.

<span class="mw-page-title-main">Casio graphic calculators</span> Overview of the graphic calculators made by Casio

Graphic calculators made by Casio include the touchscreen ClassPad 300 as well as the models with traditional buttons which can be divided into two main generations listed below. Casio produced the world's first graphing calculator, the fx-7000G.

<span class="mw-page-title-main">Casio fx-3650P</span> Programmable scientific calculator produced by Casio

Casio fx-3650P is a programmable scientific calculator manufactured by Casio Computer Co., Ltd. It can store 12 digits for the mantissa and 2 digits for the exponent together with the expression each time when the "EXE" button is pressed. Also, the calculator can use the previous result to do calculations by pressing "Ans". It is one of the calculators approved by HKEAA to be used in public examinations in Hong Kong, such as HKDSE.

<span class="mw-page-title-main">Casio FX-702P</span>

The FX-702P is a Pocket Computer, manufactured by Casio from 1981 to 1984.

Casio V.P.A.M. calculators are scientific calculators made by Casio which use Casio's Visually Perfect Algebraic Method (V.P.A.M.), Natural Display or Natural V.P.A.M. input methods.

<span class="mw-page-title-main">Casio Algebra FX Series</span> Series of Casio graphing calculators

The Casio Algebra FX series was a line of graphing calculators manufactured by Casio Computer Co., Ltd from 1999 to 2003. They were the successor models to the CFX-9970G, the first Casio calculator with computer algebra system, or CAS, a program for symbolic manipulation of mathematical expressions. The calculators were discontinued and succeeded by the Casio ClassPad 300 in 2003.

<span class="mw-page-title-main">TI-BASIC 83</span> Calculator programming language

TI-BASIC 83,TI-BASIC Z80 or simply TI-BASIC, is the built-in programming language for the Texas Instruments programmable calculators in the TI-83 series. Calculators that implement TI-BASIC have a built in editor for writing programs. While the considerably faster Z80 assembly language is supported for the calculators, TI-BASIC's in-calculator editor and more user friendly syntax make it easier to use. TI-BASIC is interpreted.

References

  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. "Casio BASIC matrix sprite tutorial". Archived from the original on 2014-05-19. Retrieved 2014-05-19.
  5. Casio fx-9860GII Software User's Guide, Version 3.50, Chapter 2

See also