This commit is contained in:
jede 2020-05-24 22:52:31 +02:00 committed by greg-king5
parent 7ae6430728
commit cd7abdb58d

View file

@ -53,7 +53,7 @@ INSTALL:
sta VIA2::DDRB
sta VIA2::PRB
; We could detect joysticks because with previous command bit0,1,2,3,4 should be set to 1 after
; But if some one press fire or press direction, we could reach others values which could break Joystick détection.
; But if some one press fire or press direction, we could reach others values which could break joystick detection.
lda #<JOY_ERR_OK
ldx #>JOY_ERR_OK
; rts ; Run into UNINSTALL instead
@ -84,9 +84,9 @@ COUNT:
; When PB7 and PB6 are high, it controls two CA3083 (2 NPN transistors array) bases.
; In that case, PB0 to PB4 are set to high (it means no action are pressed)
; When the user press something then bit will be set to 0.
; bit 0 is right
; bit 1 is left
; bit 2 is fire
; Bit 0 is right
; Bit 1 is left
; Bit 2 is fire
; ...
READ:
@ -97,6 +97,7 @@ READ:
; then read
lda VIA2::PRB
eor #%10011111
rts
right:
lda #%01000000