1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
Commit Graph

598 Commits

Author SHA1 Message Date
Oliver Schmidt
3a6430b13d Merge pull request #494 from jedeoric/master
[telestrat] Adding some vars, adding getcwd management, changing ZP address and ZP length
2017-09-27 09:52:19 +02:00
jede
d8904c550b Fixing buffer overflow with cwd command (FILENAME_MAX must be at 50 +1 bytes) 2017-09-25 21:39:57 +02:00
Christian Groessler
7623d4ea83 conio.h: include 'creativision.h' when compiling for this target. 2017-09-12 21:57:16 +02:00
Greg King
5802b0963f Made <conio.h> include <atari5200.h> when we compile for the Atari 5200 console.
atari5200.lib has some conio functions.
2017-09-10 12:27:57 -04:00
Oliver Schmidt
0deeccebf8 Added JOY_FIRE.
According to https://en.wikipedia.org/wiki/Atari_8-bit_computer_peripherals it seems appropriate to add a JOY_FIRE definition for the ATARI.
2017-09-04 09:41:19 +02:00
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
b5a4e5667a Merge pull request #452 from mrdudz/kbrepeat
kbrepeatdelay and kbrepeatrate for cbm targets
2017-08-20 14:15:37 +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
bd9208879e added prototypes and proposed constants 2017-08-06 18:09:40 +02: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
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
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
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
Oliver Schmidt
6002e59c28 Merge pull request #453 from mrdudz/waitvsync
waitvblank for cbm targets
2017-07-18 15:38:27 +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
mrdudz
1abce3a2a1 rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
Lauri Kasanen
e85796e028 Edit comment style, add second const 2017-06-09 10:35:16 +03:00
Lauri Kasanen
e75a59d7a8 Add LZ4 decompression support 2017-06-06 18:48:25 +03:00
Oliver Schmidt
02daf9f8b5 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.
There were two aspects of this behavior that were considered undesirable:
- Although the safe inlining is in general desirable it should only be enabled if asked for it - like any other optimization.
- The option name -Os implies that it is a safe option, the potentially unsafe inlining should have a more explicit name.

So now:
- The option -Os enables the safe inlining.
- The new option --eagerly-inline-funcs enables the potentially unsafe inlining (including the safe inlining).

Additionally was added:
- The option --inline-stdfuncs that does like -Os enable the safe inlining but doesn't enable optimizations.
- The pragma inline-stdfuncs that works identical to --inline-stdfuncs.
- The pragma allow-eager-inline that enables the potentially unsafe inlining but doesn't include the safe inlining. That means that by itself it only marks code as safe for potentially unsafe inlining but doesn't actually enable any inlining.
2017-04-03 23:20:26 +02:00
Christian Groessler
8a81f9c0c8 Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
IrgendwerA8
ae7fa8f2ea Improved display list instruction definition for more comfortable use within void data definition. 2017-02-24 00:10:02 +01:00
Christian Groessler
e6530d68dd Fix joystick driver. Add interruptor support.
Note that the joystick driver doesn't support combined movements (like
left/up or right/down). This should be fixed.
2017-02-15 15:45:49 +01:00
Christian Groessler
a5fba551d1 Merge remote-tracking branch 'upstream/master' into something_to_pull2 2017-02-13 21:38:38 +01:00
Oliver Schmidt
5bbf010029 Merge pull request #371 from jedeoric/master
Create an Oric Telestrat target library
2017-02-10 23:47:13 +01:00
jede
d76911d38a Fixing telestrat.h 2017-02-02 22:53:28 +01:00
jede
0e649f24ea Correcting some code from github comments 2017-02-01 23:58:33 +01:00
Christian Groessler
07f840f11c Merge remote-tracking branch 'upstream/master' into creativision 2017-02-01 18:15:05 +01:00
jede
b5fef66f37 Merge telemon24 and telemon30 into telestrat target.
Cleaning, and replace tab to spaces
Converting hex lowercase value into uppercase char.
Changing := and = when it was needed
2017-01-31 22:09:14 +01:00
jede
6ed57af9fd removing ch376.h 2017-01-29 22:14:56 +01:00
jede
d1b5a6632d Adding telemon30 and telemon24 primitives 2017-01-29 21:18:49 +01:00
Florent Flament
c1aac0de0e Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
jede
d5ba063602 Correcting some bugs 2017-01-04 20:03:19 +01:00
jede
15ac85b50c Adding ch376.h header, correcting some bugs 2016-12-14 23:45:20 +01:00
Sven Oliver Moll
c0d2643952 added 4510 cpu detection to getcpu.s 2016-09-07 19:44:11 +02:00
IrgendwerA8
d65f587f69 Internal/screen character mapping: Supressed warnings for re-map and added documentation. 2016-08-27 22:02:08 +02:00
IrgendwerA8
024f66a84f Allow use of different charmaps on Atari target 2016-08-19 17:27:41 +02:00
Greg King
2c03b9a1bc Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM. 2016-08-07 15:50:10 -04:00