SMW Memory Map
Displaying 1 out of 1 addresses.
View: moderated | waiting (13)
- Pages:
- 1
ROM Address | Length | Type | Description | Details |
---|---|---|---|---|
$02887D | 36 bytes | Subroutine (JSL) | Seems to be a subroutine for spawning stuff from blocks. What is spawned depends on the value of $05: 00 - nothing 01 - mushroom 02 - flower 03 - star 04 - cape 05 - 1-Up 06 - coin 07 - coin (sets multiple-coin-block timer) 08 - growing vine 09 - nothing? 0A - P-switch (blue/gray depending on block X position) 0B - key/wings/balloon/shell (depending on block X position) 0C - green Yoshi egg 0D - green Koopa shell (with stun timer set) 0E - changing item 0F - directional coins 10 - key (but a random blue shell-less Koopa also pops out) 11-FF - completely glitchy; best not to use This subroutine can be used properly in a block, but the data bank must be 02 and the lower nybbles of $98 and $9A must be cleared. All values except 06 and 07 JSR to the main "spawn sprite from block" routine at $0288DC; values 06 and 07 JSR to the coin-spawning routine at $028A66. Note: When used in a custom block under sprite interaction, make sure you preserve $1695 and then restore it after this routine to prevent a random splash sprite from spawning. |
|
- Pages:
- 1