home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fujiology Archive
/
fujiology_archive_v1_0.iso
/
S
/
SHAPESFT
/
MSXMENU2.ZIP
/
MSXMENU2.MSA
/
TUNES_2
/
NOTE.ASC
< prev
next >
Wrap
Text File
|
1985-11-20
|
1KB
|
46 lines
These PRG's will happily run independently of other programs.
They run during the vertical blank interrupt.
They use slot $4d2 or slot $4de.
If you try to run two different slots at the same time,
you will end up with some annoying cacophony.
Reset if necessary.
See the chain examples provided to see how these PRG's may be
used from within your own programs.
In assembler:
move.l $4d2,$200 store interrupt vector in a safe place
clr.l $4d2 turn off interrupt
lea $ff8800,a0 get sound chip
move.b #7,(a0)
move.b #%11111111,2(a0) cut out lingering noise
move.l #$8000000,$ff8800
move.l #$9000000,$ff8800
move.l #$a000000,$ff8800
to turn music on again:
move.l $200,$4d2
Basic users may turn these tunes on/off in a similar manner by poking $4d2
(or $4de as the case may be) . Make sure you are in supervisor mode.
Ex: to turn music off from a basic program:
loke $200,peek($4d2) store interrupt vector in a safe place
$200 IS safe. loke means 'poke a LONG word'
loke $4d2,0 kill interrupt (LONG word!)
poke $ff8800,7 BYTE size !!
poke $ff8802,255 BYTE size
loke $ff8800,$8000000 LONG word
loke $ff8800,$9000000
loke $ff8800,$a000000
to retrieve music:
loke $4d2,peek($200)
Budgie UK
November 23, 1990