Added template for Mockingboard code.

This commit is contained in:
Bobbi Webber-Manners 2022-11-17 19:38:21 -05:00
parent b39ae02167
commit 05b98edbc1
6 changed files with 49 additions and 4 deletions

Binary file not shown.

View File

@ -278,7 +278,8 @@ MAINZP MAC
PUT MAINMEM.MISC
PUT MAINMEM.AUDIO
PUT MAINMEM.ENSQ
PUT MAINMEM.FREQ
PUT MAINMEM.ENSQFREQ
PUT MAINMEM.MOCK
* Automatically save the object file:
SAV APLCORN.SYSTEM

View File

@ -154,6 +154,9 @@ ENSQAMP PHX
PLX
RTS
**
** Private functions follow (ie: not part of driver API)
**
* Add oscillator number to value in A, return sum in X
* Used by ENSQNOTE & ENSQFREQ

View File

@ -1,12 +1,10 @@
* MAINMEM.FREQ.S
* MAINMEM.ENSQFREQ.S
* (c) Bobbi 2022 GPLv3
*
* Table of frequency values for Ensoniq
* Generated by freq_table script
*
FREQHIGH
DB >72
DB >73

43
mainmem.mock.s Normal file
View File

@ -0,0 +1,43 @@
* MAINMEM.MOCK.S
* (c) Bobbi 2022 GPLv3
*
* Mockingboard Driver.
*
* Mockingboard control registers
* Initialize Mockingboard
MOCKINIT ; TODO
RTS
* Silence all channels
MOCKSILENT ; TODO
RTS
* Configure a Mockingboard oscillator to play a note
* On entry: X - oscillator number 0-3 , A - frequency, Y - amplitude
* Preserves all registers
MOCKNOTE ; TODO
RTS
* Adjust frequency of note already playing
* On entry: Y - frequency to set
* Preserves X & Y
MOCKFREQ ; TODO
RTS
* Adjust amplitude of note already playing
* On entry: Y - amplitude to set
* Preserves X & Y
MOCKAMP PHX
PHY ; Gonna need it again
; TODO
PLY
PLX
RTS