Chinese BASIC

Chinese BASIC

Chinese BASIC (中文培碁) is the name given to several Chinese-localized versions of the BASIC programming language in the early 1980s.

Contents

Versions

At least two versions of Chinese BASIC were modified Applesoft BASIC that accepted Chinese commands and variables. They were built into some Taiwan-made Apple II clones. One of these was shipped with the best-selling Multitech Microprofessor II (known as Acer today). Another version was shipped with MiTAC's Little Intelligent Computer (小神通) [1].

In addition to Apple II clones, Multitech also developed a Zilog Z80-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 variables. For example you may use PRINT A in line 50, 印 A in line 200 and ? A in line 250. They all do the same thing -- to print out the value of A on screen.

Chinese BASIC
commands are printed in blue
  Applesoft BASIC
10 卜=0   10 Y=0
20 水, 火   20 INPUT E, F
30 日 = 水   30 FOR A = E TO F
40 卜 = 卜+對數(日)   40 Y = Y + LOG (A)
50 下一   50 NEXT A
60   60 PRINT Y

Keyboard layout Chinese Traditional.png

This program calculates the sum of log (E) + log (E+1) + log (E+2) + ... + log (F). The Chinese characters used as variables are the 24 radicals of the Cangjie method, one of the earliest QWERTY keyboard-compatible Chinese input methods. The author of the example program may have been Chu Bong-Foo[citation needed], the inventor of the Cangjie method and one of the founding fathers of modern Chinese computing.

The length of an Applesoft BASIC variable name is restricted to two bytes. Therefore, the variables THISNUMBER and THATNUMBER are treated in the same way. In Multitech's Chinese BASIC, a variable can be 3 bytes long (one Chinese character + one numeral).

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • BASIC Chinois — Le BASIC chinois (中文培基) est le nom donné à plusieurs versions en langue chinoise du langage BASIC au début des années 1980. Exemple Par exemple PRINT A en ligne 50, 印 A en ligne 200 and ? A en line 250. font tous la même chose afficher la valeur… …   Wikipédia en Français

  • Basic chinois — Le BASIC chinois (中文培基) est le nom donné à plusieurs versions en langue chinoise du langage BASIC au début des années 1980. Exemple Par exemple PRINT A en ligne 50, 印 A en ligne 200 and ? A en line 250. font tous la même chose afficher la valeur… …   Wikipédia en Français

  • Chinese language — Unless otherwise specified, Chinese texts in this article are written in (Simplified Chinese/Traditional Chinese; Pinyin) format. In cases where Simplified and Traditional Chinese scripts are identical, the Chinese term is written once. Chinese… …   Wikipedia

  • BASIC chinois — Le BASIC chinois (中文培基) est le nom donné à plusieurs versions en langue chinoise du langage BASIC au début des années 1980. Exemple Par exemple PRINT A en ligne 50, 印 A en ligne 200 and ? A en line 250. font tous la même chose afficher la valeur… …   Wikipédia en Français

  • Chinese character — Chinese pic=Hanzi.svg!200px picc Traditional Chinese (hanzi, kanji, hanja, and hán tự) Right: Chinese character in Simplified Chinese s=汉字 t=漢字 kanji=漢字 p=Audio|zh han4zi4.ogg|Hànzì j=hon3 zi6 poj=Hàn jī teo=hang3 ri7 lmz=IPA| [høz] hiragana=かんじ… …   Wikipedia

  • Chinese cuisine — Chinese food redirects here. For the Americanized version, see American Chinese cuisine. This article is part of the series …   Wikipedia

  • Basic English — Basic English, also known as Simple English, is an English based controlled language created (in essence as a simplified subset of English) by linguist and philosopher Charles Kay Ogden as an international auxiliary language, and as an aid for… …   Wikipedia

  • Chinese American — Chinese Americans 華裔美國人 or 美籍華人; 华裔美国人 or 美籍华人 …   Wikipedia

  • Chinese immigration to the United States — consists of three major waves with the first beginning in the early 19th century. For nearly two centuries, the history of Chinese immigration to the United States has witnessed hardship as well as success.The Chinese have been arriving in large… …   Wikipedia

  • Chinese American history — is the history of Chinese Americans or the history of ethnic Chinese in the United States. Chinese immigration to the U.S. consisted of three major waves, with the first beginning in the 19th century. Chinese immigrants in the 19th century worked …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”