For faster navigation, this Iframe is preloading the Wikiwand page for Chinese BASIC.

Chinese BASIC

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) The topic of this article may not meet Wikipedia's general notability guideline. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.Find sources: "Chinese BASIC" – news · newspapers · books · scholar · JSTOR (June 2024) (Learn how and when to remove this message) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: "Chinese BASIC" – news · newspapers · books · scholar · JSTOR (June 2024) (Learn how and when to remove this message)

Chinese BASIC (Chinese: 中文培基; pinyin: Zhōngwén Péijī) is the name given to several Chinese-localized versions of the BASIC programming language in the early 1980s.

Versions

[edit]

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][unreliable source?]

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

[edit]

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 (traditional) keyboard layout
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

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 significant length of an Applesoft BASIC variable name is restricted to two bytes. Therefore, the variables THISNUMBER and THATNUMBER are treated as the same. In Multitech's Chinese BASIC, a variable can be 3 bytes long (one Chinese character + one numeral).

See also

[edit]

References

[edit]
  1. ^ Ernest (2004-01-10). "Apple II Clones -". apple2clones.com. Archived from the original on 2006-05-03.
[edit]
{{bottomLinkPreText}} {{bottomLinkText}}
Chinese BASIC
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?