home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
SOUNDUTILS
/
beep.lzh
/
beep.a
< prev
next >
Wrap
Text File
|
1994-06-08
|
1KB
|
37 lines
******************************************************************************
* Beep
* By: Ricky Beam (cramer@catt.ncsu.edu)
*
* - Nifty little program to beep the speaker in a MM/1
* - this works WITHOUT a snddrv or any of that crap (heck you don't even
* - need windio!)
*
* - This program is a system state process for a reason, change it for
* - interesting results :-)
*
* Just another hack from Hacker Central
******************************************************************************
use /dd/defs/asm/oskdefs.d
* psect beep_a,(Prgrm<<8)!Objct,(ReEnt<<8)!1,1,0,_beep,0
psect beep_a,(Prgrm<<8)!Objct,(ReEnt+SupStat<<8)!1,1,0,_beep,0
*-------------------------------------^^^^^^^ :-)
_beep:
move.b #$00,d0
ramp move.l #$00001fff,d1 * Adjust to increase the play time of each freq.
loop move.b #4,$9ffc1b * Control port #4 == sound on
move.b d0,$9ffc21 * Loop control (freq)
Dbf d1,loop
subq.b #1,d0
bne.s ramp * Continue for each frequency
move.b #0,$9ffc1b * Control port #0 == sound off
moveq.l #0,d0
os9 F$Exit
ends