Skip to content

Commit

Permalink
minimum vcancel
Browse files Browse the repository at this point in the history
  • Loading branch information
nstbayless committed Jul 28, 2024
1 parent 670ba41 commit 5ffb4a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions _common.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VSP_CONTROL_ZERO_VSPEED=$1C
MINIMUM_VSP_CANCEL=$0E
4 changes: 4 additions & 0 deletions _custom_jump.asm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ check_vcancel:
BNE __vcancel_rts
LDA vspint ; already moving downward?
BPL __vcancel_rts
lda vsp_control
cmp #MINIMUM_VSP_CANCEL
bcc __vcancel_rts
LDA #VSP_CONTROL_ZERO_VSPEED
STA vsp_control
Expand Down
3 changes: 1 addition & 2 deletions patch-jp.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ include "pre.asm"

include "ram-jp.asm"
include "offsets-jp.asm"

VSP_CONTROL_ZERO_VSPEED=$1C
include "_common.asm"

MACRO BANKSWAP bank
lda #bank
Expand Down
3 changes: 1 addition & 2 deletions patch-us.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ include "pre.asm"

include "ram-us.asm"
include "offsets-us.asm"

VSP_CONTROL_ZERO_VSPEED=$1C
include "_common.asm"

MACRO BANKSWAP bank
; unclear why we | $80, but everyone else is doing it...
Expand Down

0 comments on commit 5ffb4a5

Please sign in to comment.