SpartaDOS X Reference Manual

The Command Processor — Commands




POKE Command

Index


Purpose

To change the contents of a memory location.
 

Syntax POKE [$]location [$]value
 
Type Internal
 
Related PEEK
 
Remarks

POKE allows you to change memory locations from the command processor which can be useful in batch files and other applications. It is very easy to crash the system with this one if you do not understand what you are doing. A few examples of POKE locations and useful values follow:

POKE 77 (atract) 0=attract mode off for a few minutes
POKE 82 (Imargin) n=number from 0 to 39 for left margin
POKE 83 (rmargin) n=number from 0 to 39 for right margin
POKE 559 (sdmctl) 0=screen off, 34=screen back on
POKE 710 (color2) 0=black, 53=red, 148=blue
POKE 730 (keyrep) 1=hyper, 3=fast, 5=normal (XL/XE only)
POKE 731 (noclik) 0=normal, 1=speaker off (XL/XE only)
POKE 752 (crsinh) 0=cursor off, 1=cursor on
POKE 702 (shflok) 0=Iower case, 64=upper case
POKE 65 (soundr) 0=SIO sound off, 1=SIO sound on

A good memory map will give many more and is a must for programming the Atari.


Previous page

Next page