BBC BASIC

BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Literacy Project in 1981.

BBC BASIC
Sample Code
REM Acorn Archimedes version

ON ERROR : ON ERROR OFF : PRINT REPORT$; " at line ";ERL : END
MODE MODE : REM clears the screen
PROC_triangle(700,700,500,200,500,900,"F")
END

DEF PROC_triangle(x1%,y1%,x2%,y2%,x3%,y3%,fill$)
LOCAL triangle_fill_plot_code%
triangle_fill_plot_code% = &55
MOVE x1%,y1%
DRAW x2%,y2%
IF fill$="F" THEN
PLOT triangle_fill_plot_code%,x3%,y3%
ELSE
DRAW x3%,y3% : DRAW x1%,y1%
ENDIF
ENDPROC : REM of PROC_triangle()

DeveloperAcorn Computers Ltd
First appeared1981 (1981)
PlatformBBC Microcomputer (6502)
Acorn Archimedes (ARM)
Acorn RISC PC (ARM / StrongARM)
OSAcorn 6502 MOS
Acorn RISC OS
Influenced
3rd Party ports to MS Windows
Continuing ARM support by 3rd Parties

It was originally supplied on an installed ROM for the BBC Microcomputer which used a 6502 microprocessor. When Acorn produced the Archimedes computer which used their ARM processor, further versions of BBC BASIC were produced. Acorn included a built in assembler, first for the 6502 and later for the ARM2 processor.

Initially the BBC specified compatibility with Microsoft BASIC. Acorn were already extending their earlier Atom BASIC to include structured programming constructs. Particularly on the later Archimedes computers as the memory constraints reduced, BBC BASIC incorporated a more complete set of structured programming constructs commonly found in the ALGOL 60 group of computer languages.

Alongside Acorn's version of BBC BASIC on the Archimedes, third party companies produced compiled versions of the language. Development and support has continued after the demise of Acorn Computers Ltd for newer ARM based computers. BBC BASIC is now available on other platforms either for emulators such as on MS Windows or natively.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.