Language…
19 users online: AmazingChest,  AmperSam, anonimzwx,  Anorakun, Blizzard Buffalo,  Eden_, h.carrell, Hiro-sofT, Maw, Mr. MS, mtheordinarygamer, NewPointless, NTI Productions, playagmes169, Snowfool948,  Tahixham,  Thomas, Tulip Time Scholarship Games, underway - Guests: 297 - Bots: 426
Users: 64,795 (2,373 active)
Latest user: mathew

SMW Memory Map

Displaying 2 out of 2 addresses.

View: moderated | waiting (13)

Filter

Link
  • Pages:
  • 1
ROM Address Length Type Description Details
$02A9DE 45 bytes Subroutine (JSL) Routine to find an empty sprite slot, starting from the highest usable slot, minus 2. Returns it in Y. Exclusively used for generators, since they don't always need to spawn a sprite. In reality this just sets $0E to 2 and then jumps to $02A9E6.

$02A9E4 39 bytes Subroutine (JSL) Routine to search for free spite slot within the standard sprite slot region (as defined by the sprite memory setting).
Jumping to $02A9E6 will alternatively start searching from the highest available slot minus whatever value is in $0E (e.g. if the standard range is 1-9 and $0E = 0x03, then it will search only slots 1-6). For a value of 0x02, jump to $02A9DE instead.
  • Pages:
  • 1