Home Page


BASIC Handbook

Basic2 Commands
Disk Drives
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite
ASCII and CHR$ Codes

eMail
email5-commodorecheetah.co.uk

Note: You will need to replace the '-' with the @ symbol.
This is to minimize spam.

My BASIC Quick Reference Guide

PEEK
Abbreviation: P <SHIFT+E>

TYPE: Integer Function
FORMAT: PEEK(<numeric>)

Action: Returns an integer in the range of 0 to 255, which is read from a memory location. The <numeric> expression is a memory location which must be in the range of 0 to 65535. If it isn't then the BASIC error message ?ILLEGAL QUANTITY occurs.

EXAMPLES of PEEK Function:

10 PRINT PEEK(53280) AND 15 (Returns value of screen border color)
5 A%=PEEK(45)+PEEK(46)*256 (Returns address of BASIC variable table)


Commodore Cheetah made by Allen Monks, started in the year 2000.