EMMA 02

BASIC

  • Home
  • Download
  • Change Log
  • Help
  • Compilation
    • Windows
    • OS X
    • Ubuntu
    • Fedora
    • openSUSE
  • Forums
  • Tape Conversion
  • Machine Code
    • SYSTEM00
    • CDP1801
    • CDP1802
    • CDP1804
    • CDP1805
    • Differences
  • Pseudo Code
    • AMVBAS
    • AM4KBAS
    • CARDTRAN
    • Chip-8, 8X, ETI-660 & Elf
    • FEL-1
    • FPA-1
    • FPL-2
    • FPL-4
    • GPL-2
    • GPL-3
    • GPL-4
    • GPL-A (2K RAM)
    • GPL-A (2K ROM)
    • ST2
    • ST4
    • STK
    • Test-Word
    • Super-chip
  • XML Code
    • Main Elements
    • I/O
    • System
    • A/D Convertor
    • BASIC
    • Batch wav
    • Bootstrap
    • Cassette
    • CD4536B
    • CDP1851
    • CDP1852
    • CDP1854
    • CDP1855
    • CDP1877
    • CDP1878
    • CDP1879
    • Debugger
    • COMX Diagnostic
    • Dip switch
    • Disk
    • EF Buttons
    • Flip Flop
    • Front Panel
    • GUI
    • HEX Modem
    • I/O Group
    • Keyboard
    • Keyfile
    • Locations
    • Memory
    • MM57109
    • Printer
    • RTC
    • Sound
    • Splash
    • USB
    • Video
    • Videodump
    • vt
    • X Modem
  • BASIC
    • General Information
    • COMX BASIC V1.00
    • Floating Point BASIC 2.2
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
    • Quest Super BASIC 1.4
    • Quest Super BASIC 3.0
    • Quest Super BASIC 5.0
    • Quest Super BASIC 6.0
    • RCA BASIC3 V1.1
    • Telmac SBASIC v24.3
    • Error Messages
  • Computer List

 

 

 

 

 

 

 

 

 

 

 

 

PLOT

Format: var = PLOT (expr1, expr2)

Supported by: Telmac SBASIC v 24.3

Similar commands:
Floating Point BASIC 2.2: PLOT
Pecom 64 BASIC 4.0: PLOT

PLOT function is used for drawing and erasing 'graphics'. To achieve 'graphics' the TMC-600 uses characters #80 to #BF, which are defined as a 2x3 matrix. Allowing 80 x 72 dots to be put on the screen. Expr1 defines the 'column' number (0 to 79) and expr2 the 'line' number (0 to 71).

Return value equals 0 if there was no 'dot' printed at the specified location.

Example 1:

10 CURSOR 1: CLS
20 FOR X = 0 TO 71
30 A = PLOT (X, X) + PLOT (X, 71 - X): NEXT
40 GOTO 20

Example 2:

10 CURSOR 1: CLS
20 FOR X = 0 TO 71
30 A = PLOT (X, X) + PLOT (X, 71 - X): NEXT
40 FOR X = 0 TO 79: A = PLOT (X, 20)
50 NEXT

Example 3:

10 CURSOR 1: CLS
20 FOR X = 0 TO 71
30 A = PLOT (X, X) + PLOT (X, 71 - X): NEXT
40 FOR X = 0 TO 79
50 IF PLOT (X, 10) <>0 THEN A = PLOT (X, 10)
                                            60 NEXT

Example 4, using 2 colours:

10 CURSOR 1: CLS
20 FOR X = 0 TO 79 STEP 2
30 COLOR 4
40 A = PLOT (X, 36 + 30 * SIN (0+X/10))
50 COLOR 2
60 A = PLOT (X+1,71-EXP (0+X/19))
70 NEXT