home *** CD-ROM | disk | FTP | other *** search
Text File | 1979-10-02 | 39.1 KB | 2,306 lines |
-
-
-
-
- ; DRIVER REMAINS COPYRIGHT D.LOWE
-
- ; BENEATH A STEEL SKY
- ; INTRO MUSIC
-
-
- ; devpac source code file... no macros.
- ; Its commented wherever needed
- ; The samples are incbin at the end,you will
- ; need to change the directory to your own.
- ; This source files contains a devpac pseudo op
- ; called set. it allows redefining of values
- ; you may need to change this to something else if
- ; using a different assembler.
-
- ; It must be assembled with SYMBOLS CASE independent.
-
- ; dont hesitate to ring with any problems
-
-
-
- ; DAVE LOWE.....0723 870648
-
-
-
- ; **************************
-
- section issA,code_c ;must be in low memory for dma access
- ;DEVPAC PSEUDO OP ..CAN BE DELETED
-
-
- ;*****************************************
-
-
- select_tunes equ 0 ;for conditional assembly whilst testing
- ; zero to step tunes on mouse button
- ; can be deleted..not essential
-
- ; ALL EQUs
-
-
- ab00 equ 269*4
- a00 equ 508*2
- bb00 equ 480*2
- b00 equ 453*2
-
- c01 equ 428*2
- db01 equ 404*2
- d01 equ 381*2
- eb01 equ 360*2
- e01 equ 339*2
- f01 equ 320*2
- gb01 equ 302*2
- g01 equ 285*2
- ab01 equ 269*2
- a01 equ 508
- bb01 equ 480
- b01 equ 453
-
- c02 equ 428
- db02 equ 404
- d02 equ 381
- eb02 equ 360
- e02 equ 339
- f02 equ 320
- gb02 equ 302
- g02 equ 285
- ab02 equ 269
- a02 equ 254
- bb02 equ 240
- b02 equ 226
-
- c03 equ 214
- db03 equ 202
- d03 equ 190
- eb03 equ 180
- e03 equ 170
- f03 equ 160
- gb03 equ 151
- g03 equ 143
- ab03 equ 135
- a03 equ 127
-
- bb03 equ 480*2
- b03 equ 453*2
-
- c04 equ 428*2
- db04 equ 404*2
- d04 equ 381*2
- eb04 equ 360*2
- e04 equ 339*2
- f04 equ 320*2
- gb04 equ 302*2
- g04 equ 285*2
- ab04 equ 269*2
- a04 equ 508
- bb04 equ 480
- b04 equ 453
-
- c05 equ 428
- db05 equ 404
- d05 equ 381
- eb05 equ 360
- e05 equ 339
- f05 equ 320
- gb05 equ 302
- g05 equ 285
- ab05 equ 269
- a05 equ 254
- bb05 equ 240
- b05 equ 226
-
- c06 equ 214
- db06 equ 202
- d06 equ 190
- eb06 equ 180
- e06 equ 170
- f06 equ 160
- gb06 equ 151
- g06 equ 143
- ab06 equ 135
- a06 equ 127
- bb06 equ 480*2
- b06 equ 453*2
-
- c07 equ 428*2
- db07 equ 404*2
- d07 equ 381*2
- eb07 equ 360*2
- e07 equ 339*2
- f07 equ 320*2
- gb07 equ 302*2
- g07 equ 285*2
- ab07 equ 269*2
- a07 equ 508
- bb07 equ 480
- b07 equ 453
-
- c08 equ 428
- db08 equ 404
- d08 equ 381
- eb08 equ 360
- e08 equ 339
- f08 equ 320
- gb08 equ 302
- g08 equ 285
- ab08 equ 269
- a08 equ 254
- bb08 equ 240
- b08 equ 226
-
-
- v equ 0
-
- no_loop equ 0
- loop equ 0
- chann1reg equ $dff0a0
- chann2reg equ $dff0b0
- chann3reg equ $dff0c0
- chann4reg equ $dff0d0
- dmacon equ $dff096
- int_bf_int equ $dff01e
- int_bf_w equ $dff09a
- vhposr equ $dff006
- in_line equ 0
- new_snd equ 4
- end_song equ 1
- end_patt equ 8
- new_env equ 12
- pbend equ 16
-
-
-
- hi: equ 223
- lo: equ 446
-
-
-
- r22 equ 134
- r20 equ 179 ;correctum
- r19 equ 150
- r18 equ 178
- r17 equ 200
- r16: equ 227 ;correctum
- r15: equ 249
- r14 equ 280
- r13: equ 305
- r12: equ 333
- r11: equ 361
- r10: equ 389
- r9: equ 419
- r8: equ 446
- r7: equ 446+112
- r6: equ 446+223
- r5: equ 446+223+112
- r4: equ 446*2
- r3: equ 446*3
- r2: equ 446*4
- r1: equ 446*8
-
-
- filter: equ $bfe001
- filter_on equ 44
- filter_off equ 48
-
- modon equ 20
- pboff equ 24
- modoff equ 28
- rest equ 32
- end_fxp equ 36
- end_fx3 equ 36
- end_fx4 equ 40
- acc equ 52
- repeat equ 56
- down equ 1
- up equ 2
-
- fx equ 0
-
-
-
- ;**************************************************************************
- ;**************************************************************************
-
-
- ; THIS IS THE CONTROL SECTION FOR TESTING AS A STAND ALONE PRG.
-
- ; AND CAN BE DELETED WHEN NOT REQUIRED
-
- move.l #1,song_buffer
- jsr select_new_song ;set up tune..numnber 1
-
- testloop:
- jsr delay ;wait for scan line at 50hz on pal
-
- jsr driver ;run driver at 50 hz for testing
-
- bra testloop ;loop back
-
-
- ;--------
-
- ;these are all routines used during test/stand alone
- ; assembly
-
- delay:
- tst.w fxtimer
- bne no_test
- clr.l d0
- move.b $bfe001,d0
- btst #6,d0
- bne no_test1
- move.w #10,fxtimer
- bra testfx4
- no_test
- subq #1,fxtimer
- no_test1
- clr.l d0
- move.w vhposr,d0
- andi.w #%1111111100000000,d0
- cmpi.w #%1111111100000000,d0
-
- bne no_test1
- rts
-
- testfx4:
-
- clr.l d0
- move.b $bfe001,d0
- btst #6,d0
- beq testfx4
-
- move.l song_buffer,d0
- addq.l #1,d0
- cmp.l max_songs,d0
- bne nores
- move.l #1,d0
- nores move.l d0,song_buffer
-
-
- ifeq select_tunes
-
- jsr select_new_song ;new song on mouse button
-
-
- endc
-
- move.l fx_last,d0
- move.l d0,fx_kill
-
- jsr kill_loopfx ;use only one fx at a time
- ;for testing
-
- no_k
- move.l fx_no,fx_number
- move.l fx_no,fx_last
- addq.l #1,fx_no
- move.l max_fx,d0
- cmp.l fx_no,d0
- bne noreset
- move.l #1,fx_no
- noreset:
-
-
- ifne select_tunes
-
- jsr set_up_fx
-
- endc
-
- bra no_test
-
- fxtc: dc.w 10
- fx_no: dc.l 1
- fx_last dc.l 0
-
-
- ; END OF CONTROL (DELETABLE) SECTION
-
- ;********************************************************************
- ;********************************************************************
-
- ; MAIN VARIABLES TO BE ACCESSED BY PROGRAMMER DURING RUNTIME
-
-
- fx_number: dc.l 0 ; number of fx required here
-
-
- fx_kill dc.l 0 ; number of fx to kill/used mainly
- ; to kill looping fx
-
-
- song_buffer dc.l 1 ; number of piece of music required here ie.1 to ? ; currently playing beach background..see list
-
- music_disable: dc.w 0 ; 1 = disable music
-
- fx_disable: dc.w 0 ; 1 = disable fx
-
-
- fade: dc.w 0 ; 0 to 64..0 = full volume/64 = off
-
-
- ; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- ; THESE VARIABLES ARE USED INTERNALLY BY THE DRIVER
- fxr1 dc.l 0
- fxr2 dc.l 0
- fxr3 dc.l 0
- fxr4 dc.l 0
- fxc1 dc.l 0
- fxc2 dc.l 0
- fxc3 dc.l 0
- fxc4 dc.l 0
- fx1_flag dc.w 0
- fx2_flag dc.w 0
- fx3_flag dc.w 0
- fx4_flag dc.w 0
- fxtimer dc.w 0
- gen dc.w 0
- int_disable dc.w 0
- altpf dc.w 0
- kill_flag dc.w 0
- ; *******************************************************
-
- ; CALL THIS SUBROUTINE TO SET UP THE REQIURED FX
- ; on entry it requires the fx number to be in "fx_number"(see above)
-
-
- set_up_fx
- movem.l d5/a2,-(a7) ;save used registers
-
- tst.l fxc4
- bne check3
- use4:
- move.w #%0000000000001000,d5
- lea chann4reg,a2
- jsr end_fx4p
- move.l fx_number,fxr4
- move.l fx_number,fxc4
- move.l #0,fx_number
- bra no_fx
- check3: tst.l fxc3
- bne check2
- use3:
- move.w #%0000000000000100,d5
- lea chann3reg,a2
- jsr end_fx3p
- move.l fx_number,fxr3
- move.l fx_number,fxc3
- move.l #0,fx_number
- bra no_fx
- check2: tst.l fxc2
- bne check1
- use2:
- move.w #%0000000000000010,d5
- lea chann2reg,a2
- jsr end_fx2p
- move.l fx_number,fxr2
- move.l fx_number,fxc2
- move.l #0,fx_number
- bra no_fx
- check1: tst.l fxc1
- bne use3
- use1:
- move.w #%0000000000000001,d5
- lea chann1reg,a2
- jsr end_fx1p
- move.l fx_number,fxr1
- move.l fx_number,fxc1
- move.l #0,fx_number
- no_fx
- movem.l (a7)+,d5/a2 ;restore registers
- rts
-
- ;*************************************************
- ; CALL HERE TO KILL ANY FX...
- ; after putting the number of the fx you want to kill
- ; into fx_kill
-
- kill_loopfx
-
- movem.l d5/a2,-(a7) ;save used registers
- move.l fx_kill,d5
- cmp.l fxc1,d5
- bne k2
- move.w #%0000000000000001,d5
- lea chann1reg,a2
- jsr end_fx1p
- bra error
- k2 cmp.l fxc2,d5
- bne k3
- move.w #%0000000000000010,d5
- lea chann2reg,a2
- jsr end_fx2p
- bra error
- k3 cmp.l fxc3,d5
- bne k4
- move.w #%0000000000000100,d5
- lea chann3reg,a2
- jsr end_fx3p
- bra error
- k4 cmp.l fxc4,d5
- bne error
- move.w #%0000000000001000,d5
- lea chann2reg,a2
- jsr end_fx4p
- error
- clr.l fx_kill
- movem.l (a7)+,d5/a2 ;restore registers
- rts
- ;*************************************************
-
- ; CALL HERE TO KILL ANY SOUNDS LEFT ON CHIP
-
- kill_chip:
- move.w #%0000000000001111,dmacon
- move.l rest_data,chann1reg
- move.l rest_data,chann2reg
- move.l rest_data,chann3reg
- move.l rest_data,chann4reg
- move.w #16,chann1reg+4
- move.w #16,chann2reg+4
- move.w #16,chann3reg+4
- move.w #16,chann4reg+4
- move.w #0,chann1reg+8
- move.w #0,chann2reg+8
- move.w #0,chann3reg+8
- move.w #0,chann4reg+8
- move.w #1,chann1reg+6
- move.w #1,chann2reg+6
- move.w #1,chann3reg+6
- move.w #1,chann4reg+6
- move.l #0,fxr1
- move.l #0,fxr2
- move.l #0,fxr3
- move.l #0,fxr4
- move.w #0,fx1_flag
- move.w #0,fx2_flag
- move.w #0,fx3_flag
- move.w #0,fx4_flag
- move.l #0,fxc1
- move.l #0,fxc2
- move.l #0,fxc3
- move.l #0,fxc4
- rts
- ;****************************************
-
- ; CALL HERE TO SELECT WHICH PIECE OF MUSIC TO PLAY
- ; AFTER PLACING NUMBER (1 to ?) IN "SONG_BUFFER"..see above
- ; a call to this routine will initiliase the driver/kill any sound etc.
- ; make sure this routine has been called before running the interrupt
- ; driven section....see below
-
- select_new_song:
-
- move.w #1,int_disable
- movem.l d0/d1/a0/a1,-(a7) ;save used registers
- move.w music_disable,gen
- move.w #1,music_disable
- jsr kill_chip
- clr.l d0
- move.w #204,d0
- lea gvars,a0
- clloop: clr.w (a0)+
- dbra d0,clloop
- tst.l song_buffer
- beq no_song
- move.l song_buffer,d1
- add.l d1,d1
- add.l d1,d1
- add.l d1,d1
- add.l d1,d1
- LEA SONG_TABLE-16,A1
-
- add.l d1,a1
- MOVE.L (A1)+,WSONG1
- move.l (a1)+,wsong2
- move.l (a1)+,wsong3
- move.l (a1),wsong4
- MOVE.L #pstart,PATTR1
- MOVE.L #pstart,PATTR2
- MOVE.L #pstart,PATTR3
- move.l #pstart,pattr4
- move.l #sstart,songr1
- MOVE.L #sstart,SONGR2
- MOVE.L #sstart,SONGR3
- move.l #sstart,songr4
- no_song
- move.w #1,ch1vars
- move.w #2,ch2vars
- move.w #3,ch3vars
- move.w #4,ch4vars
- move.w #6,ch4fxvars
- move.w #5,ch3fxvars
- move.w #7,ch2fxvars
- move.w #8,ch1fxvars
- move.w gen,music_disable
- clr.w int_disable
- movem.l (a7)+,d0/d1/a0/a1 ;restore registers
- rts
-
- ;**************************************************
-
- ;This is the interrupt routine
-
-
- ; CALL HERE ON A 50hz INTERRUPT DURING RUNTIME
- ; TO PLAY FX AND TUNES
-
- driver:
- tst.w int_disable
- beq process_data
- rts
- process_data
- movem.l d0-d6/a0-a6,-(a7) ;save used registers
-
-
- ch1:
- tst.w fx_disable
- bne test_music1
- tst.l fxr1
- bne ch1j1
- tst.l fxc1
- beq test_music1
- bra ch1j3
- ch1j2 jsr run_dummy1
- jsr run_fx1
- bra ch2
- ch1j1
- jsr set_up1
- ch1j3 tst.w music_disable
- beq ch1j2
- jsr run_fx1
- bra ch2
- test_music1
- tst.w music_disable
- bne ch2
- jsr run_music1
- bra ch2
- ;***********************
-
- ; channel 1 subroutines
-
- run_dummy1
- lea ch1vars,a0
- lea dummy_reg,a2
- move.w #0,d5
- jsr sect1
- rts
-
- set_up1
- move.l fxr1,d0
- add d0,d0
- add d0,d0
- lea fxjump_table-4,A1
- add.l d0,a1
- move.l (a1),currfx1
- clr.l fxr1
- clr.w fxintc1
- rts
-
-
- run_fx1
- lea ch1fxvars,a0
- lea chann1reg,a2
- move.w #%0000000000000001,d5
- move.w #%1000000000000001,d1
- jsr sect1
- rts
-
- run_music1
- lea ch1vars,a0
- lea chann1reg,a2
- move.w #%0000000000000001,d5
- move.w #%1000000000000001,d1
- jsr sect1
- rts
-
- ; **************************
- ch2
- tst.w fx_disable
- bne test_music2
- tst.l fxr2
- bne ch2j1
- tst.l fxc2
- beq test_music2
- bra ch2j3
- ch2j2 jsr run_dummy2
- jsr run_fx2
- bra ch3
- ch2j1
- jsr set_up2
- ch2j3 tst.w music_disable
- beq ch2j2
- jsr run_fx2
- bra ch3
-
- test_music2
- tst.w music_disable
- bne ch3
- jsr run_music2
- bra ch3
- ;***********************
- ; channel 2 subroutines
- run_dummy2
- lea ch2vars,a0
- lea dummy_reg,a2
- move.w #0,d5
- jsr sect1
- rts
-
- set_up2
- move.l fxr2,d0
- add d0,d0
- add d0,d0
- lea fxjump_table-4,A1
- add.l d0,a1
- move.l (a1),currfx2
- clr.l fxr2
- clr.w fxintc2
- rts
-
-
- run_fx2
- lea ch2fxvars,a0
- lea chann2reg,a2
- move.w #%0000000000000010,d5
- move.w #%1000000000000010,d1
- jsr sect1
- rts
-
- run_music2
- lea ch2vars,a0
- lea chann2reg,a2
- move.w #%0000000000000010,d5
- move.w #%1000000000000010,d1
- jsr sect1
- rts
-
- ; **************************
-
- ch3:
- tst.w fx_disable
- bne test_music3
- tst.l fxr3
- bne ch3j1
- tst.l fxc3
- beq test_music3
- bra ch3j3
- ch3j2 jsr run_dummy3
- jsr run_fx3
- bra ch4
- ch3j1
- jsr set_up3
- ch3j3 tst.w music_disable
- beq ch3j2
- jsr run_fx3
- bra ch4
-
- test_music3
- tst.w music_disable
- bne ch4
- jsr run_music3
- bra ch4
-
- ;***********************
-
- ; channel 3 subroutines
-
- run_dummy3
- lea ch3vars,a0
- lea dummy_reg,a2
- move.w #0,d5
- jsr sect1
- rts
-
- set_up3
- move.l fxr3,d0
- add d0,d0
- add d0,d0
- lea fxjump_table-4,A1
- add.l d0,a1
- move.l (a1),currfx3
- clr.l fxr3
- clr.w fxintc3
- rts
-
-
- run_fx3
- lea ch3fxvars,a0
- lea chann3reg,a2
- move.w #%0000000000000100,d5
- move.w #%1000000000000100,d1
- jsr sect1
- rts
-
- run_music3
- lea ch3vars,a0
- lea chann3reg,a2
- move.w #%0000000000000100,d5
- move.w #%1000000000000100,d1
- jsr sect1
- rts
-
- ; **************************
-
- ch4:
- tst.w fx_disable
- bne test_music4
- tst.l fxr4
- bne ch4j1
- tst.l fxc4
- beq test_music4
- bra ch4j3
- ch4j2 jsr run_dummy4
- jsr run_fx4
- bra no4
- ch4j1
- jsr set_up4
- ch4j3 tst.w music_disable
- beq ch4j2
- jsr run_fx4
- bra no4
-
- test_music4
- tst.w music_disable
- bne no4
- jsr run_music4
- no4
- movem.l (a7)+,d0-d6/a0-a6 ;restore registers
- rts
-
- ;***********************
-
- ; channel 4 subroutines
-
- run_dummy4
- lea ch4vars,a0
- lea dummy_reg,a2
- move.w #0,d5
- jsr sect1
- rts
-
- set_up4
- move.l fxr4,d0
- add d0,d0
- add d0,d0
- lea fxjump_table-4,A1
- add.l d0,a1
- move.l (a1),currfx4
- clr.l fxr4
- clr.w fxintc4
- rts
-
-
- run_fx4
- lea ch4fxvars,a0
- lea chann4reg,a2
- move.w #%0000000000001000,d5
- move.w #%1000001000001000,d1
- jsr sect1
- rts
-
- run_music4
- lea ch4vars,a0
- lea chann4reg,a2
- move.w #%0000000000001000,d5
- move.w #%1000001000001000,d1
- jsr sect1
- rts
- ; **************************
-
- sect1: tst.w (a0)
- bne s1j1
- rts
-
- s1j1: tst.w 2(a0)
- beq sect3
- cmpi.w #1,2(a0)
- beq sect4
-
- cmpi.w #3,4(a0)
- beq part2
-
- mode_switch: subq.w #1,2(a0)
-
- check_effects: clr.w altpf
- move.w 6(a0),d2
- tst.w 8(a0)
- beq check_mod
- tst.w 14(a0)
- beq cont_bend
- subq.w #1,14(a0)
- bra check_mod
- cont_bend: addq.w #1,altpf
- move.w 10(a0),d3
- move.w 12(a0),d4
- cmpi.w #1,8(a0)
- beq pbup
-
- sub.w d3,d2
- cmp.w d2,d4
- bcs check_mod
- bra fbend
-
- pbup: add.w d3,d2
- cmp.w d2,d4
- bcc check_mod
- fbend: move.w d4,d2
- clr.w 8(a0)
- check_mod: tst.w 16(a0)
- beq send_alt_pitch
-
-
- tst.w 58(a0)
- beq st_ok
- subq.w #1,58(a0)
- bra send_alt_pitch
- st_ok:
- tst.w 50(a0)
- beq cont_mod
- subq #1,50(a0)
- bra send_alt_pitch
- cont_mod: move.w 52(a0),50(a0)
- addq #1,altpf
- cmpi #3,16(a0)
- bcc addmod
-
- move.w 56(a0),d3
- sub.w d3,d2
- addq.w #1,16(a0)
- bra send_alt_pitch
- addmod:
-
- move.w 54(a0),d3
- add.w d3,d2
- addq.w #1,16(a0)
- cmpi.w #5,16(a0)
- bne send_alt_pitch
- move.w #1,16(a0)
-
- send_alt_pitch: tst.w altpf
- beq send_env
- move.w d2,6(a0)
- move.w d2,6(a2)
-
- send_env:
-
- do_env_check:
-
- norm_env:
- move.l 18(a0),a1
- cmpi.w #255,(a1)
- beq env_finished
- ;cmpi.w #1,66(a0)
- ;bne no_acc
-
- resu clr.l d0
- move.w (a1)+,d0
- ;sub.w 64(a0),d0
-
- sub.w fade,d0
- bcc sete
-
- move.w #0,d0
-
-
- sete move.w d0,8(a2)
- move.l a1,18(a0)
- rts
-
-
- no_acc:
- ;resu:
- no_off
- ;move.w (a1)+,d0
- sub.w fade,d0
- bcc sete2
- move.w #0,d0
- sete2 move.w d0,8(a2)
- move.w (a1)+,8(a2)
-
- fint: move.l a1,18(a0)
- rts
-
- env_finished:
- subq.l #2,a1
- bra resu
- rts
-
-
-
- one_shot_note: move.w #3,4(a0)
- move.l 38(a0),(a2)
- move.w 42(a0),4(a2)
- move.w d1,dmacon
- bra send_env
-
-
- part2:
- move.l 44(a0),(a2)
- move.w 48(a0),4(a2)
- subq.w #1,2(a0)
- move.w #1,4(a0)
- bra check_effects
-
- sect3:
- move.w #0,66(a0)
-
- move.l 22(a0),a1
- control_ret: move.w (a1)+,d0
- cmpi.w #100,d0
- bls sect5
-
- acc_note:
- move.w d0,6(a0)
- move.w d0,6(a2)
- move.w (a1)+,2(a0)
- subq.w #1,2(a0)
- move.l a1,22(a0)
- move.l 34(a0),18(a0)
- move.w 60(a0),58(a0)
-
-
- tst.w 16(a0)
- beq no_mod_res
- move.w #1,16(a0)
- no_mod_res:
- cmpi.w #0,4(a0)
- beq do_loop
- bra one_shot_note
-
-
- do_loop: move.w d1,dmacon
- bra send_env
-
- do_rest:
- move.w (a1)+,2(a0)
- subq.w #1,2(a0)
- move.l a1,22(a0)
- move.l #rest_env,18(a0)
-
- move.w #0,8(a2)
- bra send_env
-
- sect4:
- cmpi.w #0,4(a0)
- beq noof
- move.w d5,dmacon
- noof: subq.w #1,2(a0)
- bra check_effects
-
- sect5: move.l #jump_table,a3
- move.l (a3,d0),a4
- jmp (a4)
-
- jump_table:
- dc.l in_line_data
- dc.l nsound
- dc.l patt_end
- dc.l get_env
- dc.l check_pbend
- dc.l do_mod
- dc.l bend_off
- dc.l mod_off
- dc.l do_rest
- dc.l end_fx
- dc.l end_fx
- dc.l s_f_on
- dc.l s_f_off
- dc.l set_acc
- dc.l rept
-
- in_line_data:
-
- nop
- rts
-
- rept:
- move.l (a1),a1
- bra control_ret
-
- s_f_on:
- bclr #1,filter
- bra control_ret
- s_f_off:
- bset #1,filter
- bra control_ret
-
- nsound: move.l (a1)+,a3
- cmpi.w #0,(a3)
- bne one_shot_sound
- move.w (a3)+,4(a0)
- move.l (a3)+,(a2)
- move.w (a3),4(a2)
- jmp control_ret
-
- one_shot_sound:
- move.w (a3)+,4(a0)
- move.l (a3)+,38(a0)
- move.l (a3)+,42(a0)
- move.l (a3),46(a0)
- jmp control_ret
-
- patt_end:
-
- move.l 26(a0),a1
- cmpi.l #0,(a1)
- beq song_control
- addq.l #4,26(a0)
- move.l (a1),a1
- jmp control_ret
- get_env:
- move.l (a1)+,a4
- move.l (a4)+,62(a0)
-
- move.l a4,34(a0)
-
- bra control_ret
-
- check_pbend:
- move.l (a1)+,8(a0)
- move.l (a1)+,12(a0)
- bra control_ret
-
- do_mod: move.w #1,16(a0)
- move.l (a1)+,50(a0)
- move.l (a1)+,54(a0)
- move.l (a1)+,58(a0)
- bra control_ret
-
- bend_off: clr.w 8(a0)
- bra control_ret
-
- mod_off: clr.w 16(a0)
- bra control_ret
-
-
- end_fx:
- cmpi.w #6,(a0)
- beq end_fx4p
- cmpi.w #5,(a0)
- beq end_fx3p
- cmpi.w #7,(a0)
- beq end_fx2p
-
- end_fx1p:
- move.w d5,dmacon
- move.w #1,chann1reg+6
- move.w #0,8(a2)
- move.l #0,fxc1
- rts
-
- end_fx2p:
- move.w d5,dmacon
- move.w #1,chann2reg+6
- move.w #0,8(a2)
- move.l #0,fxc2
- rts
-
-
- end_fx3p:
- move.w d5,dmacon
- move.w #1,chann3reg+6
- move.w #0,8(a2)
- move.l #0,fxc3
- rts
-
- end_fx4p:
- move.w d5,dmacon
- move.w #1,chann4reg+6
- move.w #0,8(a2)
- move.l #0,fxc4
- rts
-
- set_acc: move.w #1,66(a0)
- bra control_ret
-
- song_control:
- addq.l #4,a1
- move.l 30(a0),26(a0)
- move.l 26(a0),a1
- addq.l #4,26(a0)
- move.l (a1),a1
- jmp control_ret
-
-
- ;"""""""""""""""""""""""""""""""""""""""""""""""""
-
- max_songs: dc.l 2
-
- ;;; DATA
-
- song_table:
- dc.l s1_i,s2_i,s3_i,s4_i ;intro tune
-
-
- ;************************************************************
- gvars:
- ch1vars
- dc.w 0
- dc.w 0,0,0,0,0,0,0,0,0,0
- pattr1: dc.l 0
- songr1: dc.l 0
- wsong1: dc.l 0
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
- ch2vars
- dc.w 0
- dc.w 0,0,0,0,0,0,0,0,0,0
- pattr2: dc.l 0
- songr2: dc.l 0
- wsong2: dc.l 0
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
- ch3vars
- dc.w 0
- dc.w 0,0,0,0,0,0,0,0,0,0
- pattr3: dc.l 0
- songr3: dc.l 0
- wsong3: dc.l 0
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
- ch4vars
- dc.w 0
- dc.w 0,0,0,0,0,0,0,0,0,0
- pattr4: dc.l 0
- songr4: dc.l 0
- wsong4: dc.l 0
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
-
- ch1fxvars
- dc.w 0
- fxintc1:
- dc.w 0,0,0,0,0,0,0,0,0,0
- currfx1:
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
- ch2fxvars
- dc.w 0
- fxintc2:
- dc.w 0,0,0,0,0,0,0,0,0,0
- currfx2:
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
-
- ch3fxvars
- dc.w 0
- fxintc3:
- dc.w 0,0,0,0,0,0,0,0,0,0
- currfx3:
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-
- ch4fxvars
- dc.w 0
- fxintc4:
- dc.w 0,0,0,0,0,0,0,0,0,0
- currfx4:
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- ;************************************************************
-
- dummy_reg dc.l 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- dc.l 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- dc.l 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- dc.l 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- ;************************************************************
-
-
- fxp:
-
-
- ;*************************
-
-
- fxjump_table:
- dc.l 0 ;fx number 1
-
-
- max_fx dc.l 10 ;number + 1 for test routines only
- ;______________________________________________________________________
-
-
- sstart: dc.l 0,end_song
-
- pstart: dc.w end_patt
-
-
- ;----------------------------------
-
- ;;;;;;;;;;;;;;;;;;;;; Music Data ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- cr set 20
- q set cr/2
- sq set q/2
- dsq set sq/4
-
- tcr1 set 13
- tcr2 set 14
-
- tq1 set 7
- tq2 set 6
-
- ssilence:
- dc.l pr
- dc.l 0,end_song
-
-
- ;************************************************
-
- r equ r8-10
- ro equ r16
-
- songs:
-
- ;intro tune
- s1_i:
-
- dc.l chamber_part1
- dc.l chamber_part2
- dc.l chamber_part1r
- dc.l chamber_part3
- dc.l orchhit_snd
- dc.l ch1_stabs
- dc.l chamber_part4
-
- dc.l chamber_part5
- dc.l chamber_part6
- dc.l chamber_part6
- dc.l chamber_part6
- dc.l chamber_part7
-
-
- dc.l snare_snd
- dc.l snare2
- dc.l snare2
-
-
- dc.l string_snd
- dc.l end_strings1
- dc.l orchhit_snd
- dc.l end_stabs
-
-
-
- dc.l pri
- dc.l 0,end_song
- s2_i:
-
- dc.l pr,pr,pr
- dc.l string_snd
- dc.l tune1
-
- dc.l oboe_snd
- dc.l oboe_tune
-
- dc.l snare_trip
-
- dc.l pri
- DC.L 0,end_song
-
-
- s3_i:
-
- dc.l cello_snd
- dc.l cello1
-
- dc.l pri
- dc.l 0,end_song
-
- s4_i:
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc1b
- dc.l tymproll ;bar 12
-
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc
- dc.l start_perc
-
- dc.l tymproll
- dc.l tymproll
- dc.l crash_stab
-
- dc.l snare_sndl
- dc.l snare1
- dc.l pr
-
- dc.l flute_snd
- dc.l flute1
- dc.l flute1
-
-
- dc.l string_snd
- dc.l fast_strings1
- dc.l fast_strings1
- dc.l fast_strings1
- dc.l fast_strings2
-
- dc.l pri
-
-
- dc.l 0,end_song
-
-
- ;--------
- temp_rest
-
- dc.w rest,(cr*4)*44
- dc.w end_patt
- ;---------
- ;bass patterns
-
- cello1:
- dc.w new_env
- dc.l cello_envq
- dc.w c02,cr,g01,q,eb01,cr,c01,cr+q
- dc.w c01,q,d01,q,eb01,q,f01,q,g01,q,bb01,q+cr
- dc.w ab01,cr*4,ab01,q,g01,q,f01,q,eb01,q,f01,q,eb01,q
- dc.w d01,q,eb01,q
-
- dc.w new_env
- dc.l cello_env
-
- dc.w c01,cr*3,g01,cr ;bar 5
- dc.w c01,cr*3,g01,cr
- dc.w ab00,cr*3,eb01,cr
- dc.w ab00,cr*2,bb01,cr*2
- dc.w a01,cr*4 ;bar 9
- dc.w c02,cr*4
- dc.w f02,cr,rest,q,g02,q,rest,cr,f02,cr
- dc.w rest,q,eb02,q,rest,cr,d02,cr,eb02,cr
- dc.w c01,cr*3,g01,cr ;bar 13
- dc.w c01,cr*3,g01,cr
- dc.w ab00,cr*3,eb01,cr
- dc.w ab00,cr*2,bb01,cr*2
- dc.w ab01,cr*4,c02,cr*3
- dc.w f02,q,eb02,q,f02,q,eb02,q
- dc.w d02,cr*5
- dc.w f02,cr*2,rest,q,ab01,q+cr*3
- dc.w rest,cr*4 ;bar 22
- dc.w c01,cr*4
-
-
- dc.w c02,tcr1,g01,tcr2,bb01,tcr1
- dc.w f01,tcr1,g01,tcr2,c01,tcr1
-
-
- ;dc.w rest,cr*4
-
- dc.w rest,q,ab00,q+cr*3
- dc.w rest,cr*4
- dc.w g02,cr*4
- dc.w g01,cr*4
-
- dc.w eb01,cr*2,bb01,cr*2
- dc.w b01,cr*2,ab01,cr*2
- dc.w c01,cr*2,g01,cr*2
- dc.w c02,cr*2,g01,cr,g01,cr
- dc.w f01,cr*2,ab01,cr*2
- dc.w c02,cr*2,g01,cr*2
- dc.w bb01,cr*3,f01,cr
- dc.w bb01,cr*4,eb01,cr*2
- dc.w bb01,cr*2,b01,cr*2,ab01,cr*2
- dc.w c01,cr*2,g01,cr*2 ;bar 39
- dc.w c02,cr*2,g01,cr,g01,cr
- dc.w f01,cr*2,ab01,cr*2
- dc.w c02,cr*2,g01,cr*2
- dc.w bb01,cr*3,f01,cr
- dc.w bb01,cr*4
- dc.w c01,cr,g01,cr,c02,cr,g02,cr ;bar 45
-
- dc.w c01,cr,g01,cr,c02,cr,g01,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,eb02,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,bb02,cr
- dc.w c01,cr,g01,cr,c02,cr,g02,cr
- dc.w c01,cr,g01,cr,c02,cr,g01,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,eb02,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,bb02,cr
- dc.w c01,cr,g01,cr,c02,cr,g02,cr ;bar 53
- dc.w c01,cr,g01,cr,c02,cr,g01,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,eb02,cr
- dc.w ab00,cr,eb02,cr,ab02,cr,bb02,cr
- dc.w rest,cr,c02,cr,eb02,cr,gb02,cr
- dc.w a02,cr,eb02,q+sq,a02,sq+q
- dc.w g02,q,gb02,q,eb02,q
- dc.w rest,cr,db02,cr,f02,cr,bb02,cr
- dc.w db01,cr,db02,cr,f02,cr,bb02,cr
- dc.w a01,cr,c02,cr,eb02,cr,gb02,cr ;bar 61
- dc.w a01,cr,eb01,q+sq,a01,sq+q,g01,q,gb01,q,e01,q
- dc.w c01,cr,eb01,cr,gb01,cr,a01,cr
- dc.w c02,cr,gb01,q+sq,c02,sq+q,bb01,q,a01,q,g01,q
- dc.w g01,sq,g01,q,g01,sq,g01,cr,rest,q
- dc.w f01,cr,f01,q,eb01,sq,eb01,q,eb01,sq,eb01,cr
- dc.w rest,cr,d01,cr,g01,cr*4
- ;dc.w g01,q
-
- dc.w g01,tq1,g01,tq2,g01,tq1
- dc.w g01,tq1,g01,tq2,g01,tq1
- dc.w g01,q
-
-
-
- dc.w end_patt
-
-
- ;---------
-
- ;oboe patterns
-
- oboe_tune
- dc.w rest,cr*2+q+sq
- dc.w g02,sq+sq,ab02,sq+q,bb02,cr*2+q
- dc.w ab02,sq,bb02,sq,ab02,q,g02,q
- dc.w ab02,cr*3,g02,q,f02,q,g02,q,f02,q,eb02,cr*3
- dc.w c02,cr+q,d02,q+cr,eb02,cr,ab02,cr*3,g02,q,f02,q
- dc.w g02,cr*3,f02,q,eb02,q,f02,cr*7
- dc.w g02,q,ab02,q,bb02,cr*2+q,ab02,sq,bb02,sq,ab02,q
- dc.w g02,q,ab02,cr*3,g02,q,f02,q,g02,q,f02,q,eb02,cr*3
- dc.w e02,cr+q,f02,q+cr,g02,cr,ab02,cr*3,g02,q,f02,q
- dc.w g02,cr*3,f02,q,eb02,q,f02,cr*7
- dc.w g02,q,ab02,q,g02,cr*4,bb02,cr*3,ab02,q,g02,q,f02,cr
- dc.w g02,cr+sq,eb02,sq+q+cr*3+sq
- dc.w f02,q+sq+cr,g02,cr*4,bb02,cr*3,bb02,q,c03,q,c03,cr*2
- dc.w bb02,cr*2,ab02,cr*2,g02,cr*2-q,rest,q,g02,cr*4
- dc.w bb02,cr*3,ab02,q,g02,q,f02,cr,g02,cr+sq,eb02,q+sq+cr*3+sq
- dc.w f02,q+sq+cr,gb02,cr*4+sq,a02,q+sq+cr*2
- dc.w bb02,q,c03,q+sq,bb02,q+sq+cr*3+sq
- dc.w f02,q+sq+cr*3,gb02,cr*4+sq,a02,q+sq+cr*2
- dc.w bb02,q,c03,q,a02,cr*4+sq,c03,q+sq+cr*2
- dc.w db03,q,eb02,q
-
- dc.w end_patt
-
- ;-------------
- ;flute patt
- flute1
- dc.w new_env
- dc.l flute_envq
- dc.w rest,cr,eb02,q,f02,q,g02,cr,eb02,cr,rest,cr
- dc.w d02,q,eb02,q,f02,cr,d02,cr*2
- dc.w c02,q,bb01,q,c02,cr,g01,cr
- dc.w c02,cr,rest,q,d02,q,rest,cr,eb02,cr
- dc.w rest,cr,ab02,q,g02,q,ab02,cr,f02,cr
- dc.w rest,cr,g02,q,f02,q,g02,cr,eb02,cr
- dc.w f02,cr*4,rest,cr*4
-
- dc.w end_patt
-
- ;----------------
- ;string patterns
-
- end_strings1:
- dc.w g02,q,d02,q,g01,q,a02,q,d02,q,g01,q
- dc.w bb02,q,d02,q
- dc.w g01,q,c03,q,d02,q,g01,q,d03,q,d02,q
- dc.w f03,cr,g03,cr*4
- dc.w end_patt
-
-
- end_stabs
- dc.w g02,tq1,g02,tq2,g02,tq1
- dc.w g02,tq1,g02,tq2,g02,tq1
- dc.w g02,cr*2
- dc.w end_patt
-
- tune1
- dc.w modon,1,1,1,1,8,8
- dc.w rest,cr*2+q
- dc.w c02,cr,eb02,q,g02,cr*2+q+sq
- dc.w f02,q,eb02,q+sq,f02,cr*2+q,eb02,cr,d02,q
- dc.w eb02,q,d02,q,c02,cr*5+q+sq
- dc.w c02,sq+q,eb02,q
- dc.w f02,cr*2+q
- dc.w eb02,cr,d02,q,eb02,cr*2+q
- dc.w d02,cr,c02,q,ab01,cr*3,rest,cr
- dc.w ab01,q,bb01,q,c02,q,d02,q,eb02,q,f02,q
- dc.w g02,q,ab02,q,g02,cr*2+q+sq
- dc.w f02,sq+sq,eb02,q+sq
-
- dc.w f02,cr*2+q
- dc.w eb02,cr,d02,q,eb02,q
- dc.w d02,q,c02,cr*5+q,rest,sq
-
- dc.w c02,sq+q,eb02,q,f02,cr*4
- dc.w eb02,cr*3,d02,q,c02,q,d02,q+sq,c02,sq,bb01,cr*5
- dc.w g01,cr*2,ab01,cr*4,c02,cr*2,eb02,cr*2,g02,cr*4
-
-
- dc.w new_env
- dc.l pizpiano_env
- dc.w new_snd
- dc.l pizpianop
-
- dc.w c03,tcr1,g02,tcr2,bb02,tcr1
- dc.w f02,tcr1,g02,tcr2,c02,tcr1
-
- dc.w new_env
- dc.l strings_env
- dc.w new_snd
- dc.l stringsp
-
-
- dc.w c03,cr,bb02,cr,ab02,cr,g02,cr,f02,cr
- dc.w eb02,cr,d02,cr,c02,cr,d02,cr*4
- ;bar 28 starts here
-
- dc.w end_patt
-
-
- fast_strings1
- dc.w new_env
- dc.l strings_envq
- dc.w rest,q,c02,sq,d02,sq,eb02,sq,f02,sq,g02,sq,f02,sq,g02,sq
- dc.w bb02,sq,c03,sq,d03,sq,eb03,sq,rest,sq
- dc.w eb03,sq,c03,sq,bb02,cr,g02,q,bb02,cr,f02,sq
- dc.w eb02,sq,d02,sq,c02,sq,bb01,q
- dc.w ab01,sq,g01,sq,ab01,sq,bb01,sq,c02,sq ;bar 47
- dc.w bb01,sq,c02,sq,d02,sq,eb02,sq,c02,sq
- dc.w d02,sq,eb02,sq,f02,sq,d02,sq,eb02,sq,f02,sq
- dc.w g02,cr,f02,q,eb02,q+cr,d02,cr
- dc.w end_patt
-
- fast_strings2
- dc.w rest,q,c02,sq,d02,sq,eb02,sq,d02,sq,eb02,sq,f02,q
- dc.w gb02,sq,ab02,sq,gb02,sq,a02,q,f02,q
- dc.w c03,cr,a02,q,c03,cr,a02,sq,gb02,sq,eb02,q,c02,q
-
- dc.w ab01,sq,g01,sq,ab01,sq,bb01,sq,c02,sq ;bar 47
- dc.w bb01,sq,c02,sq,d02,sq,eb02,sq,c02,sq
- dc.w d02,sq,eb02,sq,f02,sq,d02,sq,eb02,sq,f02,sq
-
- dc.w ab02,cr,g02,q,f02,q,rest,cr,eb02,cr
-
- dc.w rest,q,c02,sq,d02,sq,eb02,sq,d02,sq,eb02,sq,f02,q
- dc.w gb02,sq,ab02,sq,gb02,sq,a02,q,f02,q
-
- dc.w c03,cr,a02,q,c03,cr,a02,sq,gb02,sq,eb02,q,c02,cr ;bar 63
-
- dc.w eb02,sq,f02,sq,gb02,sq,f02,sq,gb02,sq,ab02,q
- dc.w a02,sq,b02,sq,a02,sq,c03,q,a02,q
-
- dc.w eb03,cr,c03,q,eb03,cr,c03,sq,a02,sq,gb02,q,eb02,q
-
- dc.w g01,tq1,f01,tq2,g01,tq1
- dc.w bb01,tq1,g01,tq2,bb01,tq1
- dc.w c02,tq1,bb01,tq2,c02,tq1
- dc.w d02,tq1,c02,tq2,d02,tq1
-
- dc.w f02,tq1,d02,tq2,f02,tq1
- dc.w g02,tq1,f02,tq2,g02,tq1
- dc.w bb02,tq1,a02,tq2,bb02,tq1
- dc.w a02,tq1,bb02,tq2,a02,tq1
- dc.w g02,cr*4
-
- dc.w g01,tq1,g01,tq2,g01,tq1
- dc.w g01,tq1,g01,tq2,g01,tq1
- dc.w g01,q
-
- dc.w end_patt
-
-
-
- ;-------------------------chord patterns---------
- chamber_part1:
- dc.w new_env
- dc.l chord_env
- dc.w new_snd
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd
- dc.l ebbbp
- dc.w r,q,r,cr,r,q
- dc.w new_snd
- dc.l cebabp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd
- dc.l debbbp
- dc.w r,q,r,cr,r,q
-
-
- chamber_part1r:
-
- dc.w new_snd
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd
- dc.l ebbbp
- dc.w r,q,r,cr,r,q
-
- dc.w new_snd
- dc.l cebp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q,r,q,r,cr,r,q
-
- dc.w new_snd
- dc.l debp
- dc.w r,q,r,cr,r,q
- dc.w end_patt
-
-
- chamber_part2:
-
- dc.w new_snd
- dc.l acebp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd
- dc.l abcfp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w r,q,r,cr,r,q,r,sq,r,sq,r,q,r,q,r,q
-
- dc.w end_patt
-
-
- chamber_part3: ;bar 17
- dc.w new_snd
- dc.l abcfp ;???? no f on score
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd
- dc.l cebp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd ;bar 19
- dc.l debbbp ;???? no eb on score
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w r,q,r,cr,r,q
- dc.w new_snd ;bar 20/2
- dc.l ebbbp ;???? added g on score
- dc.w r,q,r,cr,r,q
-
- dc.w new_snd ;bar 21
- dc.l cebabp ;???? different inversion on score
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w r,q,r,cr,r,q
- dc.w end_patt
-
- ch1_stabs
- dc.w bb01,cr*2,c02,cr*4
- dc.w new_env
- dc.l orchhit_envq
- dc.w c03,tcr1,g02,tcr2,bb02,tcr1
- dc.w f02,tcr1,g02,tcr2,c02,tcr1
- dc.w end_patt
-
- ;-----------
-
- cp:
- tymproll
- dc.w new_env
- dc.l tymproll_env
- dc.w new_snd
- dc.l tymprollp
- dc.w r8,cr*2,r8,cr*2
- dc.w end_patt
-
- snare_trip
- dc.w new_env
- dc.l snare_env
- dc.w new_snd
- dc.l snarep
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
-
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
- dc.w r16,tq1,r16,tq2,r16,tq1
-
- dc.w new_env
- dc.l crash_env
- dc.w new_snd
- dc.l crashp
- dc.w r14,cr*4
-
- dc.w end_patt
-
-
-
-
-
-
- start_perc:
- dc.w new_env
- dc.l crash_env
- dc.w new_snd
- dc.l crashp
- dc.w r16,cr*2-q
- dc.w new_env
- dc.l tymp_env
- dc.w new_snd
- dc.l tympp
- dc.w r6,q,r4,cr*6
- dc.w end_patt
-
- start_perc1b:
- dc.w new_env
- dc.l crash_env
- dc.w new_snd
- dc.l crashp
- dc.w r16,cr*2-q
- dc.w new_env
- dc.l tymp_env
- dc.w new_snd
- dc.l tympp
- dc.w rest,q,rest,cr*2
- dc.w end_patt
-
- crash_stab
- dc.w new_env
- dc.l crash_env
- dc.w new_snd
- dc.l crashp
- dc.w r12,cr*4
-
- dc.w new_env
- dc.l flute_env
- dc.w new_snd
- dc.l flutep
- dc.w c03,tcr1,g02,tcr2,bb02,tcr1
- dc.w f02,tcr1,g02,tcr2,c02,tcr1
- dc.w end_patt
-
- snare1
- dc.w r16,q,r16,cr,r16,q,r16,cr*2
- dc.w r16,q,r16,cr,r16,q,r16,cr*2
- dc.w r16,q,r16,cr,r16,q,r16,cr*2
- dc.w end_patt
-
- snare2
- dc.w r16,q,r16,q,r16,cr
- dc.w r16,q,r16,q,r16,cr
- dc.w r16,q,r16,q,r16,q,r16,q
- dc.w r16,q,r16,q,r16,cr
- dc.w end_patt
-
-
-
- ;--------------
-
-
- chamber_part4
- dc.w new_snd ;
- dc.l cebabp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd ;
- dc.l bbdfbbp
- dc.w r,sq,r,sq,r,q,r,q,r,q
- dc.w new_snd ;
- dc.l gcdgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd ;
- dc.l gbdgp
- dc.w r,q,r,cr,r,q,r,q,r,q,rest,cr
- dc.w end_patt
-
-
- chamber_part5
- dc.w new_env
- dc.l chord_envq
- dc.w new_snd ;bar 29
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,cr
- dc.w new_snd ;
- dc.l ebfabbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,q
- dc.w new_snd ;
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd ;
- dc.l ebbbp
- dc.w r,q,r,cr,r,q,r,sq,r,sq,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l abcfp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l ebbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l ebfabbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l fabbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,q
- dc.w new_snd ;
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,cr
- dc.w new_snd ;
- dc.l ebfabbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,q
- dc.w new_snd ;
- dc.l ebgp
- dc.w r,q,r,cr,r,q,r,q,r,cr,r,q
- dc.w new_snd ;
- dc.l ebbbp
- dc.w r,q,r,cr
- dc.w new_snd ;
- dc.l egbbcp
- dc.w r,q,r,sq,r,sq,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l abcfp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l ebbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l ebfabbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w new_snd ;
- dc.l fabbbp
- dc.w r,q,r,q,r,cr,r,q,r,q,r,cr
- dc.w end_patt
-
- chamber_part6
- dc.w new_env
- dc.l chord_env
- dc.w new_snd ;
- dc.l ebgp
- dc.w r,cr,r,cr,r,cr,r,cr
- dc.w r,cr,r,cr
- dc.w new_snd ;
- dc.l ebbbp
- dc.w r,cr,r,cr
- dc.w new_snd ;
- dc.l cebp
- dc.w r,cr,r,cr,r,cr,r,cr
- dc.w r,cr,r,cr
- dc.w new_snd ;
- dc.l debp
- dc.w r,cr,r,cr
- dc.w end_patt
-
-
- chamber_part7 ;bar 57
- dc.w new_snd ;
- dc.l adbebgbp
- dc.w r,cr,r,cr,r,cr,r,cr
- dc.w new_snd ;
- dc.l acebgbp
- dc.w r,cr,r,cr,r,cr,r,cr
- dc.w new_snd ;
- dc.l bbdbp
- dc.w r,cr,r,cr,r,cr,r,cr
- dc.w new_snd ;
- dc.l cebp
- dc.w r,cr,r,cr,r,cr,r,q
- dc.w end_patt
-
-
- chord_env dc.w 0,48,255
- chord_envq dc.w 0,32,255
- orchhit_env dc.w 0,60,255
- orchhit_envq dc.w 0,55,255
- strings_env dc.w 0,48,255
- strings_envq dc.w 0,38,255
- oboe_env dc.w 0,53,255
- histrg_env dc.w 0,48,255
- flute_env dc.w 0,40,255
- flute_envq dc.w 0,30,255
- pizpiano_env dc.w 0,28,255
- tymproll_env dc.w 0,40,255
- tymp_env dc.w 0,50,255
- tymp_envl dc.w 0,60,255
- cello_env dc.w 0,38,255
- cello_envq dc.w 0,32,255
- crash_env dc.w 0,40,255
- snare_env: dc.w 0,35,255
- snare_envl: dc.w 0,45,255
-
- ;----------------
- pri:
- dc.w rest,65000
- dc.w rest,65000
- dc.w rest,65000
- dc.w rest,65000
- dc.w rest,65000
- dc.w rest,65000
- dc.w rest,65000
- dc.w end_patt
-
- pr:
- dc.w rest,cr*4
- dc.w end_patt
-
- ;--------------------
-
- sounds:
-
- flute_snd:
- dc.w new_env
- dc.l flute_env
- dc.w new_snd
- dc.l flutep
- dc.w end_patt
-
- orchhit_snd:
- dc.w new_env
- dc.l orchhit_env
- dc.w new_snd
- dc.l orchhitp
- dc.w end_patt
-
- pizpiano_snd:
- dc.w new_env
- dc.l pizpiano_env
- dc.w new_snd
- dc.l pizpianop
- dc.w end_patt
-
-
-
-
-
- string_snd:
- dc.w new_env
- dc.l strings_env
- dc.w new_snd
- dc.l stringsp
- dc.w end_patt
-
- oboe_snd:
- dc.w new_env
- dc.l oboe_env
- dc.w new_snd
- dc.l oboep
- dc.w end_patt
-
-
-
-
- flute_sndq:
- dc.w new_env
- dc.l flute_envq
- dc.w new_snd
- dc.l flutep
- dc.w end_patt
-
- snare_snd:
- dc.w new_env
- dc.l snare_env
- dc.w new_snd
- dc.l snarep
- dc.w end_patt
-
- snare_sndl:
- dc.w new_env
- dc.l snare_envl
- dc.w new_snd
- dc.l snarep
- dc.w end_patt
-
-
- cello_snd:
- dc.w new_env
- dc.l cello_env
- dc.w new_snd
- dc.l cellop
- dc.w end_patt
-
- crash_snd:
- dc.w new_env
- dc.l crash_env
- dc.w new_snd
- dc.l crashp
- dc.w end_patt
-
-
- ;***********************************************
-
- parameters:
-
- iff equ 108
-
- ; sample parameters
-
-
- snarep
- dc.w 1
- dc.l snared
- dc.w 2240/2
- dc.l restd
- dc.w 16/2
-
-
-
- flutep
- dc.w 1
- dc.l fluted+iff
- dc.w 7278/2
- dc.l fluted+4173+iff
- dc.w 3106/2
-
- sinep
- dc.w 1
- dc.l sined
- dc.w 16/2
- dc.l sined
- dc.w 16/2
-
- ;-----
- ebgp
- dc.w 1
- dc.l ebgd+104
- dc.w 4669/2
- dc.l restd
- dc.w 16/2
-
- ebbbp
- dc.w 1
- dc.l ebbbd+104
- dc.w 4819/2
- dc.l restd
- dc.w 16/2
-
-
- cebp
- dc.w 1
- dc.l cebd+104
- dc.w 5155/2
- dc.l restd
- dc.w 16/2
-
- cebabp
- dc.w 1
- dc.l cebabd+104
- dc.w 5226/2
- dc.l restd
- dc.w 16/2
-
- debbbp
- dc.w 1
- dc.l debbbd+104
- dc.w 4547/2
- dc.l restd
- dc.w 16/2
-
- debp
- dc.w 1
- dc.l debd+104
- dc.w 4267/2
- dc.l restd
- dc.w 16/2
-
- acebp
- dc.w 1
- dc.l acebd+104
- dc.w 4273/2
- dc.l restd
- dc.w 16/2
-
- abcfp
- dc.w 1
- dc.l abcfd+104
- dc.w 4076/2
- dc.l restd
- dc.w 16/2
-
- bbdfbbp
- dc.w 1
- dc.l bbdfbbd+104
- dc.w 3150/2
- dc.l restd
- dc.w 16/2
-
- gcdgp
- dc.w 1
- dc.l gcdgd+104
- dc.w 2664/2
- dc.l restd
- dc.w 16/2
-
- gbdgp
- dc.w 1
- dc.l gbdgd+104
- dc.w 2795/2
- dc.l restd
- dc.w 16/2
-
- ebfabbp
- dc.w 1
- dc.l ebfabbd+104
- dc.w 3465/2
- dc.l restd
- dc.w 16/2
-
- ebfabbbp
- dc.w 1
- dc.l ebfabbbd+104
- dc.w 3208/2
- dc.l restd
- dc.w 16/2
-
- fabbbp
- dc.w 1
- dc.l fabbbd+104
- dc.w 3219/2
- dc.l restd
- dc.w 16/2
-
- egbbcp
- dc.w 1
- dc.l egbbcd+104
- dc.w 3048/2
- dc.l restd
- dc.w 16/2
-
- adbebgbp
- dc.w 1
- dc.l adbebgbd+104
- dc.w 3049/2
- dc.l restd
- dc.w 16/2
-
-
- acebgbp
- dc.w 1
- dc.l acebgbd+104
- dc.w 2621/2
- dc.l restd
- dc.w 16/2
-
- bbdbp
- dc.w 1
- dc.l bbdbd+104
- dc.w 2620/2
- dc.l restd
- dc.w 16/2
-
- orchhitp
- dc.w 1
- dc.l orchhit8d+104
- dc.w 5214/2
- dc.l restd
- dc.w 16/2
-
- tymprollp
- dc.w 1
- dc.l tymprolld+104
- dc.w 11234/2
- dc.l restd
- dc.w 16/2
-
- tympp
- dc.w 1
- dc.l tymprolld+104+5504
- dc.w 5730/2
- dc.l restd
- dc.w 16/2
-
-
-
-
-
- stringsp
- dc.w 1
- dc.l strings1d+104+3208
- dc.w 6438/2
- dc.l strings1d+104+3208
- dc.w 6438/2
-
- oboep
- dc.w 1
- dc.l oboed+104+300
- dc.w 10514/2
- dc.l oboed+104+4002
- dc.w 6512/2
-
-
- pizpianop
- dc.w 1
- dc.l pizpianod
- dc.w 4032/2
- dc.l restd
- dc.w 16/2
-
- cellop
- dc.w 1
- dc.l cellod+104
- dc.w 9810/2
- dc.l restd
- dc.w 16/2
-
- crashp
- dc.w 1
- dc.l crashd+104
- dc.w 14701/2
- dc.l restd
- dc.w 16/2
-
-
- ;-----------
-
- rest_env: dc.w 0,0,0,0,0,0,0,0,255
-
- ;**************************************************
-
- ;;THE FX SAMPLES ARE PULLED IN HERE...THis section can be anywhere
- ;; in lower memory,and in any order
-
- ebgd incbin c:steel_sky/samples/ebg8.sam
- ebbbd incbin c:steel_sky/samples/ebbb8.sam
- cebabd incbin c:steel_sky/samples/cebab8.sam
- debbbd incbin c:steel_sky/samples/debbb8.sam
- cebd incbin c:steel_sky/samples/ceb8.sam
- debd incbin c:steel_sky/samples/deb8.sam
- acebd incbin c:steel_sky/samples/aceb.sam
- abcfd incbin c:steel_sky/samples/abcf.sam
- bbdfbbd incbin c:steel_sky/samples/bbdfbb.sam
- gcdgd incbin c:steel_sky/samples/gcdg.sam
- gbdgd incbin c:steel_sky/samples/gbdg.sam
- ebfabbd incbin c:steel_sky/samples/ebfabb.sam
- ebfabbbd incbin c:steel_sky/samples/ebfabbb.sam
- fabbbd incbin c:steel_sky/samples/fabbb.sam
- egbbcd incbin c:steel_sky/samples/egbbc.sam
- adbebgbd incbin c:steel_sky/samples/adbebgb.sam
- acebgbd incbin c:steel_sky/samples/acebgb.sam
- bbdbd incbin c:steel_sky/samples/bbdb.sam
- tymprolld incbin c:steel_sky/samples/tymproll.sam
-
-
-
- fluted incbin c:instruments/flute.sam
- snared incbin c:instruments/snare.sam
- orchhit8d incbin c:instruments/orchhit8.sam
- strings1d incbin c:instruments/strings1.sam
- oboed incbin c:instruments/oboe.sam
- pizpianod incbin c:instruments/pizpiano.sam
- cellod incbin c:instruments/cello1.sam
- crashd incbin c:instruments/crash.sam
-
-
- ;********************************************
-
-
- restd:
- rest_data:
- dc.w 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- sined:
- sine_datad:
- dc.w 127,80,50,25,0,-25,-50,-100,-127
- dc.w -127,-100,-50,-35,0,35,50,80,127
- dc.w 127,80,50,25,0,-25,-50,-100,-127
- dc.w -127,-100,-50,-35,0,35,50,80,127
-
-
- ;*************************************************
-
- end
-
-
-
-
- dc.w modon,1,1,8,8,6,6
- dc.w pbend,down,1,60000,32
-
-
-
-