mirror of
https://github.com/StewBC/penetrator-apple2.git
synced 2024-06-08 08:33:38 +00:00
Joy Buttons select 1/2 player game
Joy Buttons select 1/2 player game
This commit is contained in:
parent
d34e0fabfc
commit
336d789bf5
|
@ -384,6 +384,18 @@ joyDone:
|
||||||
sta lastInput
|
sta lastInput
|
||||||
pla ; and get back the debounced bits
|
pla ; and get back the debounced bits
|
||||||
beq done
|
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
|
ldx #1
|
||||||
:
|
:
|
||||||
lsr
|
lsr
|
||||||
|
@ -392,7 +404,6 @@ joyDone:
|
||||||
bne :-
|
bne :-
|
||||||
:
|
:
|
||||||
txa
|
txa
|
||||||
; rts
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
and #$7f
|
and #$7f
|
||||||
|
|
Loading…
Reference in New Issue
Block a user