add Link_FallIntoDungeon, takes X to index entrance IDs

This commit is contained in:
scawful
2024-07-18 21:41:26 -04:00
parent 7a98fd1394
commit 7c6fafbdd0

View File

@@ -33,6 +33,8 @@ Link_HandleDreams:
Dream_MushroomGrotto:
{
LDA.l DREAMS : ORA.b #%00000001 : STA.l DREAMS
LDX.b #$00
JSR Link_FallIntoDungeon
RTS
}
@@ -73,4 +75,19 @@ Link_HandleDreams:
}
}
; Takes X as argument for the entrance ID
Link_FallIntoDungeon:
{
LDA.w .entrance, X
STA.w $010E
STZ.w $010F
LDA.b #$11 : STA.b $10
STZ.b $11 : STZ.b $B0
RTS
.entrance
db $7B, $01
}
print "End of all_dreams.asm ", pc