diff options
Diffstat (limited to 'src/jetpac.s')
| -rw-r--r-- | src/jetpac.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/jetpac.s b/src/jetpac.s index f2e28b2..a011a45 100644 --- a/src/jetpac.s +++ b/src/jetpac.s @@ -42,6 +42,7 @@ .include "assets.s" .include "background.s" .include "prng.s" +.include "sound.s" .include "explosions.s" .include "score.s" .include "items.s" @@ -53,6 +54,14 @@ .include "driver.s" .include "interrupts.s" +;; Sanity check for some constant values. 'cl65' fails at this, so I'm only +;; doing the check on 'nasm'. +.ifdef __NASM__ + .if Bullets::BULLET_TIMER_VALUE > Sound::BULLET_SFX_FRAME_COUNT + .error "Sound::BULLET_SFX_FRAME_COUNT must be smaller than Bullets::BULLET_TIMER_VALUE" + .endif +.endif + ;; Pretty standard reset function, nothing crazy. .proc reset ;; Disable interrupts and decimal mode. @@ -73,6 +82,9 @@ stx PPU::m_mask stx APU::m_dmc + ;; Initialize the APU. + jsr Sound::init + ;; First PPU wait. bit PPU::m_status @vblankwait1: |
