Language…
12 users online:  Atari2.0, Brian94, Danik2343, DixyNL, Golden Yoshi, Jordan, masl, Pink Gold Peach, Rykon-V73, Shiki_Makiro, synthie_cat, Zavok - Guests: 238 - Bots: 329
Users: 64,795 (2,377 active)
Latest user: mathew

3 Yoshi Coin Door - by Jascha

Name: 3 Yoshi Coin Door
Description: This door will play a wrong sound and open the first level message if you have less than 3 yoshi coins. If you have enough it will play a "you got it" sound and teleport to the current screen exit.

Good for puzzles!

Author: Jascha - Submitted by: Jascha



Reasons

It seems to only teleport you when you've got exactly 3 Yoshi Coins - once you have more then that, it only plays the "wrong" sound without displaying a message.

Frankly, the code's pretty inefficient as well. Here's how you *could* do it, although I admittedly haven't tested that code:


JMP Main : JMP Main : JMP Main : JMP End : JMP End : JMP End : JMP End

Main:
LDA $15
AND #$08
BEQ End

LDA $1420
CMP #$03
BCC NotEnough

LDA #$2A
STA $1DF9
LDA #$06
STA $71
STZ $88
STZ $89
RTL

NotEnough:
LDA #$2A
STA $1DFC
LDA #$01
STA $1426

End:
RTL