add Link_FallIntoDungeon, takes X to index entrance IDs
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user