1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00
Commit Graph

441 Commits

Author SHA1 Message Date
uz
975a06c2ee Rewrote tgi_load_driver in assembler and fixed a possible memory leak when
doing so. Changed the behaviour in case a driver is already loaded: Since the
library cannot know if this driver was linked statically or loaded
dynamically, an already installed driver is considered an error. It must be
removed before calling tgi_load_driver.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5790 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-22 11:07:46 +00:00
ol.sc
f9f660dd5d Added functional Atari directory classification macros for file types from struct dirent contributed by Stefan A. Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5759 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-03 20:10:52 +00:00
ol.sc
c68d7de66e This is C, not 6502 ;-))
git-svn-id: svn://svn.cc65.org/cc65/trunk@5758 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-03 20:00:01 +00:00
uz
511b826dfd Use 's' as default file type instead of 'u'.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5756 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-01 18:24:01 +00:00
uz
b7325f7abe According to Greg King, Vorpal files are regular files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5755 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-01 18:10:57 +00:00
uz
ec8234c521 Fixed naming of cbm_clall.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5752 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-01 12:45:26 +00:00
uz
e03feeefae Unified names of CBM kernal level functions and completed the list of
functions in the cbm.h header file.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5750 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-01 12:36:44 +00:00
ol.sc
c6ee5a8418 Added dummy classification macros for the remaining targets - even for those that don't have the field 'd_type'.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5744 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-25 20:23:54 +00:00
ol.sc
1bafd55557 Minor adjustment to Apple II coding style (two spaces for macro definitions).
git-svn-id: svn://svn.cc65.org/cc65/trunk@5739 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-24 19:59:49 +00:00
ol.sc
15546f8880 Added Apple II classification macros for file types from struct dirent.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5738 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-24 19:49:15 +00:00
uz
7aefd9b4e7 Added classification macros for file types from struct dirent.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5736 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-24 14:23:33 +00:00
uz
5bc67cdaee Move definitions for CBM file types into its own header file, since these
definitions are needed for file type macros in dirent.h. Unify names for the
include files.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5735 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-24 13:52:06 +00:00
uz
2f87dbc27e Allow a third, optional filename argument for cbm_opendir.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5683 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-04 18:32:38 +00:00
uz
c40b54ee6c Implemented rewinddir/seekdir.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5676 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-03 15:11:32 +00:00
uz
9d0a2c3007 Add comment about meaning of directory entry type.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5671 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-03 13:58:29 +00:00
uz
ebca2991a3 Moved most of the file type detection from cbm_dir.c into a new function
called _cbm_filetype().
Added an assembler include file with the file type definitions from cbm.h.
Added a first implementation of readdir() for the CBMs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5669 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-02 22:56:14 +00:00
uz
f6209f1344 Added a struct dirent for the CBMs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5664 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-05-29 21:19:50 +00:00
uz
293c279416 Tape load and save functions for the Oric Atmos. By Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5660 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-05-28 11:11:39 +00:00
ol.sc
914c6a0ad8 At least in the context of compacted bitmap handling it seems appropriate to abstract that the Apple DHGR screen has these dimensions.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5656 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-04-29 15:37:06 +00:00
uz
c09d6a7299 Added an improved definition of the __vic2 structure using anon
structs/unions. For compatibility reasons the new definition is active only in
cc65 mode.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5619 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-03-17 21:07:41 +00:00
uz
194a007710 The set_irq function needs size_t.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5602 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-03-11 10:46:04 +00:00
ol.sc
204aba1577 Introduced Apple GEOS specific screen size constants.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5567 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-27 22:00:26 +00:00
ol.sc
358a27bd3c Better have the Apple GEOS stuff below the CBM GEOS stuff.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5543 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-22 22:32:28 +00:00
ol.sc
f86acd3128 C programs don't need offsets into data structures - they have actual structs :-). In this case 'struct filehandle' and 'struct fileheader'.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5542 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-22 22:24:28 +00:00
uz
787dc1a5dc Additional key definitions for the Oric Atmos. By Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5532 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-19 17:50:57 +00:00
ol.sc
d17292ce1a Introduced Apple GEOS specific global variable addresses.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5530 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-18 00:09:39 +00:00
ol.sc
5134fe7f41 Introduced Apple GEOS specific directory entry structures.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5529 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-18 00:08:51 +00:00
ol.sc
077520abeb Removed comment that wasn't correct anymore and didn't fit the cc65 style anyway.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5528 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-17 21:08:13 +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
ol.sc
2a0fd9bda0 Renamed 'UnBlockProcess' to 'UnblockProcess' and 'UnFreezeProcess' to 'UnfreezeProcess' to matchall 3rd party docs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5504 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-09 07:37:08 +00:00
uz
c03a5caf19 Added an implementation of clock() for the Lynx console. By Greg King.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5477 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-06 20:17:54 +00:00
ol.sc
e1894b1272 Fixed irq handler return value.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5421 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-21 22:34:48 +00:00
ol.sc
5df392ff14 Added wrapper for C level irq handling.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5408 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-19 00:24:13 +00:00
uz
0e4f581f71 Remove obsolete defines for the 6502 processor flags.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5405 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-18 15:26:27 +00:00
ol.sc
d1e7773245 Adjustments to recent adding of get/set prefix to tgi function names.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5305 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-11-29 21:36:42 +00:00
uz
eef45199d5 Remove ldiv_t - it should only be in stdlib.h. Reported by Marc Rintsch.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5302 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-11-05 19:49:34 +00:00
uz
edca940a86 Declaration of tgi_settextdir() added.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5101 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-31 22:17:21 +00:00
uz
9c55586569 Renamed tgi_textheight -> tgi_gettextheight, tgi_textwidth -> tgi_gettextwidth
tgi_textstyle -> tgi_settextstyle and tgi_textscale -> tgi_settextscale.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5090 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-17 18:36:12 +00:00
uz
655ffe5dcd Make the 8x32 unsigned multiplication routine C callable.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5079 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-10 14:52:35 +00:00
uz
e531e5abd1 Removed __fastcall__ declarations for functions without parameters.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5073 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-07 20:19:35 +00:00
uz
79fad36b41 Use slightly optimized character translation settings for the CBM machines.
Suggested by Greg King.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5054 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-06-13 12:13:08 +00:00
ol.sc
a4b6b6004a Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5021 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-03 21:28:20 +00:00
ol.sc
4aa00e84e1 Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5016 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-02 10:38:48 +00:00
uz
a507605a89 New TGI routines tgi_getaspectratio/tgi_setaspectratio.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5009 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-01 18:40:38 +00:00
uz
977c64ce01 Fixed comments. No code change.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4996 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-25 18:49:24 +00:00
uz
cc3424a545 Access routines for different eeprom types. By Karri Kaksonen.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4994 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-25 18:42:50 +00:00
ol.sc
012e3e456a Added TGI_COLOR_... macros to be used both for hires and lores. Introduced color mapping on lores to allow for common color macros.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4992 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-25 11:16:56 +00:00
ol.sc
9a1f73e8f5 Added TGI colors (simply based on the conio colors).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4989 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:50:38 +00:00
ol.sc
689bb3ab9c Removed TGI black/white defines as those are to be considered as target specific.
TODO: Remove them from .inc file too - bit only after the tgi kernel has be adjusted.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4988 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:23:27 +00:00
ol.sc
5a2a8a030f Added TGI colors (simply based on the conio colors).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4987 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:20:33 +00:00