Format: PLOT (expr1, expr2)
Supported by: Pecom 64 BASIC 4.0
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:
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:
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