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: Pecom 64 BASIC 4.0

Similar commands:
Floating Point BASIC 2.2: PLOT
Telmac SBASIC v 24.3: PLOT

Note: The Pecom PLOT command is only available in PECOM 64 VER 4.0.

When a PLOT statement is executed expr1 and expr2 are evaluated as integer numbers and used to place a point on the video display as X, Y coordinates. The PLOT command can only be used on part of the upper half of the screen. Where the lower left hand corner of this area is in the middle and 12 points from the left of the screen. The lower left hand corner is defined as 1, 1 and the upper right hand corner as 228,128. So X values are valid in range 1-228, Y values are valid from 1-128.

The PLOT command will use characters 2 to 127 except 32 (space) and 96 (cursor) to realize the graphics. This means that the more PLOT commands are used the less regular characters will be available. Capital characters and numbers will be used last. When no characters are available anymore the PLOT command will stop working.

Before the first PLOT command it is needed to do the following commands:

CALL (&CE70)
POKE (&7E30,#3C)
CLS

The CALL to &CE70 will regenerate the standard character set, the POKE will reinitiate the pointer to the list of characters (stored at &7E3C) and to be used by the PLOT command, last the CLS will clear the screen.

Example, drawing a horizontal line:

10 CALL (&CE70)
20 POKE (&7E30,#3C)
30 CLS
40 V=54
50 FOR K=1 TO 229
60 PLOT (K,V)
70 NEXT K
80 END

Example, drawing a vertical line:

10 CALL (&CE70)
20 POKE (&7E30,#3C)
30 CLS
40 K=100
50 FOR V=1 TO 104
60 PLOT (K,V)
70 NEXT V
80 END

Example, drawing a diagonal line:

10 CALL (&CE70)
20 POKE (&7E30,#3C)
30 CLS
40 FOR V=1 TO 104
50 K=2*V
60 PLOT (K,V)
70 NEXT V
80 END