1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-04 17:04:58 +00:00
cc65/testcode/lib
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
..
atari Made C's sizeof operator work with initialized void variables. 2017-03-12 14:41:32 -04:00
gamate rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
pce Removed joy_masks array. 2017-08-19 19:11:28 +02:00
.gitignore Fixed the c128 ram (bank 1) emd. 2015-11-29 23:04:23 -08:00
arg-test.c Added test programs for the exec() function. 2013-08-25 00:49:03 -04:00
atoi-test.c
clock.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
conio.c rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
cprintf.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cursor.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
deb.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dir-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
div-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
em-test.c Merge pull request #241 from blackystardust/c128-function-ram-emd 2016-02-27 18:08:55 +01:00
exec-test1.c Harmonized usage of "KB" and "cc65". 2014-03-30 22:10:37 +02:00
exec-test2.c Harmonized usage of "KB" and "cc65". 2014-03-30 22:10:37 +02:00
fileio-test.c
ft.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
getopt-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
getsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
heaptest.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
joy-test.c Removed joy_masks array. 2017-08-19 19:11:28 +02:00
moddiv-test.c Added a test program for division and modulo operation. 2011-01-11 17:19:16 +00:00
mouse-test.c Add testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c. 2017-02-13 22:48:34 +01:00
mul-test.c Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
posixio-test.c
rename-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
scanf-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
seek.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
ser-test.c remove debug code 2013-12-06 20:53:49 +01:00
shift-test.c Added a test program to test the 16 bit shift ops. 2012-07-12 21:11:21 +00:00
signal-test.c Added signal-test.c 2003-03-16 14:27:24 +00:00
snprintf-test.c Added a test program for the special features of snprintf(). 2015-07-17 20:34:05 -04:00
sprintf-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strdup-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strncmp-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strnicmp-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
stroserror-test.c
strqtok-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strtol-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strtoul-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
time-test.c
tinyshell.c Some improvements to Atari exec() after review. 2016-06-14 20:44:57 +02:00
uname-test.c