soundsohfrick

by nambona

Game: smw

Description: sounds

sounds:
JSR RNG
LDA $148D
BIT #$F0
BEQ +
RTL
+
LDA $148E
AND #$3F
CMP #$2B
BCC +
SEC
SBC #$20
+
INC
STA $00
LDA $148D
BIT #$01
BEQ .1dfc
LDA $00
STA $1DF9
RTL
.1dfc
LDA $00
STA $1DFC
RTL

RNG:
  REP #$20
; If you know you will be coming here from the SNES side, you can make Accumulator 16-bit, and then jump here to save some time
  LDA $2137		;\ PPU registers
  LDA $213C   ;/
  ADC $13
  ADC $148D   ; 36
  ADC $14
  XBA
  STA $148D
  SEP #$20
  RTS
back to listings