1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
Commit Graph

7300 Commits

Author SHA1 Message Date
Oliver Schmidt
4aa19494f5 Removed dysfunctional kbrepeatdelay() and kbrepeatrate().
As discussed in https://github.com/cc65/cc65/pull/452 after my premature merge the two functions in question don't work as expected.

Additionally I adjusted several style deviations in the pull request in question.
2017-08-30 16:37:59 +02:00
Greg King
7a1f5358df Fixed missing name and semicolon in two device structs. 2017-08-23 01:46:57 -04:00
Oliver Schmidt
acf831658f Adjusted to recent driver interface change.
Please note that this change is absolutely untested!

Apart from the recent driver interface change:
- vic20-stdjoy.s was "slightly broken" because it didn't clear x on return from joy_read.
- vic20-ptvjoy.s was "heavily broken" because it returned a totally different set of bits of the first joystick.
2017-08-20 17:17:39 +02:00
Oliver Schmidt
20c85c8a1c Minor style adjustment. 2017-08-20 17:17:38 +02:00
Oliver Schmidt
a817da7c6b Adjusted to recent driver interface change.
Please note that this change is absolutely untested!
2017-08-20 17:17:37 +02:00
Oliver Schmidt
b5a4e5667a Merge pull request #452 from mrdudz/kbrepeat
kbrepeatdelay and kbrepeatrate for cbm targets
2017-08-20 14:15:37 +02:00
Oliver Schmidt
0c54a19a0b Adjusted to recent driver interface change.
The change is inspired by the code of the standard joystick driver. It is however absolutely untested.

Note: Sites like http://raster.atariportal.cz/english.htm state that there needs to be a delay when reading joysticks via the MultiJoy adapter. There's no such delay in the driver. But I don't dare to decide to add it.
2017-08-20 11:49:02 +02:00
mrdudz
3c3558892e add note on fastcall 2017-08-19 19:16:31 +02:00
mrdudz
960957075f use fastcall 2017-08-19 19:14:24 +02:00
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
Bob Andrews
5dcebbccb6 Merge branch 'master' into kbrepeat 2017-08-06 20:22:52 +02:00
mrdudz
99e6dd18d6 resolve conflict 2017-08-06 20:20:22 +02:00
mrdudz
dafe3c1e3c added documentation for the kbrepeat... functions 2017-08-06 20:15:35 +02:00
mrdudz
bd9208879e added prototypes and proposed constants 2017-08-06 18:09:40 +02:00
Oliver Schmidt
f5e9b4012a Merge pull request #473 from groessler/something_to_pull
atari5200.inc: fix formatting
2017-08-03 00:46:22 +02:00
Christian Groessler
f9c59a0976 atari5200.inc: fix formatting 2017-08-02 23:59:32 +02:00
Oliver Schmidt
92ff854bff Removed undesirable empty lines. 2017-07-31 13:50:27 +02:00
Oliver Schmidt
16ec131586 Merge pull request #472 from gungwald/master
Added doc for file types and aux types
2017-07-31 13:46:20 +02:00
Bill Chatfield
0bd5a8a331 Made corrections according to review comments 2017-07-30 19:51:23 -04:00
Bill Chatfield
85e572f4e1 Made corrections according to review comments 2017-07-30 19:49:20 -04:00
Bill Chatfield
9d89613bb2 Added documentation for setting the file type for fopen. 2017-07-29 01:25:07 -04:00
Bill Chatfield
2c7b757b4c Documented _filetype and _auxtype 2017-07-28 17:44:13 -04:00
Oliver Schmidt
375ee571c2 Removed 'fire'. 2017-07-28 19:19:11 +02:00
Oliver Schmidt
ef17e65c1b Merge pull request #467 from pmjdebruijn/joy
joy: refactor generic joy_masks array indices and macros
2017-07-28 19:17:50 +02:00
Oliver Schmidt
5bb6e62b84 Merge pull request #471 from gungwald/master
Added ProDOS file types and auxiliary types
2017-07-28 18:22:24 +02:00
Bill Chatfield
80c1c94a87 Corrected comment formatting 2017-07-28 12:16:55 -04:00
Bill Chatfield
f40bb93677 Added Variables section comment per convention 2017-07-28 12:12:18 -04:00
Bill Chatfield
abb2e8034b Moved file type variables to apple2_filetype.h 2017-07-28 12:09:58 -04:00
Bill Chatfield
9459f11688 Corrected copyright and moved file type globals
The file type globals., _filetype and _auxtype, were moved from apple2.h to this file.
2017-07-28 12:01:57 -04:00
Bill Chatfield
91d0659663 Rolled back changes to exclude vim swap files
Only files generated by the tools in the project are to be ignored
2017-07-28 11:29:11 -04:00
Bill Chatfield
e64e11d2c5 Finished adding all types and comments 2017-07-27 14:44:02 -04:00
Bill Chatfield
a623169477 Added ProDOS file type definitions 2017-07-26 11:15:49 -04:00
Pascal de Bruijn
c802c9c946 joy: refactor generic joy_masks array indices and macros 2017-07-23 23:45:52 +02:00
Oliver Schmidt
5d333239c6 Merge pull request #468 from pmjdebruijn/samples
make changes
2017-07-23 02:09:20 +02:00
Oliver Schmidt
f0d760de4a Merge pull request #462 from pmjdebruijn/pragma-message
pragma: add minimalist message pragma implementation
2017-07-22 16:54:23 +02:00
Pascal de Bruijn
19f6ae1d54 make: change uppercase prefix var 2017-07-22 16:38:50 +02:00
Pascal de Bruijn
64581b65b0 samples: install to subdirectory 2017-07-22 16:33:42 +02:00
Pascal de Bruijn
80b27bde5e pragma: add minimalist message pragma documentation
documents 6e93c1ba73
2017-07-22 15:35:24 +02:00
Oliver Schmidt
d90f032114 Merge pull request #464 from pmjdebruijn/joy
expand nes/pce joystick defines
2017-07-21 16:18:26 +02:00
Pascal de Bruijn
8ad72fc9ca pce: add system specific joy_masks array indices and macros 2017-07-19 18:29:35 +02:00
Pascal de Bruijn
d277055b5a nes: add system specific joy_masks array indices and macros 2017-07-19 18:14:44 +02:00
Pascal de Bruijn
2d9922a46e nes: remove semiredundant KEY_ defines
There are already JOY_ defines for most of these, and this should
be expanded upon instead.
2017-07-19 18:02:13 +02:00
Pascal de Bruijn
6e93c1ba73 pragma: add minimalist message pragma implementation
for example:

#pragma message ("in a bottle")

results in:

hello.c(207): Note: in a bottle
2017-07-19 17:58:13 +02:00
Oliver Schmidt
6002e59c28 Merge pull request #453 from mrdudz/waitvsync
waitvblank for cbm targets
2017-07-18 15:38:27 +02:00
mrdudz
b6d3d32e88 wait for line 0 instead of last line 2017-07-18 01:06:20 +02:00
mrdudz
8eee51913a add headers/fix formatting 2017-07-18 01:04:53 +02:00
mrdudz
c24080f289 do banking 2017-07-18 00:41:54 +02:00
mrdudz
cbdad764f0 oops 2017-07-18 00:01:15 +02:00
mrdudz
fe850fece8 implement waitvsync for plus4/c16 2017-07-17 23:55:18 +02:00
mrdudz
33791c6efd added prototype to cbm.h 2017-07-17 23:43:08 +02:00