Plotr; Poke - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

PLOTR
PLO T R
<x offset> , <y offset> [ , [dnk>][, <ink mode> ]]
10 REM use cursor keys to draw Lines
20 BORDER 0:GRAPHICS PEN 1
30 MODE 1:PLOT 320,200
40 IF INKEY(0)=0 THEN PLOTR 0,1
50 IF INKEY(1)=0 THEN PLOTR 1,0
60 IF INKEY(2)=0 THEN PLOTR
0,~1
70 IF INKEY(8)=0 THEN PLOTR -1,0
80 IF INKEY(9)=0 THEN 30:REM copy=cLear
90 GOTO 40
run
COMMAND: Plots a point on the graphics screen at the specified position <x offset>
and <y offset>, relative to the current graphics cursor position. The <ink> in which to
plot the point may be specified (in the range 0 to 15).
The optional <ink mode> determines how the ink being written interacts with that
already on the graphics screen. The 4 <ink mode>s are:
0: Normal
1 : XOR (eXclusive OR)
2:AND
3:0R
Associatedkeywords: G RA
PHI
CS
PEN, PLO
T,
POKE
PO K E
< address expression> , <integer expression>
10 FOR m=49152 TO 65535
20 POKE m,100
30 NEXT
run
COMMAND: Writes the value of the <integer expression> (in the range 0 to 255)
directly into the Z80 memory (RAM) at the specified <address expression>.
Not a command to be used by the unwary.
Associated keywords:
PE E K
Chapter 3 Page 58
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents