Slimelite BBS

Filter.shell.txt

Back to src

Create AF Filter Commands w/ AMIGA(D)OS

Size
8.3K (8,533 bytes)
Added
2026-11-20 02:44
Downloads
1
Long Description
Distribution: Public Domain, Emailware. ============================================================================ Architectures: Classic AMIGAs and WinUAE. ----------------------------------------- MINIMUM Requirements Are:- -------------------------- 68EC020 CPU and 2MB RAM total, example, a standard A1200(HD). WinUAE Version 1.5.3 minimum. Standard OS3.0x install or better. ---------------------------------------------------------------------------- History. -------- 06-03-2013. Version 0.00.10:- Original upload to AMINET... ---------------------------------------------------------------------------- Just download The Filter.shell.txt file, edit it as explained below, and then see how to create two real AMIGA commands that turn the Audio Filter on OR off. To run the script just rename to Filter.shell and execute it in the normal way. The binaries created are saved to the T: volume. ---------------------------------------------------------------------------- The DEMO assembly code that would be compiled and converted. Call the code AMIGA_Filter.asm... From a CLI and using the a68k and blink from AMINET:- Prompt> a68k AMIGA_Filter.asm<RETURN/ENTER> Some reports here... Prompt> blink AMIGA_Filter.o<RETURN/ENTER> Some reports here... This code is TOTALLY, even address, position independent. start: ;Assembler source to switch the ;audio filter and power light to ON. ;Compiled under a68k and linked under blink. ;A68k AMIGA_Filter<RETURN/ENTER> ;<Some reports here.> ;blink AMIGA_Filter.o<RETURN/ENTER> ;<some more reports here.> move.b #252,$BFE001 ;Set audio filter to bootup default condition ON. ;Decimal 252 sets the filter to ON and ;decimal 254 sets the filter to OFF. clr.l d0 ;Set return code as OK. rts ;Exit program. end ;End... ---------------------------------------------------------------------------- The text HEX file to be edited for the shell script:- Prompt> Type HEX AMIGA_Filter > AMIGA_Filter.hex<RETURN/ENTER> Gives a text file "AMIGA_Filter.hex" that has the contents:- 0000: 000003F3 00000000 00000001 00000000 ................ 0010: 00000000 00000003 000003E9 00000003 ................ 0020: 13FC00FC 00BFE001 42804E75 000003F2 ........B.Nu.... ---------------------------------------------------------------------------- This is just a DEMO showing how to "bang the metal" by the back door using a shell script to create two executable commands to turn the Audio Filter on and off. It goes without saying that by generating the necessary assembly code, DMA to the hardware is easily possible in Classic AMIGAs. This method could just as easily access the Parallel, Serial, Games and Disk Drive ports with careful pseudo-HEX string manipulation within the limits of the shell "ECHO" command. And believe me, the "ECHO" command is seriously limited... ;oO Enjoy finding simple solutions to often very difficult problems... ;o) ---------------------------------------------------------------------------- IMPORTANT NOTE:- ---------------- This ReadMe file and the text download file are absolutely identical. You will have to edit to extract the script from the ";" line below to the identical line at the end of the script to be able to run it. MEmacs is your friend here... ; ; Filter.shell ; ; This is just a DEMO showing how to "bang the metal" by the back door using ; a shell script to create two executable commands to turn the Audio Filter on ; and off. See the "Filter.shell.readme" file for more information. ; ; It goes without saying that by genera