namex3

by nambona

Game: smw

Description: frick iduno

main:
LDA $13
AND #$3F
BEQ +
RTL
+
LDA #$80
STA $2100
;JSR RNG
;LDA $148D
;STA $2101
JSR RNG
LDA $148D
STA $2133
LDA $148E
AND #$1F
STA $2101
;JSR RNG
LDA #$0F
STA $2100
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