namex2

by nambona

Game: SMW

Description: i'm still not sorry

main:
LDA $0100
CMP #$14
BEQ +
RTL
+
LDX #$0B
-
STZ $00
JSR RNG
LDA $148D
STA $00
BIT #$07
BNE .nospeed
JSR RNG
LDA $148D
STA $AA,x
LDA $148E
STA $B6,x
.nospeed

DEX
BPL -

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

badsprites:
db $12,$19,$29,$33,$36,$53,$69,$7A,$7C,$82,$85,$88,$89,$8C,$A0,$A7,$A9,$B5,$C5,$C9,$CA,$CB,$CC,$CD,$CE,$CF,$D0,$D1,$D2,$D3,$D4,$D5,$D6,$D7,$D8,$D9,$DA,$DB,$DC,$DD,$DF,$E1,$E4,$E5,$E6,$E7,$E8,$E9,$EA,$EB,$EC,$ED,$EE,$EF,$F0,$F1,$F2,$F3,$F4,$F5,$F6,$F7,$F8,$F9,$FA,$FB,$FC,$FD,$FE,$FF
.end
back to listings