1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-11 16:07:04 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
Christian Groessler
b12758fe53 include/atari.h: fix typo in _setcolor() prototype 2021-02-16 14:07:47 +01:00
Christian Groessler
262631039d atari.h, atari5200.h: style fixes 2020-10-28 21:12:32 +01:00
Christian Groessler
3537210674 add waitvsync() for atari and atari5200 2020-10-28 21:12:32 +01:00
Christian Groessler
72fff0cfbc atari.h: fix definition of KEY_UP
noticed by Stefan Wessels
2020-07-15 23:00:12 +02:00
Oliver Schmidt
a01c4231f2
Fixed _textcolor definition.
The _textcolor() macro doesn't just turn on the macro optimization. It defines the return value of textcolor() - and that is supposed to be a COLOR_... value.
2019-05-08 10:22:12 +02:00
Christian Groessler
be6bba66a9 atari5200: conio now uses just four colors altogether
See discussion in PR #870.
2019-04-12 12:49:38 +02:00
Christian Groessler
ec5e38617a atari5200: implement bgcolor() and textcolor()
Includes some other small fixes/cleanups.
2019-04-12 12:49:38 +02:00
Christian Groessler
edd596b2a4 atari: split color.s into bordercolor.s and bgcolor.s 2019-04-12 12:49:38 +02:00
IrgendwerA8
3d9ac21b80 Added missing pointer star for Basic structure. 2019-03-05 00:26:14 +01:00
IrgendwerA8
8ead5f2f5a Access Atari OS variables by structure. 2019-03-03 22:50:57 +01:00
Bill Kendrick
417ef278a3 Move Atari-specific PIA reg vals to atari.h
PIA is also used in the Commodore PET, and for different
purposes (see http://www.6502.org/users/andre/petindex/progmod.html#pia1),
so extracted Atari-specific register #defines and placed them in atari.h.
2019-02-17 23:23:30 +01:00
Bill Kendrick
af8eb57f63 Atari colors into _gtia.h; NMIRES/NMIST as union
Use a C "union" to give both read (NMIST) and write (NMIRES) labels
to their shared register in ANTIC. (h/t @groessler).

Consolodate duplicated color definitions (HUE_..., COLOR_... and TGI_COLOR_...;
and the "_gtia_mkcolor()" macro), found in both "atari.h" and "atari5200.h",
moving it to "_gtia.h", which they both share (and which makes the most sense).
2019-01-17 22:44:25 -08:00
Bill Kendrick
32525e0ddb atari.h: Shadow registers for hardware registers 2019-01-17 00:23:04 -08:00
Bill Kendrick
93a13315de Comment adjustments; removed surperfluous keycodes
Cleaned up comments in Atari 8-bit headers.
Internal keycodes (POKEY's KBCODE) were already #defined in atari.h,
so didn't need a whole new set in _pokey.h.
2019-01-16 23:29:41 -08:00
Bill Kendrick
4b61c54092 Relocate register values outside structs, + more
Relocated register #define'd values outside of the structs,
improved comment format, expanded & corrected some things.

h/t Trevin Beattie (https://user.xmission.com/~trevin/) for the PIA
register descriptions.
2019-01-15 01:24:12 -08:00
Bill Kendrick
d52af69d69 Adjustments per most feedback on cc65 PR 831
(I appreciate the feedback!)
2019-01-14 20:47:05 -08:00
Bill Kendrick
d371d1bd51
Note about hues varying depending on environment
There aren't really standard color names (e.g., Compute!'s Mapping the Atari and First Book of Atari Graphics have different names), and exact colors shown depend on the system & device, anyway. Added a note.
2019-01-13 01:59:41 -08:00
IrgendwerA8
d0053422e9 Code review aftermath 2: Put defines into parentheses 2018-11-12 14:36:40 +01:00
IrgendwerA8
61a9871c21 Adaptations due to code review. 2018-11-12 14:36:40 +01:00
Christian Groessler
6dc7309e50 Atari: add support for BW-DOS. Initially contributed by Daniel Serpell. 2018-09-27 17:37:59 +02:00
Christian Groessler
e9b8f5d814 Atari: Add detection of RealDOS (http://www.realdos.net/realdos.html). 2018-09-06 12:08:50 +02:00
Oliver Schmidt
935f68f686 Harmonized the style of including headers from headers.
We surely don't care about some file I/O on host machines in 2018 ;-)
2018-02-02 12:28:22 +01: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
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
Christian Groessler
da65866e24 Atari: add new function '_is_cmdline_dos()' and some other small changes.
- use this function instead of directly looking at _dos_type in the included
  targetutil and test programs
- fixes/improvements to the Atari runtime library regarding the recently
  changed _dos_type values
- libsrc/atari/targetutil/w2cas.c: exit if no filename was entered
- add documentation for the new function
2016-05-25 00:57:43 +02:00
Christian Groessler
2dd8f9f5ef atari.h: update _dos_type values 2016-05-24 04:37:35 +02:00
Christian Groessler
d481557541 add addresses of static drivers of the runtime 2014-01-21 22:58:50 +01:00
Christian Groessler
1135bc2acd add IOCB command codes to atari.h 2013-09-17 22:35:17 +02:00
Oliver Schmidt
177e967629 Added TGI color defines. 2013-08-22 16:33:30 +02:00
Oliver Schmidt
83280e1ee2 Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
Oliver Schmidt
17776739e2 Fixed discrepancy between definition and declaration. 2013-05-28 22:16:07 +02:00
Oliver Schmidt
98c47d1877 Introduced target 'atarixl'.
The target 'atarixl' is to be used for Atari XL (and better) machines.
It will disable the OS ROM and enable the Shadow RAM available on
those machine.

Note: This commit is only the inital step towards for this goal that just
replicates the target 'atari' as a starting point!
2013-05-28 21:56:37 +02:00
Oliver Schmidt
2e8a65bda4 Renamed Atari drivers.
As a preparation for the introduction of the 'atarixl' target it is
necessary that all drivers have a base name...
- no longer than 7 characters
- with a common prefix
2013-05-28 21:20:37 +02:00
Oliver Schmidt
85885001b1 Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
Oliver Schmidt
44fd1082ae Adjusted C declarations to the changed static driver names. 2013-05-09 10:20:03 +02:00
ol.sc
fa6dae8fa9 Added declarations for target-specific static drivers being part of the C library.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5925 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-07 23:20:58 +00:00
cpg
ae39e1c0af recognize XDOS -- patch from Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@5524 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-11 08:35:54 +00:00
cpg
d8dd221f35 change my email addr from cpg@aladdin.de to chris@groessler.org
git-svn-id: svn://svn.cc65.org/cc65/trunk@4977 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-02-26 22:15:24 +00:00
ol.sc
e14435685f Added CH_ENTER define.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4826 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-10-02 21:34:49 +00:00
cpg
f825143623 remove erroneous comments (hint from Stefan Haubenthal)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3689 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-03 20:05:59 +00:00
cpg
139e577123 add IOCB definitions; update years in copyright message
git-svn-id: svn://svn.cc65.org/cc65/trunk@3555 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-26 23:45:38 +00:00
cpg
6db6a58225 fix CH_VLINE definition (noticed by Fatih Aygün)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3297 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-11-23 21:43:53 +00:00
cpg
6ac5c407cf keep the old names (w/o "_") of get_ostype() and get_tv() for cross
platform compatibility


git-svn-id: svn://svn.cc65.org/cc65/trunk@3149 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-07-09 19:27:12 +00:00
cpg
ebb463fd41 finish last change
git-svn-id: svn://svn.cc65.org/cc65/trunk@3078 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-06-03 19:46:16 +00:00
cpg
92621abb86 rename backwards compatibility define
git-svn-id: svn://svn.cc65.org/cc65/trunk@3077 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-06-03 19:45:50 +00:00
cpg
f6d59f6e17 prepend a "_" to clib runtime functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@3076 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-06-03 19:43:11 +00:00
cpg
91f62f4849 removed unimplemented _atari_xxxcolor function declarations
git-svn-id: svn://svn.cc65.org/cc65/trunk@2552 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-10-20 18:51:04 +00:00
cpg
73ab1ef8a9 fix CH_CROSS definition
git-svn-id: svn://svn.cc65.org/cc65/trunk@2313 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-14 14:15:41 +00:00
cpg
0d0977ff69 added _dos_type with defines and getdefdev()
git-svn-id: svn://svn.cc65.org/cc65/trunk@2299 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-12 20:02:01 +00:00
cpg
6ee425e6bb Renamed CH_DEL to CH_DELCHR and added a CH_DEL which does the same as
CH_RUBOUT. Now CH_DEL behaves the same on Atari and other platforms.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2033 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-03-17 22:48:01 +00:00