Skip to content

Commit

Permalink
Fix hUGE_set_position not working because of flag thing
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDisk committed Aug 4, 2023
1 parent 070573a commit 13a2651
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hUGEDriver.asm
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ play_ch3_note:
;; To avoid this, we kill the wave channel (0 → NR30), then re-enable it.
;; This way, CH3 will be paused when we trigger it by writing to NR34.
;; TODO: what if `highmask3` bit 7 is not set, though?

ldh a, [rAUDTERM]
push af
and %10111011
Expand All @@ -544,7 +544,7 @@ play_ch3_note:

pop af
ldh [rAUDTERM], a

ret

play_ch4_note:
Expand Down Expand Up @@ -852,6 +852,7 @@ fx_set_speed:
IF DEF(GBDK)
_hUGE_set_position::
ld c, a
xor a
ENDC

hUGE_set_position::
Expand Down Expand Up @@ -913,7 +914,7 @@ fx_note_cut:
rra
ld d, a
ld a, [mute_channels]
cpl
cpl
and d
ret z

Expand Down

0 comments on commit 13a2651

Please sign in to comment.