1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00
cc65/include
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
..
em Removed joy_masks array. 2017-08-19 19:11:28 +02:00
geos Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
joystick Removed joy_masks array. 2017-08-19 19:11:28 +02:00
mouse Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
sys Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
tgi Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6522.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6525.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6526.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_6545.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_6551.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_antic.h Improved display list instruction definition for more comfortable use within void data definition. 2017-02-24 00:10:02 +01:00
_gtia.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_heap.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_mikey.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pbi.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pia.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_pokey.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_riot.h Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
_sid.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_suzy.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_ted.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_tia.h Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
_vdc.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
_vic2.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
_vic.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
6502.h added 4510 cpu detection to getcpu.s 2016-09-07 19:44:11 +02:00
ace.h Made __fastcall__ be the default calling convention for non-variadic functions. 2015-03-10 05:53:52 -04:00
apple2_filetype.h Corrected comment formatting 2017-07-28 12:16:55 -04:00
apple2.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
apple2enh.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
assert.h Made _afailed() and uncompress() be fastcall functions. 2015-03-13 07:35:47 -04:00
atari2600.h Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
atari5200.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atari_atascii_charmap.h Allow use of different charmaps on Atari target 2016-08-19 17:27:41 +02:00
atari_screen_charmap.h Internal/screen character mapping: Supressed warnings for re-map and added documentation. 2016-08-27 22:02:08 +02:00
atari.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
atmos.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
c16.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
c64.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
c128.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm264.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm510.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cbm610.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm_filetype.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
cc65.h Add issues from pull request #307. 2016-06-07 12:07:38 +02:00
conio.h initial import of the gamate stuff 2015-11-14 13:15:29 +01:00
creativision.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
ctype.h So far the built-in inlining of several known standard function was always (!) enabled and the option -Os enabled additional, potentially unsafe inlining of some of those functions. 2017-04-03 23:20:26 +02:00
dbg.h Made __fastcall__ be the default calling convention for non-variadic functions. 2015-03-10 05:53:52 -04:00
device.h Introduced getcurrentdevice() and implemented it for CBM and Apple. 2012-10-21 14:35:17 +00:00
dio.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dirent.h Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
em.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
errno.h Implement exec() for Atari XDOS. 2016-06-13 20:40:01 +02:00
fcntl.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
gamate.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
geos.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
inttypes.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
iso646.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
joystick.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
limits.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
locale.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lynx.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
lz4.h Edit comment style, add second const 2017-06-09 10:35:16 +03:00
modload.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
mouse.h Keep low level VIC sprite stuff out of user code. 2015-10-09 18:33:35 +02:00
nes.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
o65.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
osic1p.h Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
pce.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
peekpoke.h Fixed a typo 2003-11-04 19:26:24 +00:00
pen.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
pet.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
plus4.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
serial.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
setjmp.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
signal.h Make _sig_ign and _sig_dfl fastcall 2005-05-26 09:20:36 +00:00
stdarg.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stdbool.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stddef.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stdint.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
stdio.h Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
stdlib.h Added explicit settings of calling conventions in pointer-to-function declarations in system and library headers. 2015-06-22 00:15:48 -04:00
string.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
supervision.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
telestrat.h Fixing telestrat.h 2017-02-02 22:53:28 +01:00
tgi.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
time.h more cleanup 2015-11-29 20:04:10 +01:00
unistd.h Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
vic20.h Removed joy_masks array. 2017-08-19 19:11:28 +02:00
zlib.h Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00