new ram, functions, housekeeping

This commit is contained in:
scawful
2024-02-10 15:49:52 -05:00
parent e13f0e44e5
commit 22e2a952b1
3 changed files with 27 additions and 11 deletions

View File

@@ -310,4 +310,18 @@ MovieEffect:
db $50, $0F ;for $A0 line set screen brightness to 15 full
db $3F, $00 ;for $20 line set screen brightness to 0
db $00 ;end the HDMA
}
Link_CheckNewY_ButtonPress_Long:
{
BIT.b $3A : BVS .fail
LDA.b $46 : BNE .fail
LDA.b $F4 : AND.b #$40 : BEQ .fail
TSB.b $3A
SEC
RTL
.fail
CLC
RTL
}