1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00
cc65/libsrc
Oliver Schmidt 7f52a770d9 Removed joy_masks array.
So far the joy_masks array allowed several joystick drivers for a single target to each have different joy_read return values. However this meant that every call to joy_read implied an additional joy_masks lookup to post-process the return value.

Given that almost all targets only come with a single joystick driver this seems an inappropriate overhead. Therefore now the target header files contain constants matching the return value of the joy_read of the joystick driver(s) on that target.

If there indeed are several joystick drivers for a single target they must agree on a common return value for joy_read. In some cases this was alredy the case as there's a "natural" return value for joy_read. However a few joystick drivers need to be adjusted. This may cause some overhead inside the driver. But that is for sure smaller than the overhead introduced by the joy_masks lookup before.

!!! ToDo !!!

The following three joystick drivers become broken with this commit and need to be adjusted:
- atrmj8.s
- c64-numpad.s
- vic20-stdjoy.s
2017-08-19 19:11:28 +02:00
..
apple2 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atari Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atari2600 Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
atari5200 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atmos Removed joy_masks array. 2017-08-19 19:11:28 +02:00
c16 libsrc/c16/get_tv.s: remove code duplication 2017-01-26 16:43:47 +01:00
c64 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
c128 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM. 2016-08-07 15:50:10 -04:00
cbm510 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm610 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
common Make some arrays const. 2017-06-28 20:43:31 +02:00
conio Make some arrays const. 2017-06-28 20:43:31 +02:00
creativision Removed joy_masks array. 2017-08-19 19:11:28 +02:00
dbg Make some arrays const. 2017-06-28 20:43:31 +02:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
gamate Removed joy_masks array. 2017-08-19 19:11:28 +02:00
geos-apple directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
geos-cbm Removed joy_masks array. 2017-08-19 19:11:28 +02:00
geos-common Make some arrays const. 2017-06-28 20:43:31 +02:00
joystick Removed joy_masks array. 2017-08-19 19:11:28 +02:00
lynx Removed joy_masks array. 2017-08-19 19:11:28 +02:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nes Removed joy_masks array. 2017-08-19 19:11:28 +02:00
osic1p Added two functions that make it easier to write portable programs for Ohio Scientific computers. 2017-06-26 02:34:23 -04:00
pce Removed joy_masks array. 2017-08-19 19:11:28 +02:00
pet Removed joy_masks array. 2017-08-19 19:11:28 +02:00
plus4 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
runtime callptr4 2017-05-01 21:08:03 +03:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502 Renamed RAM to MAIN for all disk based targets. 2016-03-07 01:28:55 +01:00
supervision Don't presume the stack size to be a multiple of pages. 2016-03-10 10:07:09 +01:00
telestrat Added a missing label to some conio cursor movement functions. 2017-06-15 16:44:46 -04:00
tgi Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
vic20 Removed joy_masks array. 2017-08-19 19:11:28 +02:00
zlib Optimize inflatemem. 2017-02-12 11:41:11 +01:00
Makefile make: change uppercase prefix var 2017-07-22 16:38:50 +02:00