Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

BASIC 8

From Wikipedia, the free encyclopedia

BASIC 8 (orBASIC 8.0) – "The Enhanced Graphics System For The C128" – was an American-designed graphics system developed by Walrusoft ofGainesville, Florida[1] and published in 1986 by Patech Software ofSomerset, New Jersey. The system was anextension ofCommodore'sBASIC 7.0 for theCommodore 128 computer. BASIC 8.0 provided commands lacking in BASIC 7.0 to generate (color)graphics in the C128's high-resolution 80-column mode (640×200pixels) forRGB monitors.

Background

[edit]
This section'stone or style may not reflect theencyclopedic tone used on Wikipedia. See Wikipedia'sguide to writing better articles for suggestions.(April 2017) (Learn how and when to remove this message)

The problem

[edit]

Unlike its competitors, such as theApple II andAtari 8-bit computers, Commodore’sBASIC 2.0 programming language built into theCommodore 64 (C-64) lacks commands for generating sound and high-resolution,bit-mapped graphics, and responding tojoysticks andgame paddles.  Instead, awkward and slow BASICPEEK and POKE sequences, or custom-writtenassembly language routines, are required to accomplish these tasks.  The lack of suitable BASIC commands led to the development of many third-party language extensions, such asSimons' BASIC, greatly reducing the complication of writing games in BASIC.

Upon its introduction in 1985, theCommodore 128 (C-128) had BASIC 7.0—a substantially more-powerful version of BASIC 2.0—that includes commands for sound and graphics generation, as well as joystick and paddle detection. In addition to its more-powerful BASIC, the C-128 is equipped with dual video displays: an8563 video display controller (VDC) for generating an 80-column text display, and an enhancedVIC-II video interface controller for generating a 40-column text display like that of the C-64.

When operated in its high-resolution, bit-mapped display mode, the VDC is capable of 640 × 200pixel resolution, twice that of the VIC-II’s 320 × 200 pixel resolution.  However, the BASIC 7.0 commands that manipulate bit-mapped graphics are only effective on the VIC-II display.  If a programmer wishes to generate bit-mapped graphics on the VDC display, s/he must resort to assembly language (there are intractable difficulties in PEEKing and POKEing VDC registers) and deal with the convoluted means by which the VDC is controlled.[1]

A solution

[edit]

BASIC 8.0, available viafloppy disk orROM, provided many graphics commands that were competitive with the C128's competitors in the high-end 8-bit microcomputer market. BASIC 8.0 was fully compatible with the various first-partyRAM and video RAM expansion chips andcartridges, as well asmice andjoysticks. It also provided basic3D graphics commands.[2] Along with a 188-page manual, the software package included an example of aGUI, and a high-respaint program,Basic Paint, both developed using BASIC 8.0.

History

[edit]

RUN magazine published in February 1986 "Ultra Hi-Res Graphics", an article describing the VDC's bitmapped mode and including atype-in program (written in8502assembly language) that extended BASIC 7.0's capabilities to support 640×200 high-resolution graphics using the 8563. Authors Lou Wallace and David Darus later developed the Ultra Hi-Res utility into a commercial package, what would becomeBASIC 8.0.

The BASIC 8 package was developed by Walrusoft's Louis Wallace and David Darus, with contributions from Ken French (printer drivers) and indirectly from Richard Rylander (who allowed his 3D solids commands for theCommodore 64, originally published inDr. Dobb's Journal, to be converted to the C128's hi-res mode).

Source code and copy protection

[edit]

Source code of some of the BASIC 8 package was provided, and the BASIC 8.0 disk lacked any sort ofcopy protection, but this was before theOpen Source Initiative; it was done as a courtesy. Instead of threatening legal action, Walrusoft simply asked users not to copy the software in the documentation. It worked; BASIC 8.0 became one of the best selling expansions for the C128.[citation needed]

Sample commands

[edit]

In BASIC 8.0, all added commands were prefaced with the@ mark, which was not normally used in Commodore BASIC, to distinguish between the original and the new keywords. The use of this character would allow the developer to extend BASIC 7.0 without having to re-tokenize the commands as it was done on the C64. It was accomplished by trapping the syntax error generated by the command.

  • @CHAR – Displays a text string on a bitmap field (similar to the BASIC 7.0's low-resCHAR command)
  • @MODE – Switch between one of up to 32 high-res screens
  • @PAINT – Fill a closed area with a color or a pattern
  • @PIXEL – Returns the color value of a pixel
  • @STASH – Copies part or all of a screen for later usage
  • @WALRUS – Displays the Walrusoft logo and the type/size of video RAM used (16K or 64K)
  • @WINDOWOPEN – Define part of the screen as a 'window' for purposes of drawing

References notes and citations

[edit]

References

[edit]
  • Wallace, Louis R. (1987).Basic 8 Manual. Somerset, NJ: Walrusoft/Patech Software, Inc. p. 188 pp.

Notes

[edit]
  1. ^ The VDC was programmed by writing commands to and reading status messages from a singlecontrol register and transferring data between system RAM and the chip's dedicated video RAM (16 or 64 KB, depending on C128 version) via a single data register, following a relatively complex protocol – a laborious and slow procedure compared with the straightforward use of the several discrete,memory mapped control/status registers the shared system/video memory setup of the VIC-II. Many programmers took advantage of a VDC controlprimitive buried deep within the part of theKERNAL that controlled the 80 column video display, rather than writing their own primitive.

Citations

[edit]
  1. ^Holroyd, Eric (November 1989)."The Australian Commodore and Amiga Review"(PDF). Vol. 6, no. 11. Saturday Magazine Pty Ltd. p. 13.Archived(PDF) from the original on 11 March 2019.{{cite magazine}}:Cite magazine requires|magazine= (help)
  2. ^"Walrusoft Basic 8".Retro Commodore. 28 March 2010.Archived from the original on 20 September 2018. Retrieved11 March 2019.

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=BASIC_8&oldid=1310431725"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp