-
Notifications
You must be signed in to change notification settings - Fork 1
/
dpcm.asm
66 lines (58 loc) · 2.24 KB
/
dpcm.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
;--------------------------------------------------------------------------------
; DO NOT CHANGE: Macros to set start address and length value of each sample
;--------------------------------------------------------------------------------
.MACRO DEF_DPCM address
;.BYTE <(address >> 6)
.BYTE <(address / 64)
.ENDMACRO
.MACRO END_DPCM address
;.BYTE <(address >> 6)
.BYTE <(address / 64)
.ENDMACRO
;--------------------------------------------------------------------------------
; Sample Address table
;
; Format: DEF_DPCM <sample label>,LOOPING or NOT_LOOPING
; Need "END_DPCM dmcEnd" at end of table
;--------------------------------------------------------------------------------
.EXPORT dmcAddressTable
dmcAddressTable:
DEF_DPCM dmcTR808_Kick ;0 Bank 0
DEF_DPCM dmcTR808_Snare ;1
DEF_DPCM dmcTR808_Clap ;2
DEF_DPCM dmcTR808_CowBell ;3
DEF_DPCM dmcTR808_RimShot ;4
DEF_DPCM dmcTR909_Kick ;5
DEF_DPCM dmcTR909_Snare1 ;6
DEF_DPCM dmcTR909_Snare2 ;7
DEF_DPCM dmcTR707_Kick ;0 Bank 1
DEF_DPCM dmcTR707_Snare1 ;1
DEF_DPCM dmcTR707_Snare2 ;2
DEF_DPCM dmcTR707_RimShot ;3
DEF_DPCM dmcTR707_HiTom ;4
DEF_DPCM dmcTR707_HandClap ;5
DEF_DPCM dmcTR707_SnrClp ;6 ;1
END_DPCM dmcEnd
;--------------------------------------------------------------------------------
; Sample Data
;
; Format: <sample label> incbin <sample file name>
; Need "dmcEnd:" at end of table
;--------------------------------------------------------------------------------
.ALIGN 64
dmcTR808_Kick: .incbin "DPCM/TR808-Kick1.dmc"
dmcTR808_Snare: .incbin "DPCM/TR808-Snare2.dmc"
dmcTR808_Clap: .incbin "DPCM/TR808-clap.dmc"
dmcTR808_CowBell: .incbin "DPCM/TR808-cowbell.dmc"
dmcTR808_RimShot: .incbin "DPCM/TR808-rimshot.dmc"
dmcTR909_Kick: .incbin "DPCM/TR909-Kick1.dmc"
dmcTR909_Snare1: .incbin "DPCM/TR909-snare1.dmc"
dmcTR909_Snare2: .incbin "DPCM/TR909-snare2.dmc"
dmcTR707_Kick: .incbin "DPCM/TR707-Kick1.dmc"
dmcTR707_Snare1: .incbin "DPCM/TR707-Snare1.dmc"
dmcTR707_Snare2: .incbin "DPCM/TR707-Snare2.dmc"
dmcTR707_RimShot: .incbin "DPCM/TR707-RimShot.dmc"
dmcTR707_HiTom: .incbin "DPCM/TR707-HiTom.dmc"
dmcTR707_HandClap: .incbin "DPCM/TR707-HandClap.dmc"
dmcTR707_SnrClp: .incbin "DPCM/TR707-SnrClp1.dmc"
dmcEnd: