Turbo Basic 1.0

NCP ¢True BASIC 2.0 The second generation of the original BASIC is now on. Daybreak Technologies NCP Simon 8- Schuster NCP /Turbo BASIC 1.0.

From Wikipedia, the free encyclopedia

This article is about the Borland version of Turbo Basic. Forthe dialect of BASICfor the Atari 8-bit family, see Turbo Basic XL.
Turbo Basic 1.1 (1987) startup screen.

Turbo Basic is a BASICcompiler and dialectoriginally created by Robert 'Bob' Zale and bought from him by Borland. When Borland decidedto stop publishing it, Zale bought it back from them, renamed it toPowerBASIC and set upPowerBASIC Inc. to continue support and development of it.

For one color for the entire patch, use a single value. For one color per face, use an m-by-1 column vector, where m is the number of rows in the Faces property. For interpolated face color, use an m-by–1 column vector where m is the number of rows in the Vertices property. How to use patch in matlab. A number of MATLAB ® functions create patch objects — fill, fill3, isosurface, isocaps, some of the contour functions, and patch. This section concentrates on use of the patch function. You define a patch by specifying the coordinates of its vertices and some form of color data. In that case, it is better to divide the patch object into smaller polygons. When you specify X, the patch function sets the XData property for the patch object to the same value. The patch object automatically calculates the face and vertex data and sets the Faces and Vertices properties to the appropriate values.

This software is from the 1987-88 period and features theBorland 'black screen' similar to Turbo Pascal 4.0, Turbo C 1.0/1.5, and Turbo Prolog 1.1.Borland did not adopt its trademark 'blue screen' integrateddevelopment environment until the 1989 period when Turbo C 2.0,Turbo C++ 1.1, etc. were released. By this time, Turbo Basic andTurbo Prolog were no longer being sold.

Unlike most BASIC implementations of this period, Turbo Basicwas a full compiler which generated native code for MS-DOS. Otherimplementations were either interpreters, or relied heavily on aruntime library. The integrated development environment could run aBASIC program inside itself (see sample below) for traditionalBASIC debugging, or generate an MS-DOS EXE file which was completely stand-alone and couldbe run on other systems without the Turbo Basic product or runtimelibraries.

Codesample

Turbo Basic 1.1 editing the sample code.

The following program is an example of the ALGOL-like BASIC dialect that Turbo Basicsupported. Unlike traditional BASIC, which used line numbers andhad limited control structures and no support for ALGOL-likesubroutines, modern BASIC dialects starting at this period wereextended to make the language compatible with modern structured programming theory bydiscarding the line numbers and adding the control structures andsubroutine definitions needed by structured programming.

Turbo Basic 1.1 running the sample

Like the other Borland products of this era, the code executeswithin the integrated development environment.

References

Atari BASIC ·Atari ST BASIC ·Dartmouth BASIC ·GW-BASIC ·HP BASICfor OpenVMS ·IBM BASICA ·IBM CassetteBASIC ·IBM DiskBASIC ·LocomotiveBASIC ·MSX BASIC ·ScriptBasic ·Sinclair BASIC ·TI BASIC(TI 99/4A) ·Turbo-BasicXL ·UBasic ·Vilnius BASIC
BBC BASIC ·Beta BASIC ·FreeBASIC ·GFA BASIC ·Liberty BASIC ·Microsoft Small Basic ·PureBasic ·QBasic ·QB64 ·QuickBASIC ·SuperBasic ·ThinBasic ·True BASIC ·Turbo Basic ·XBasic ·Xblite ·Basic4ppc
BlitzMax ·FreeBASIC ·Gambas ·GLBasic ·PowerBasic ·ProvideX ·RapidQ ·REALbasic ·Run_BASIC ·StarOfficeBasic ·Visual Basic ·Visual Basic.NET
BASICprogramming language
Classical
Procedure-oriented
With object extensions
For mobile devices
Microsoft Basic 1.0
PlatformThomson computers
TypeMicrosoft BASIC

BASIC 1.0 is the standard BASIC language for Thomson computers (MO5, TO7, etc.), which is the reference for the entire range.[1] This is an implementation of Microsoft BASIC (BASIC-69). On the MO5, the instruction set is reduced and the double precision is not implemented, so that the interpreter fits in only 12 KB of ROM, instead of 16 KB on the TO7. An upgraded version was produced under the name of BASIC 128, for the TO7-70, TO9, MO5NR and MO6. It included the DOS and new instructions. On the TO8/8D and TO9+, an even more upgraded version under the name of BASIC 512 was provided.

BASIC 1.0 interpreter recognizes the usual commands such as FOR.NEXT, GOSUB.RETURN, IF.THEN.ELSE, and DATA / READ / RESTORE statements.Advanced instructions like ON.GOTO and ON.GOSUB were also possible.

It was used to introduce children from France to programming in the 1980s. Three languages were mainly taught: LSE, BASIC and LOGO. School textbooks programs were given in BASIC 1.0 for Thomson and sometimes in ExelBasic for the ExelvisionEXL 100.

Keywords[2][edit]

  • ? - Alias to PRINT
  • ' - Alias to REM
  • ATTRB - Character attributes
  • BOX (x1,y1)-(x2,y2) - Draws a rectangle (the top left pixel is (0,0)
  • BOXF (x1,y1)-(x2,y2),color - Fills a rectangle with the given color (optional, if not given use the current pen color). Negative colors lead to filling with the requested color as the background one.
  • CLS - Clear screen
  • COLOR foreground, background - Change pen colors (parameters are optional)
  • CONSOLE
  • DELETE
  • END - Ends program execution
  • FOR v=s TO e STEP n - FOR loop, incrementing v by n each time until it reaches e. The STEP is optional (default is 1) and can be negative.
  • GOTO line - Jump to program line
  • IF a THEN statement ELSE statement - Conditions (the statement can be just a line number)
  • INPUT “message”;variable1,variable2 - Set variables to user-entered values (comma separated). A ? is printed after the message and before reading the values from the user.
  • LINE (x1,y1)-(x2,y2) - Draws a line (first point is optional, current cursor position is used: LINE -(x2,y2))
  • LIST line - List the program in memory (parameter is optional, if missing the whole program is listed)
  • LOCATE x,y - Move the cursor
  • NEW - New program, remove current one from memory
  • NEXT v - Closes FOR loop.
  • PLAY s$ - Plays music. The string is made of notes DO,RE,MI,FA,SO,LA,SI (with # and b modifiers), octave changes (O1-O5), note duration changes (L1-L96), silences (P), tempo changes (T1-T256), attack settings (A0-A255). Spaces are ignored and can be used for readability
  • PRINT value - Prints a value (if the value is suffixed with a ; insert a tabulation after it. else goes to next line)
  • PRINT USING
  • PSET(x,y) - Set a pixel
  • REM - Comments (REMark). Anything following this on the line is ignored.
  • RUN - run the program
  • SCREEN foreground,background,border - Changecolors for whole screen
  • COS(v)
  • INT(v)
  • INSTR
  • LEFT$(s$,n) - Get a substring of the N first chars of S
  • LEN(s$)
  • MID$
  • RIGHT$(s$,n) - Get a substring of the N last chars of S
  • RND - Random value between 0 and 1
  • SIN(v)
  • STR$
  • VAL
  • + - Addition, string concatenation*-
  • /
  • MOD
  • @ - Integer division
  • = - Assignment, equality
  • ^

References[edit]

  1. ^http://pulkomandy.tk/wiki/doku.php?id=documentations:basic_howto
  2. ^http://pulkomandy.tk/wiki/doku.php?id=documentations:basic_keywords
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Microsoft_Basic_1.0&oldid=934813995'