hide random home http://www.cucug.org/ar/ar505_Sections/news25.HTML (Amiga Plus Extra No. 5/97, 05/1997)

PEEK_POKE


TITLE

PEEK_POKE

AUTHOR

Simon N Goodwin (simon@studio.woden.com)

DESCRIPTION

Powerful and dangerous STRUCTURED PEEK and POKE for the Amiga Shell

Would you like to be able to read analogue joysticks, switch the audio
filter, check library and device versions, reset MIDI devices, blink the
power LED, check your Amiga chip set or CPU type, start and stop floppy
drive motors or change the sex of the narrator device - all from the
comfort of your shell or a script file?

All these and much more - including numerous ways to crash the machine
- are now available via structured PEEK and POKE extensions for the
Amiga Shell. These make automatic program configuration simpler and
prevent the need to write and test 'trivial' stand-alone utilities to
check or tweak system variables or registers. They've very convenient
when hacking but positively dangerous for people who don't know their
way around the Amiga system.

Examples of ease of use:

peek long hex lib=exec 62
  returns the top limit of Chip memory (e.g. $200000, $80000 etc.).

POKE CIAA 0 2
  turns the audio filter off

FEATURES:

o Permits access to all system library, device and resource variables
o Read bytes, words, long words or strings from any memory address
o Convenient access to memory pointers, using indirect addressing
o Supports input and output in decimal, hexadecimal or binary formats
o Access to CIAA, CIAB and CUSTOM chip registers by name and offset
o AmigaGuide & text documentation with many examples including scripts

SPECIAL REQUIREMENTS

Any Amiga or emulator with Kickstart 2.0 or above.

AVAILABILITY

Available on Aminet, e.g.
ftp://ftp.wustl.edu/pub/aminet/util/cli/PEEK_POKE.lha (24K)

PRICE

Absolutely nothing.

OTHER

Well-annotated stand-alone assembler source file included.
The author cannot be held responsible if PEEK_POKE causes damage.

DISTRIBUTABILITY

Copyright (c) 1996-7 by Simon N Goodwin.
It's freely distributable.

--
Cheers, Simon N Goodwin, simon@studio.woden.com AKA simon@silicon.studio.co.uk


[Contents]

Amiga Report Main Page | Amiga Web Directory

HTML Conversion by AG2HTML.pl V2.951201, perl $RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $ Patch level: 36 & witbrock@cs.cmu.edu