home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
utilities
/
vmecontrol_2
/
!VMEctrl
/
ModuleDocs
< prev
next >
Wrap
Text File
|
1995-08-10
|
6KB
|
139 lines
VMEcontrol 1.22 © Angelos tou Thanatou 1995
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First off, to use this you'll need
* A VIDC enhancer that uses IO1 (eg. Atomwide, Risc Developments, etc)
as its 'enable' control. (also works with Andreas Barth's DIY
enhancer).
Support for other enhancers will be added if there's any call for it
* An 'old' machine; ie. one that had to have a VIDC enhancer fitted
(the 'newer' machines have it built in)
NB: No checks are made for hardware/OS version... If you don't know what you've
got, "*fx 0" from the command line/in a taskwindow will tell you the OS
version. You can try it with your VIDC enhancer and if it works, good. If not,
let me know and I'll try to sort it out.
When I say VIDC enhancer, I mean a third party add-on, not the clock switcher
built into the newer machines. (Just to clear that bit up)
What it does...
~~~~~~~~~~~~~~~
The VMEcontrol module listens to mode change messages and enables/disables the
VIDC enhance (VME) as appropriate. "Haha!" you cry, "How does it know?" Well,
the answer's simple: you tell it. [by default modes 29,30,31 & 32 are marked as
'enhanced'].
If when you load the module you supply a filename, eg.
*RMEnsure VMEcontrol 1.21 RMLoad VMEcontrol myfile
then that file will be loaded (as if you had followed the rmload with a
*loadmap command). NB: If the load operation fails, the module will *not*
be installed. So, try:
*RMEnsure VMEcontrol 1.21 RMLoad VMEcontrol myfile
*RMEnsure VMEcontrol 1.21 RMLoad VMEcontrol
to be on the extra-safe side :-)
[note, this facility has been largely superceded by the !VMEctrl application's
'generate custom module' facility]
*COMMANDS:
~~~~~~~~~~
*Vme [On|Off]
With no parameter displays the current VME status, otherwise
enables/diables the VME.
*Mode [<ModeNumber> [On|Off]]
With no parameter displays the current screen mode, VME status, and
whether the mode is marked as 'enhanced' (ie. VME on)
With just the <ModeNumber> attempts to change to mode <ModeNumber>
If the <ModeNumber> is followed by 'On' or 'Off' (after a space, of
course...), the mode will be marked appropriately. If you mark the mode
that you are currently in, the VME will be altered too. No mode change
takes place.
*ShowMap
Displays a list of the modes currently marked as 'enhanced'
*SaveMap
*LoadMap
Saves/Loads the map to/from a file (type 9a5 - if the filetype doesn't
suit, simply edit the source). This enables you to have a complex
mode table that is easily set-up from a boot file.
SWIs provided:
~~~~~~~~~~~~~~
&C3F40 "VME_Status"
On exit, R0 contains the VME status (0 for off, non-zero for on)
&C3F41 "VME_Control"
On entry R0 holds the state to set the VME to.
R0 == 0 turns the VME off, R0 non-zero turns it on.
&C3F42 "VME_ReadMap"
On entry, R0 is the mode in question
On exit, R0 preserved, R1=VME state for that mode (non-zero = On)
&C3F43 "VME_WriteMap"
On entry, R0 is the mode in question & R1 is the new VME state for that
mode (non-zero = On).
&C3F44 "VME_LoadMap" _
On entry, R0 points to the filename to use. \
On exit, r0-r6 may be currupted \
/
&C3F45 "VME_SaveMap" /
On entry, R0 points to the filename to use. > better off using the
On exit, r0-r6 may be currupted \ *commands anyway
\
&C3F46 "VME_ShowMap" /
On exit, r0-r6 may be currupted /
~
Disclaimer
~~~~~~~~~~
Use of this software is completely at your own risk. The author can accept no
responsibility for any damage/loss arising from the use, or inability to use
this software. No warranty, express or implied, applies to this software.
This is not PD: the Copyright in this software belongs at all times to the
author. However, permission is granted for unrestricted distribution
prodividing that *no* charge is made for the distribution [a charge may be made
for handling/media] and that the whole of the software is supplied intact and
unaltered. Permission is also granted for unrestricted use and alteration of
the software [but if you fix a bug / add anything nice, let me know so I can
patch the 'master' version].
Bug reports / comments / etc to:
Angelos tou Thanatou c/o 23 Baronsway, Whitkirk, Leeds, LS15 7AW, England.
(until Sept-ish '96: n0ae3@newton.ncl.ac.uk)
Basically I wrote this because after waiting a *month* for the Beebug VME to
arrive in the post (we had a 2 week postal strike start the day I ordered it
:-) [...and having failed to buy a 36MHz oscillator anywhere so I could build
my own VME, but that's a different story], I was more than a little disapointed
with the software that came with it (not to mention the Installation
instructions...) and, well, I wasn't going to sleep that night anyway so...
So, having hacked it together in a night and now finding it useful, I thought
I'd share it just incase anyone else out there is feeling let down by their
supplied VIDC enhancer software.
History:
v0.00 First hacky test version 'to get a feel for it' *unreleased*
v0.10 First working version, just vme command & service handler
implemented *unreleased*
v0.20 now has *Mode *Vme *ShowMap commands,
swis to read/write the map, but still no configuration
*unreleased*
v1.00 Added *loadmap and *savemap *unreleased*
v1.01 fixed a little bug :-( *unreleased*
v1.10 Added *mode configuration command
v1.20 No longer dependant on RISC OS 3.11 (should've fixed this sooner
but as none of the above were marked for release, I didn't
bother). Also tidied up error messages a bit. *unreleased*
v1.21 added facility to load mapfile at startup. *released 04-May-95*
v1.22 moved the default mode tabel to the end of the module so that
the WIMP front-end can easily replace it with a different
size one. *released 08-May-95*