Peek; Pen - AMSTRAD cpc 6128 User Instruction

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

Advertisement

PEEK
PE E K ( <address expression> )
10 MODE 1:Z0NE 7
20 WINDOW 1,40,1,2:WINDOW #1,1,40,3,25
30 PRINT "memory"':address"
40 LOCATE 20,1:PRINT "memory-contents"
50 FOR n=0 TO 65535
60 p=PEEK(n)
70 PRINT #1,n,"(&";HEX$(n);")";
80 PRINT #1,TAB(20);p,"(&";HEX$(p);")"
90 NEXT
run
FUNCTION: Reports the contents of the Z80 memory location specified in the
<address expression> which should be in the range &0000 to &FFFF (0 to 65535). In
all cases PE E K will return the value at the RAM address specified (not the ROM),
and will be in the range &00 to &FF (0 to 255).
Associated keywords: PO K E
PEN
PEN [# <stream expression> ,][ <ink>][, <background mode>]
10 MODE 0:PAPER 0:INK 0,13
20 FOR p=1 TO 15
30 PEN p:PRINT SPACE$(47);"pen";p
40 FOR t=1 TO 500:NEXT t,p:GOTO 20
run
COMMAND: Sets the <ink> (in the range 0 to 15) to be used when writing to the given
screen stream, (stream
#
13 ifnot specified). The <background mode> parameter can be
set to transparent (1) or opaque (0).
Either of the last 2 parameters may be omitted, but not both.
If
a parameter is
omitted, that particular setting is not changed.
Associated keywords: PAP E R
Chapter 3 Page 56
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents