Fixes for the pet-ptvjoy driver and a new standard joystick driver by Marco
van den Heuvel. Cleanup and integration by me. git-svn-id: svn://svn.cc65.org/cc65/trunk@4604 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -98,6 +98,7 @@ joy1: lda #$80 ; via port A read/write
|
||||
|
||||
lda VIA_PRA ; via port A read/write
|
||||
and #$1f ; get bit 4-0 (PA4-PA0)
|
||||
eor #$1f
|
||||
rts
|
||||
|
||||
; Read joystick 2
|
||||
@@ -113,7 +114,7 @@ joy2: lda #$00 ; via port A read/write
|
||||
and #%00100000 ; get bit 5 (PA5)
|
||||
lsr
|
||||
ora tmp1
|
||||
eor #$1f
|
||||
|
||||
ldx #0
|
||||
rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user