Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Microsoft Basic 1.0

From Wikipedia, the free encyclopedia
Standard BASIC language for Thomson computers
BASIC 1.0
Initial release1982; 44 years ago (1982)
Stable release
BASIC 512 / 1986; 40 years ago (1986)
PlatformThomson computers
TypeMicrosoft BASIC

BASIC 1.0[1][2][3][4] is the standardBASIC language forThomson computers (MO5,TO7, etc.), which is the reference for the entire range.[5][6][7] This is an implementation ofMicrosoft BASIC (BASIC-69).[3]It was used to introduce children from France to programming in the 1980s (seeComputing for All, a 1985French government plan to introduce computers to the country's 11 million pupils).[8][9] Three languages were mainly taught:LSE, BASIC andLOGO. School textbooks programs were given in BASIC 1.0 for Thomson and sometimes in ExelBasic for theExelvisionEXL 100.

The first version came with the TO7 computer, released in 1982.[10][2][3][9][11][12][13][14] On the MO5 (released in 1984 but with smaller ROM), 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.[6][1][4][9][15]

An upgraded version was produced under the name ofBASIC 128, for theTO7-70,TO9, MO5NR andMO6.[16][17][18]It included commands for disc operations and other new instructions.

On theTO8/8D andTO9+, an even more upgraded version under the name ofBASIC 512 was provided.[19][20]

Keywords

[edit]

BASIC 1.0 interpreter recognizes the usual commands such asFOR..NEXT,GOSUB..RETURN,IF..THEN..ELSE, andDATA /READ /RESTORE statements.[7] Advanced instructions likeON..GOTO andON..GOSUB were also possible.[7]

  • ? - Alias toPRINT
  • ' - Alias toREM
  • 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 - Change colors 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. ^ab"Thomson MO 5".www.old-computers.com. Retrieved2022-11-28.
  2. ^ab"Thomson TO 7".www.old-computers.com. Retrieved2022-11-28.
  3. ^abc"Thomson TO7".Obsolete Tears. 2018.
  4. ^abRoug, Søren."Quick reference guide to BASIC 1.0".Roug Website. Retrieved2022-11-28.
  5. ^"documentations:basic_howto".Demomaker's guide to Thomson computers. 2015.
  6. ^abDebart, Patrice (December 1986)."Bidouille du système Thomson TO7 - MO5 - TO9".Le Bulletin de l'EPI. No. 44.
  7. ^abc"documentations:basic_keywords".Demomaker's guide to Thomson computers. 2015.
  8. ^Ina.fr, Institut National de l’Audiovisuel- (January 1985)."Plan informatique : conférence de presse Fabius".Ina.fr.
  9. ^abcDELHAYE (1987)."DES PROCÉDURES UTILITAIRES EN BASIC POUR TO7 ET MO5"(PDF).Le Bulletin de l'EPI (48): 217.
  10. ^"THOMSON TO7/70".Ordinateur de collection. 2012. Retrieved2022-11-28.
  11. ^Blondel (1982).Initiation au BASIC TO7/TO7-70. CEDIC.
  12. ^Wanner (1984).Aller plus loin em BASIC TO7. EYROLLES.
  13. ^Trost (1984).TO7 56 Programmes BASIC. Sybex.
  14. ^Monsaut (1984).Jeux en BASIC sur TO7. Sybex.
  15. ^Trost (1984).MO5 56 Programmes. Sybex.
  16. ^Fabio, Paolo (January 15, 2018)."Retrocomputing: How to install Thomson MO5, MO6, TO7, TO8, TO9 and Olivetti Prodest PC 128 emulator on Windows, Apple Mac, Linux and BSD".Paolo Fabio Zaino's Blog.
  17. ^Blondel (1985).Initiation au BASIC 128 TO7-70. CEDIC.
  18. ^Nabonne (1986).Interpreteur BASIC 1.0 des TO7-70 et TO9. EYROLLES.
  19. ^"Thomson TO 8 - TO 8D".www.old-computers.com. Retrieved2022-11-28.
  20. ^"Thomson TO 9 plus".www.old-computers.com.
1st Generation
M models
T models
2nd Generation
M models
T models
PC compatible
Unix systems
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


Stub icon

Thismicrocomputer- ormicroprocessor-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Microsoft_Basic_1.0&oldid=1326139184"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp