Joy Buttons select 1/2 player game

Joy Buttons select 1/2 player game
This commit is contained in:
StewBC 2020-01-15 17:14:39 -08:00
parent d34e0fabfc
commit 336d789bf5
1 changed files with 12 additions and 1 deletions

View File

@ -384,6 +384,18 @@ joyDone:
sta lastInput
pla ; and get back the debounced bits
beq done
bit Bit7Mask ; FIRE should eq 1 player
beq :+
lda #KEY_RIGHT
bne check ; JuMP
:
bit Bit8Mask ; BOMB should eq 2 player
beq check
lda #KEY_LEFT
check:
ldx #1
:
lsr
@ -392,7 +404,6 @@ joyDone:
bne :-
:
txa
; rts
done:
and #$7f