Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
PEEK and POKE
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Memory cells and hardware registers== The address locations that are POKEd or PEEKed at may refer either to ordinary memory cells or to [[memory-mapped I/O|memory-mapped]] [[hardware register]]s of [[input/output|I/O]] units or support chips such as [[sound chip]]s and video graphics chips, or even to memory-mapped [[processor register|register]]s of the CPU itself (which makes software implementations of powerful [[machine code monitor]]s and [[debugging]]/simulation tools possible). As an example of a POKE-driven support chip control scheme, the following POKE command is directed at a specific register of the [[Commodore 64]]'s built-in [[MOS Technology VIC-II|VIC-II]] graphics chip, which will make the screen border turn black: <syntaxhighlight lang="qbasic">POKE 53280, 0</syntaxhighlight> A similar example from the [[Atari 8-bit computers]] tells the [[ANTIC]] display driver to turn all text upside-down: <syntaxhighlight lang="qbasic">POKE 755, 4</syntaxhighlight> The difference between machines, and the importance and utility of the hard-wired memory locations, meant that "memory maps" of various machines were important documents. An example is ''[[Mapping the Atari]]'', which starts at location zero and maps out the entire 64 kB address space, location by location.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)