Skip to content

Commit

Permalink
Fart to fly around!
Browse files Browse the repository at this point in the history
  • Loading branch information
furrykef committed Feb 18, 2016
1 parent 12530f7 commit 51e1d57
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions adpcm-nsf.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ MEMORY {
CODE: start = $8000, size = $1000, type = ro, file = %O, fill = yes, fillval = $ff;
ADPCM0: start = $9000, size = $7000, type = ro, file = %O, fill = yes, fillval = $ff;
ADPCM1: start = $9000, size = $7000, type = ro, file = %O, fill = yes, fillval = $ff;
ADPCM2: start = $9000, size = $7000, type = ro, file = %O, fill = yes, fillval = $ff;
ADPCM3: start = $9000, size = $7000, type = ro, file = %O, fill = yes, fillval = $ff;
}

SEGMENTS {
Expand All @@ -12,4 +14,6 @@ SEGMENTS {
CODE: load = CODE, type = ro;
ADPCM0: load = ADPCM0, type = ro;
ADPCM1: load = ADPCM1, type = ro;
ADPCM2: load = ADPCM2, type = ro;
ADPCM3: load = ADPCM3, type = ro;
}
Binary file modified adpcm.nsf
Binary file not shown.
20 changes: 19 additions & 1 deletion nsf.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.byte 'N', 'E', 'S', 'M', $1A ; ID
.byte $01 ; Version
.byte 5 ; Number of songs
.byte 7 ; Number of songs
.byte 1 ; Start song
.word $8000
.word INIT
Expand Down Expand Up @@ -95,27 +95,35 @@ SampleAddrTbl:
.word Sample3
.word Sample4
.word Sample5
.word Sample6
.word Sample7

SampleBankTbl:
.byte 1
.byte 8
.byte 8
.byte 8
.byte 8
.byte 15
.byte 22

SampleLenTbl:
.word Sample1Len
.word Sample2Len
.word Sample3Len
.word Sample4Len
.word Sample5Len
.word Sample6Len
.word Sample7Len

SampleLoopTbl:
.byte 0
.byte 0
.byte 0
.byte 0
.byte 1
.byte 0
.byte 0


.segment "ADPCM0"
Expand All @@ -139,3 +147,13 @@ Sample4Len = * - Sample4
Sample5:
.incbin "raws/beatles-8948.raw"
Sample5Len = * - Sample5

.segment "ADPCM2"
Sample6:
.incbin "raws/fart1-8948.raw"
Sample6Len = * - Sample6

.segment "ADPCM3"
Sample7:
.incbin "raws/fart2-8948.raw"
Sample7Len = * - Sample7
Binary file added raws/fart1-8948.raw
Binary file not shown.
Binary file added raws/fart2-8948.raw
Binary file not shown.
Binary file added wavs/fart.wav
Binary file not shown.
Binary file added wavs/fart1.wav
Binary file not shown.
Binary file added wavs/fart2.wav
Binary file not shown.

0 comments on commit 51e1d57

Please sign in to comment.