Skip to content

Commit 3e541b0

Browse files
committed
improve audio driver alignment
1 parent 33a0884 commit 3e541b0

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/audio.asm

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,7 @@ advanceAudioSlotFrame:
137137
sta soundEffectSlot0FrameCounter,x
138138
@ret: rts
139139

140-
unreferenced_data3:
141-
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
142-
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
143-
.byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
144-
.byte $00,$00,$00,$00,$00,$00,$00,$00
145-
.byte $00,$00,$00,$00,$00,$00,$00,$00
146-
.byte $00,$00,$00,$00,$00,$00,$00,$00
147-
.byte $00,$00,$00,$00,$00,$00,$00,$00
148-
.byte $03,$7F,$0F,$C0
140+
.align $100
149141
; Referenced by initSoundEffectShared
150142
soundEffectSlot0_gameOverCurtainInitData:
151143
.byte $1F,$7F,$0F,$C0

src/main.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
; region code at start of page to keep cycle count consistent
2020
.include "util/check_region.asm"
21+
.include "audio.asm"
2122

2223
initRam:
2324

@@ -31,7 +32,6 @@ mainLoop:
3132
@continue:
3233
jmp mainLoop
3334

34-
.include "audio.asm"
3535
.include "nmi/nmi.asm"
3636
.include "nmi/render.asm"
3737
.include "nmi/pollcontroller.asm"

src/tetris.nes.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SEGMENTS {
1212
BSS: load = RAM, type = bss;
1313
HEADER: load = HDR, type = ro;
1414
CHR: load = CHR, type = ro;
15-
PRG_chunk1: load = PRG, type = ro;
15+
PRG_chunk1: load = PRG, type = ro, align = $100;
1616
PRG_chunk3: load = PRG, type = ro, start = $FF00;
1717
VECTORS: load = PRG, type = ro, start = $FFFA;
1818
}

0 commit comments

Comments
 (0)