Английская Википедия:Chinese BASIC

Материал из Онлайн справочника
Версия от 23:14, 17 февраля 2024; EducationBot (обсуждение | вклад) (Новая страница: «{{Английская Википедия/Панель перехода}} '''Chinese BASIC''' ({{zh|c=中文培基|p=Zhōngwén Péijī}}) is the name given to several Chinese-localized versions of the BASIC programming language in the early 1980s. == 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...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску

Chinese BASIC (Шаблон:Zh) is the name given to several Chinese-localized versions of the BASIC programming language in the early 1980s.

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 (Шаблон:Lang).[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 Шаблон:Mono in line 50, Шаблон:Mono in line 200 and Шаблон:Mono in line 250. They all do the same thing—to print out the value of Шаблон:Mono on screen.

Файл:Keyboard layout Chinese Traditional.png
Chinese (traditional) keyboard layout
Chinese BASIC
commands are printed in blue
  Applesoft BASIC
Шаблон:Mono   Шаблон:Code
Шаблон:Mono   Шаблон:Code
Шаблон:Mono   Шаблон:Code
Шаблон:Mono   Шаблон:Code
Шаблон:Mono   Шаблон:Code
Шаблон:Mono   Шаблон:Code

This program calculates the sum of Шаблон:Math. 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 Шаблон:Mono and Шаблон:Mono are treated as the same. In Multitech's Chinese BASIC, a variable can be 3 bytes long (one Chinese character + one numeral).

See also

References

Шаблон:Reflist

External links

Шаблон:BASIC