SpartaDOS X Reference Manual

The Command Processor — Commands




PEEK Command

Index


Purpose

To examine a memory location or perform a HEX conversion.
 

Syntax PEEK [$]location
 
Type Internal
 
Related POKE
 
Remarks

PEEK allows examination of a memory location from the command processor. It is also useful as a quick DEC to HEX or HEX to DEC convertor. (DEC means decimal or base 10; HEX means hexadecimal or base 16.) PEEK returns the dec and hex value of the location entered, the contents of the location in both dec and hex, the dec and hex value of the memory word stored in the location and location+1, and the ATASCII character representing the value of the location.

It is a good idea to PEEK a location before POKEing it if you are not sure what you are doing. You can usually recover by POKEing the old value back in (unless the computer has crashed).


Previous page

Next page