| 84720 packages online |
|
|
| | | | No screenshot available |
|
This is how it works... On a command line you can use one of these
arguments:
D ........ Disable audio filter/LED
E ........ Enable audio filter/LED
S ........ simply Switch the current state of audio filter/LED
H or ? ... small help text
And that's it. In any case (even if no argument is used) it will put a return
code 5 if the filter/LED is off and 0 if it's on. This way you can check the
state of the audio filter in a shell script using "If WARN".
AFSwitch was written and assembled with ASM-One (PhxAss should work too). It
was testet on an A1200, but should work on all Amiga platforms which support
filter switching since it uses plain 68k code. Big thanx to David Sjölin for
his nice AMW which gave me a clue how cli interaction actually works.
Source is included (with German comments only, sorry).
Changes since 1.0:
1.1
* More optimizations to make it even smaller
* Almost all data and address registers are now saved/restored (I'm not sure
if this is necessary, but they are changed during the process)
* The source code now contains an example script for return code handling
1.2
* Added the ?-option (besides H) to call the help text to make it more
AmigaDOS conform
* Checks library version now to prevent crash with KickStarts older than 1.1
1.3
* Minor bug fixed in text output routine
1.4
* Library version is now checked by peeking directly into the exec base
instead of using OpenLibrary (which would be pointless since this function
did not exist before Kick 1.1)
1.5
* Fixed stupid bug in register handling
* Minor optimizations
Hopefully the last update :) Note that the only library used by AFS is the
dos.library for text output. The remaining code (the actual filter handling)
should work with all KickStarts.
|
Contents of util/cli/AFSwitch.lha PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga] 302 364 83.0% -lh5- 0ddf Apr 10 19:36 afs
[Amiga] 1080 2034 53.1% -lh5- 8e59 Apr 10 19:34 afs.readme
[Amiga] 969 2055 47.2% -lh5- e0f5 Apr 5 01:47 afswitch.s
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 3 files 2351 4453 52.8% Apr 11 00:12
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and
the Aminet team.
Aminet contact address: <aminetaminet net> |