1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

return correct joystick count for XL and newer machines -- patch from

Stefan Haubenthal


git-svn-id: svn://svn.cc65.org/cc65/trunk@3021 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg 2004-05-11 19:31:14 +00:00
parent e7f2009fcd
commit 86960297c3

View File

@ -81,9 +81,14 @@ UNINSTALL:
;
COUNT:
lda #<JOY_COUNT
ldx #>JOY_COUNT
rts
lda #JOY_COUNT
ldx $fcd8
cpx #$a2
beq _400800
lsr a ; XL and newer machines only have 2 ports
_400800:
ldx #0
rts
; ------------------------------------------------------------------------
; READ: Read a particular joystick passed in A.