diff --git a/dino.asm b/dino.asm index e6ee810..c6b0e52 100644 --- a/dino.asm +++ b/dino.asm @@ -24,6 +24,7 @@ swap_table=$0600 ; table for swap bytes in left characters :) .zpvar JumpPhase .byte .zpvar Hit .byte .zpvar Level .byte + .zpvar PaddleState .byte .zpvar play_flag .byte .zpvar NTSCounter .byte ;--------------------------------------------------- @@ -132,6 +133,8 @@ FirstSTART mva #$ff portb ; and wait one frame :) waitRTC ; or waitRTC ? + jsr Check2button ; reset JoyB2+ state + sta PaddleState jsr ClearScreen jsr GenerateCharsets jsr GenerateClouds @@ -1080,6 +1083,8 @@ DinoLoop4 beq Up lda TRIG0 ; Fire = Up beq Up + jsr Check2button ; 2nd button = down + bcc Down ; check keyboard lda SKSTAT cmp #$f7 ; SHIFT @@ -1327,6 +1332,13 @@ pressed rts .endp ;-------------------------------------------------- +Check2button + lda PADDL0 + and #$c0 + eor #$C0 + cmp PaddleState + rts +;-------------------------------------------------- .proc PrepareMusicPlayer jsr StopMusic VMAIN VBLinterrupt,7 ; jsr SetVBL diff --git a/dino.xex b/dino.xex index ff5b384..bcbd9d9 100644 Binary files a/dino.xex and b/dino.xex differ diff --git a/tdc.xex b/tdc.xex index ca1a412..f9e8d8c 100644 Binary files a/tdc.xex and b/tdc.xex differ