Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Chinese BASIC

From Wikipedia, the free encyclopedia
Chinese-localized versions of the BASIC programming language
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
The topic of this articlemay not meet Wikipedia'sgeneral notability guideline. Please help to demonstrate the notability of the topic by citingreliable secondary sources that areindependent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to bemerged,redirected, ordeleted.
Find sources: "Chinese BASIC" – news ·newspapers ·books ·scholar ·JSTOR
(June 2024) (Learn how and when to remove this message)
icon
This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing 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 severalChinese-localized versions of theBASICprogramming language in the early 1980s.

Versions

[edit]

At least two versions of Chinese BASIC were modifiedApplesoft BASIC that accepted Chinese commands and variables. They were built into someTaiwan-madeApple II clones. One of these was shipped with the best-selling MultitechMicroprofessor II (known asAcer today). Another version was shipped withMiTAC's Little Intelligent Computer (小神通).[1][unreliable source?]

Multitech also developed aZilog 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 andLatin alphabet variables. For example, you may usePRINT A in line 50,印 A in line 200 and? A in line 250. They all do the same thing—to print out the value ofA on screen.

Chinese (traditional) keyboard layout
Chinese BASIC
commands are printed inblue
 Applesoft BASIC
10 卜=0 10Y=0
20 水, 火 20INPUTE,F
30 日 = 水 30FORA=ETOF
40 卜 = 卜+對數(日) 40Y=Y+LOG(A)
50下一 50NEXTA
60 60PRINTY

This program calculates the sum oflog (E) + log (E+1) + log (E+2) + ... + log (F). TheChinese characters used asvariables are the 24 radicals of theCangjie method, one of the earliestQWERTY keyboard-compatibleChinese input methods.

The significant length of an Applesoft BASIC variable name is restricted to twobytes. Therefore, the variablesTHISNUMBER andTHATNUMBER 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 fromthe original on 2006-05-03.

External links

[edit]
Dialects of theBASIC 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
Withobject
extensions
Proprietary
Free and
open source
RAD
designers
Proprietary
Free and
open source
Defunct
Retrieved from "https://en.wikipedia.org/w/index.php?title=Chinese_BASIC&oldid=1278795740"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp