1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/libsrc/apple2
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
..
emd
extra Adjusted constructors. 2016-03-16 16:28:32 +01:00
joy Removed joy_masks array. 2017-08-19 19:11:28 +02:00
mou
ser
targetutil directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
tgi
_scrsize.s
_sys.s Allow _sys() to call ROM routines. 2016-03-25 21:57:06 +01:00
break.s
cclear.s Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
cgetc.s Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
chline.s Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
close.s
closedir.c
clrscr.s
color.s
cout.s
cputc.s Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
crt0.s Moved run location of ONCE segment. 2016-03-17 21:07:19 +01:00
ctype.s
curdevice.s
cvline.s Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
devicedir.s
dioclose.s
diocommon.s
dioopen.s
dioread.s
diosectcount.s
diosectsize.s
diowrite.s
dir.h
doesclrscr.s Added Apple II version of doesclrscrafterexit(). 2016-06-05 13:01:42 +02:00
dosdetect.s Adjusted constructors. 2016-03-16 16:28:32 +01:00
exec.s Minor adjustment to recent change. 2016-05-30 14:31:53 +02:00
exehdr.s Moved run location of ONCE segment. 2016-03-17 21:07:19 +01:00
filedes.inc
filedes.s
filename.s
get_ostype.s Adjusted constructors. 2016-03-16 16:28:32 +01:00
getdevice.s
gotoxy.s Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
gotoy.s
home.s
initcwd.s Adjusted current working directory initialization on Apple and Atari. 2015-10-15 00:15:38 +02:00
iobuf.s
irq.s Made use of recently added Apple scrcode macro. 2016-03-27 18:27:53 +02:00
isdevice.s
joy_stat_stddrv.s
joy_stddrv.s
kbhit.s
libref.s
lseek.s assert parm count 2014-11-24 10:07:16 -08:00
mainargs.s Adjusted constructors. 2016-03-16 16:28:32 +01:00
mcbdefault.s
mli.inc
mli.s
mouse_stat_stddrv.s
mouse_stddrv.s
open.s Renamed INITBSS to INIT and INIT to ONCE. 2016-03-06 21:27:19 +01:00
opendir.c
oserrlist.s
oserror.s Implement exec() for Atari XDOS. 2016-06-13 20:40:01 +02:00
randomize.s
rdkey.s
read.s Renamed INITBSS to INIT and INIT to ONCE. 2016-03-06 21:27:19 +01:00
readdir.c
reboot.s Renamed INITBSS to INIT and INIT to ONCE. 2016-03-06 21:27:19 +01:00
revers.s
rewinddir.c
rwcommon.s
syschdir.s
sysmkdir.s
sysremove.s
sysrename.s
sysrmdir.s
systime.s
sysuname.s
textframe.s Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
tgi_colors.s
tgi_stat_stddrv.s
tgi_stddrv.s
toascii.s
videomode.s
vtabz.s
wherex.s
wherey.s
write.s