Chinese BASIC () is the name given to several
Chinese
Chinese can refer to:
* Something related to China
* Chinese people, people of Chinese nationality, citizenship, and/or ethnicity
**''Zhonghua minzu'', the supra-ethnic concept of the Chinese nation
** List of ethnic groups in China, people of v ...
-localized versions of the
BASIC
BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
programming language
A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language.
The description of a programming l ...
in the early 1980s.
Versions
At least two versions of Chinese BASIC were modified
Applesoft BASIC
Applesoft BASIC is a dialect of Microsoft BASIC, developed by Marc McDonald and Ric Weiland, supplied with the Apple II series of computers. It supersedes Integer BASIC and is the BASIC in ROM in all Apple II series computers after the origina ...
that accepted Chinese commands and variables. They were built into some
Taiwan
Taiwan, officially the Republic of China (ROC), is a country in East Asia, at the junction of the East and South China Seas in the northwestern Pacific Ocean, with the People's Republic of China (PRC) to the northwest, Japan to the northe ...
-made
Apple II
The Apple II (stylized as ) is an 8-bit home computer and one of the world's first highly successful mass-produced microcomputer products. It was designed primarily by Steve Wozniak; Jerry Manock developed the design of Apple II's foam-mold ...
clone
Clone or Clones or Cloning or Cloned or The Clone may refer to:
Places
* Clones, County Fermanagh
* Clones, County Monaghan, a town in Ireland
Biology
* Clone (B-cell), a lymphocyte clone, the massive presence of which may indicate a pathologi ...
s. One of these was shipped with the best-selling Multitech
Microprofessor II
Microprofessor II (MPF II), introduced in 1982, was Multitech's (later renamed Acer) second branded computer product and also one of the earliest Apple II clones. It does not look like most other computers. The case of the MPF II was a slab with a ...
(known as
Acer
Acer may refer to:
* ''Acer'' (plant), the genus of trees and shrubs commonly known as maples
* Acer Inc., a computer company in Taiwan
** Acer Laboratories Incorporated, a subsidiary company of Acer, Inc., that designs and manufactures integrate ...
today). Another version was shipped with
MiTAC
MiTAC Holdings Corporation, formerly MiTAC International Corp. () is a Taiwanese electronics company established 8 December 1982. It is a subsidiary of MiTAC-Synnex Group. Through a 100% stock swap from MiTAC International Corp., MiTAC Holdings ...
's Little Intelligent Computer ().
http://www.apple2clones.com/?q=image/tid/91
/ref>
In addition to Apple II clones, Multitech also developed a Zilog Z80
The Z80 is an 8-bit computing, 8-bit microprocessor introduced by Zilog as the startup company's first product. The Z80 was conceived by Federico Faggin in late 1974 and developed by him and his 11 employees starting in early 1975. The first wor ...
-based port of the Chinese BASIC for its own line of high-end computers.
Example
In a typical Chinese BASIC environment, Chinese and English commands are interchangeable. It may also accept Chinese and Latin alphabet
The Latin alphabet or Roman alphabet is the collection of letters originally used by the ancient Romans to write the Latin language. Largely unaltered with the exception of extensions (such as diacritics), it used to write English and the ...
variables. For example, you may use in line 50, in line 200 and in line 250. They all do the same thing—to print out the value of on screen.
This program calculates the sum of . The Chinese characters
Chinese characters () are logograms developed for the writing of Chinese. In addition, they have been adapted to write other East Asian languages, and remain a key component of the Japanese writing system where they are known as '' kan ...
used as variables are the 24 radicals of the Cangjie method
The Cangjie input method (Tsang-chieh input method, sometimes called Changjie, Cang Jie, Changjei or Chongkit) is a system for entering Chinese characters into a computer using a standard computer keyboard. In filenames and elsewhere, the name Ca ...
, one of the earliest QWERTY
QWERTY () is a keyboard layout for Latin-script alphabets. The name comes from the order of the first six keys on the top left letter row of the keyboard ( ). The QWERTY design is based on a layout created for the Sholes and Glidden ty ...
keyboard-compatible Chinese input methods.
The significant length of an Applesoft BASIC variable name is restricted to two byte
The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable unit ...
s. Therefore, the variables and are treated as the same. In Multitech's Chinese BASIC, a variable can be 3 bytes long (one Chinese character + one numeral).
See also
* Non-English-based programming languages
Non-English-based programming languages are programming languages that do not use keywords taken from or inspired by English vocabulary.
Prevalence of English-based programming languages
The use of the English language in the inspiration fo ...
References
External links
A page of the Chinese BASIC manual
(in traditional Chinese)
RoboMind: educational programming language in Chinese
{{BASIC
Non-English-based programming languages
Discontinued Microsoft BASICs
Chinese-language computing
BASIC programming language family