mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-16 07:29:29 +00:00
mist: let ^T toggle sound
This commit is contained in:
parent
4f819068f6
commit
4e4736a19a
|
@ -38,17 +38,17 @@ psc_smc2 =$19d3
|
||||||
|
|
||||||
; keyboard.s
|
; keyboard.s
|
||||||
handle_keypress =$1a54
|
handle_keypress =$1a54
|
||||||
change_direction =$1afc
|
change_direction =$1b16
|
||||||
change_location =$1b35
|
change_location =$1b4f
|
||||||
|
|
||||||
; text_print.s
|
; text_print.s
|
||||||
move_and_print =$1bcd
|
move_and_print =$1be7
|
||||||
ps_smc1 =$1bfa
|
ps_smc1 =$1c14
|
||||||
|
|
||||||
; page_sprites.inc
|
; page_sprites.inc
|
||||||
blue_page_sprite =$1ce2
|
blue_page_sprite =$1cfc
|
||||||
red_page_sprite =$1cf8
|
red_page_sprite =$1d12
|
||||||
white_page_sprite =$1d0e
|
white_page_sprite =$1d28
|
||||||
blue_page_small_sprite =$1d24
|
blue_page_small_sprite =$1d3e
|
||||||
red_page_small_sprite =$1d2c
|
red_page_small_sprite =$1d46
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,24 @@ handle_keypress:
|
||||||
keypress:
|
keypress:
|
||||||
and #$7f ; clear high bit
|
and #$7f ; clear high bit
|
||||||
|
|
||||||
|
check_sound:
|
||||||
|
cmp #$14 ; control-T
|
||||||
|
bne check_joystick
|
||||||
|
|
||||||
|
lda SOUND_STATUS
|
||||||
|
eor #SOUND_DISABLED
|
||||||
|
sta SOUND_STATUS
|
||||||
|
jmp done_keypress
|
||||||
|
|
||||||
|
check_joystick:
|
||||||
|
cmp #$A ; control-J
|
||||||
|
bne check_load
|
||||||
|
|
||||||
|
lda JOYSTICK_ENABLED
|
||||||
|
eor #1
|
||||||
|
sta JOYSTICK_ENABLED
|
||||||
|
jmp done_keypress
|
||||||
|
|
||||||
check_load:
|
check_load:
|
||||||
cmp #$C ; control-L
|
cmp #$C ; control-L
|
||||||
bne check_save
|
bne check_save
|
||||||
|
|
Loading…
Reference in New Issue
Block a user