BBC Basic Console Mode

栏目: IT技术 · 发布时间: 6年前

内容简介:The Console Mode editions take their input fromLimited program entry and editing capabilities are provided in Immediate Mode by means of the AUTO, DELETE, EDIT, LIST [IF], LISTO, LOAD, NEW, RENUMBER and SAVE commands, but in the case of large programs you
The BBC BASIC Console Mode editions are advanced cross-platform implementations of BBC BASIC for Windows (64-bit), Linux (x86, 64-bit), Mac OS-X (64-bit) and Raspberry Pi (Raspbian, 32-bit). They do not support sound or graphics but otherwise are highly compatible with BBC BASIC for Windows and BBC BASIC for SDL 2.0 . They share with those dialects many new and advanced features including data structures, PRIVATE variables, an EXIT statment, long strings, timer interrupts, an address-of operator, byte variables, a line continuation character, indirect procedure and function calls and improved numeric accuracy. Up to 256 Megabytes of memory is provided for the user's program, data and stack.

The Console Mode editions take their input from stdin and send their output to stdout so may be run at a regular command prompt or in a client-server context (e.g. through a network or serial connection, or even via the internet). The console/terminal is assumed to be VT-100 compatible, which the great majority are, in which case most of the standard BBC BASIC VDU commands behave as expected (with the exception of graphics commands), although text viewports are not supported. Alternatively these editions may be used in CGI ( Common Gateway Interface ) applications, or as a shell replacement. Common shell commands may be accessed by prefixing them with a star (*), in the usual BBC BASIC way.

Limited program entry and editing capabilities are provided in Immediate Mode by means of the AUTO, DELETE, EDIT, LIST [IF], LISTO, LOAD, NEW, RENUMBER and SAVE commands, but in the case of large programs you are recommended to use either the BBC BASIC for Windows or BBC BASIC for SDL 2.0 IDE . The LOAD command will load a program in internal (tokenised) format or as a plain-text file (line numbers will be added if necessary). A BASIC program may be executed automatically by specifying it as a command-line parameter (it must be in tokenised format) or by giving it the same name as the executable but with a .bbc extension.

The Console Mode editions incorporate an assembler for the appropriate CPU (a 64-bit x86 assembler in the case of the Windows, MacOS and Linux editions, and a 32-bit ARM assembler in the case of the Raspbian edition). You can access Application Program Interface (API) functions from assembler code and from BASIC (using the SYS statement), allowing an experienced programmer to produce sophisticated applications.

These editions are entirely free and may be downloaded for the supported platforms as follows:

Windows edition (64-bits) (121 Kbytes)
Mac OS-X edition (64-bits) (102 Kbytes)
Linux edition (64-bits, x86) (96 Kbytes)
Raspberry Pi edition (32-bits) (75 Kbytes)

In each case the zip file contains the executable, some libraries and a few demonstration BBC BASIC programs; the contents should be extracted to a suitable directory. You may wish to add this directory to your PATH so that the executable and libraries can be accessed from 'anywhere'.

Version Date Modification details
0.24 22-Jul-2020 'Fatal' errors return to immediate mode rather than quitting; short text programs should not be misidentified as tokenised.
0.23 18-Jul-2020 Introduced different timeouts for one-way (client → server) and round-trip (server → client → server) communication.
0.22 17-Jul-2020 Escape timeout doubled from 100 to 200 ms.
0.21 13-Jul2020 The LOAD command will now load a program in plain-text format as well as in ('Russell') tokenised format.
0.20 11-Jul-2020 Console input handled in a separate thread.

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

从规范出发的程序设计

从规范出发的程序设计

[美] Carroll Morgan / 裘宗燕 / 机械工业出版社 / 2002-8 / 45.00元

本书详细论述了有关规范程序设计的内容,包括:程序和精化、谓词演算、选择、迭代、构造类型、模块和封装等,最后几章还包含了大量的实例研究和一些更高级的程序设计技术。本书提倡一种严格的程序开发方法,分析问题要用严格方式写出程序的规范,而后通过一系列具有严格理论基础的推导,最终得到可以运行的程序。 本书是被世界上许多重要大学采用的教材,适于计算机及相关专业的本科生和研究生使用。一起来看看 《从规范出发的程序设计》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换