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: PLOT (expr1, expr2)

Supported by: Floating Point BASIC 2.2

Similar commands:
Pecom 64 BASIC 4.0: PLOT
Telmac SBASIC v 24.3: PLOT

When BASIC executes a PLOT statement it evaluates expr1 and expr2 as integer numbers and uses them to place a point on the video display as X, Y coordinates. BASIC calculates the position using the lower left hand corner of the display as the 0, 0 origin, to facilitate use of cartesian coordinates. X values are valid in range 0-63, Y values are valid from 0-127. BASIC will convert to modulus the limit so values greater than the axis will 'wrap around' on the screen.

10 CLS 
20 FOR A=0 TO 63
30 PLOT (A, 0): PLOT (A, 127)
40 PLOT (0, A*2): PLOT (63, A*2)
50 NEXT 

This will draw lines around the border of the video display. Note that if A is defined as an integer, the plotting will occur much faster.

 
10 CLS
20 FOR A=0 TO 63
30 PLOT (A, 63): PLOT (0, A*2)
40 NEXT
50 FOR B=0 TO 60
60 PLOT (B, SIN(PI/180 * B*6)*63 + 63)
70 NEXT

The above example will draw an axis pair across the screen and then plot a sine curve.