mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
20a9c0c336
As described e.g. in the Apple IIe Technote #6: 'The Apple II Paddle Circuits' it doesn't work to call PREAD several times in immediate succession. However, so far the Apple II joystick driver did just that in order to read the two joystick axis. Therefore the driver now uses a custom routine that reads both paddles _at_the_same_time_. The code doing so requires nearly twice the cycles meaning that the overall time for a joy_read() stays roughly the same. However, twice the cycles in the read loop means half the resolution. But for the cc65 joystick driver use case that doesn't hurt at all as the driver is supposed to only detect neutral vs. left/right and up/down. CPU accelerators are supposed to detect access to $C070 and slow down for some time automatically. However, the IIgs rather comes with a modified ROM routine. Therefore it is necessary to manually slow down the IIgs when replacing the ROM routine. |
||
---|---|---|
.. | ||
apple2 | ||
atari | ||
atari2600 | ||
atari5200 | ||
atmos | ||
c16 | ||
c64 | ||
c128 | ||
cbm | ||
cbm510 | ||
cbm610 | ||
common | ||
conio | ||
creativision | ||
cx16 | ||
dbg | ||
em | ||
gamate | ||
geos-apple | ||
geos-cbm | ||
geos-common | ||
joystick | ||
lynx | ||
mouse | ||
nes | ||
none | ||
osic1p | ||
pce | ||
pet | ||
plus4 | ||
runtime | ||
serial | ||
sim6502 | ||
supervision | ||
telestrat | ||
tgi | ||
vic20 | ||
zlib | ||
Makefile |