]> git.sur5r.net Git - cc65/log
cc65
14 years agoWhitespace only change.
ol.sc [Thu, 17 Jun 2010 19:13:43 +0000 (19:13 +0000)]
Whitespace only change.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4726 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agodio_open():
ol.sc [Wed, 16 Jun 2010 21:36:50 +0000 (21:36 +0000)]
dio_open():
- Use ProDOS 8 unit number as parameter.
- Don't access the drive, just check its presence.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4725 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical...
ol.sc [Wed, 16 Jun 2010 21:21:01 +0000 (21:21 +0000)]
Use MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical Note #21).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4724 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years ago- Use ProDOS 8 unit number as parameter.
ol.sc [Wed, 16 Jun 2010 21:19:47 +0000 (21:19 +0000)]
- Use ProDOS 8 unit number as parameter.
- Don't access the drive, just check its presence.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4723 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical...
ol.sc [Wed, 16 Jun 2010 21:16:14 +0000 (21:16 +0000)]
Use MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical Note #21).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4722 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoClear __oserror on success.
ol.sc [Tue, 15 Jun 2010 21:44:18 +0000 (21:44 +0000)]
Clear __oserror on success.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4721 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMake use of the new common __directerrno and __mappederrno function.
ol.sc [Tue, 15 Jun 2010 20:38:05 +0000 (20:38 +0000)]
Make use of the new common __directerrno and __mappederrno function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4720 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoNo need to import __oserror.
uz [Thu, 10 Jun 2010 19:14:42 +0000 (19:14 +0000)]
No need to import __oserror.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4719 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRenamed oserrcheck to __mappederrno. Added an additional function named
uz [Thu, 10 Jun 2010 18:10:53 +0000 (18:10 +0000)]
Renamed oserrcheck to __mappederrno. Added an additional function named
__directerrno and moved both to errno.s. Changed several sources to use these
functions. Needs testing.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4718 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMinor comment style adjustment.
ol.sc [Mon, 7 Jun 2010 19:20:10 +0000 (19:20 +0000)]
Minor comment style adjustment.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4717 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemoved a comment that was no longer correct.
uz [Sun, 6 Jun 2010 14:31:24 +0000 (14:31 +0000)]
Removed a comment that was no longer correct.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4716 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoDIO functions always set _oserror.
ol.sc [Fri, 4 Jun 2010 21:41:22 +0000 (21:41 +0000)]
DIO functions always set _oserror.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4715 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoHarmonized comment style.
ol.sc [Fri, 4 Jun 2010 21:32:55 +0000 (21:32 +0000)]
Harmonized comment style.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4714 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdjustment to recent change in ca65 relative include path handling.
ol.sc [Fri, 4 Jun 2010 20:58:40 +0000 (20:58 +0000)]
Adjustment to recent change in ca65 relative include path handling.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4713 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMinor optimization.
ol.sc [Fri, 4 Jun 2010 20:52:52 +0000 (20:52 +0000)]
Minor optimization.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4712 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFix errno/oserror handling.
uz [Fri, 4 Jun 2010 10:50:58 +0000 (10:50 +0000)]
Fix errno/oserror handling.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4711 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemove __maperrno symbol, since the function is no longer used and has been
uz [Fri, 4 Jun 2010 10:30:55 +0000 (10:30 +0000)]
Remove __maperrno symbol, since the function is no longer used and has been
deleted.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4710 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChange calling convention of cbm_save() to __fastcall__.
uz [Fri, 4 Jun 2010 10:25:53 +0000 (10:25 +0000)]
Change calling convention of cbm_save() to __fastcall__.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4709 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoSave two bytes by a small code change.
uz [Fri, 4 Jun 2010 10:15:44 +0000 (10:15 +0000)]
Save two bytes by a small code change.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4708 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoSave a few bytes and cycles.
uz [Fri, 4 Jun 2010 09:38:35 +0000 (09:38 +0000)]
Save a few bytes and cycles.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4707 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemoved maperrno() since it's no longer needed.
uz [Thu, 3 Jun 2010 21:40:32 +0000 (21:40 +0000)]
Removed maperrno() since it's no longer needed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4706 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse _seterrno instead of assigning to _errno.
uz [Thu, 3 Jun 2010 21:37:27 +0000 (21:37 +0000)]
Use _seterrno instead of assigning to _errno.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4705 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoNo need to import __seterror, since this is done in errno.inc.
uz [Thu, 3 Jun 2010 21:33:55 +0000 (21:33 +0000)]
No need to import __seterror, since this is done in errno.inc.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4704 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse _errno, not errno.
uz [Thu, 3 Jun 2010 21:31:06 +0000 (21:31 +0000)]
Use _errno, not errno.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4703 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoCall __seterrno and save a few bytes.
uz [Thu, 3 Jun 2010 21:29:28 +0000 (21:29 +0000)]
Call __seterrno and save a few bytes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4702 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoCall __seterrno instead of assigning to _errno and save a few bytes.
uz [Thu, 3 Jun 2010 21:26:52 +0000 (21:26 +0000)]
Call __seterrno instead of assigning to _errno and save a few bytes.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4701 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemoved the prototype for _seterrno, since it is now provided in errno.h.
uz [Thu, 3 Jun 2010 21:25:17 +0000 (21:25 +0000)]
Removed the prototype for _seterrno, since it is now provided in errno.h.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4700 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoSet errno if the stream is in error state. Small code size improvements. Fixed
uz [Thu, 3 Jun 2010 21:22:51 +0000 (21:22 +0000)]
Set errno if the stream is in error state. Small code size improvements. Fixed
comment regarding _oserror.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4699 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRewrote parts of the code for better error handling. fileno must set errno and
uz [Thu, 3 Jun 2010 21:20:10 +0000 (21:20 +0000)]
Rewrote parts of the code for better error handling. fileno must set errno and
return -1 in case of an invalid argument, which it didn't until now.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4698 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded messages for EBADF (new) and EUNKNOWN (missing).
uz [Thu, 3 Jun 2010 21:16:07 +0000 (21:16 +0000)]
Added messages for EBADF (new) and EUNKNOWN (missing).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4697 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded EBADF since this is required for fileno().
uz [Thu, 3 Jun 2010 21:12:23 +0000 (21:12 +0000)]
Added EBADF since this is required for fileno().

git-svn-id: svn://svn.cc65.org/cc65/trunk@4696 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoReturn EUNKNOWN instead of EINVAL if the error code cannot be mapped.
uz [Thu, 3 Jun 2010 21:10:22 +0000 (21:10 +0000)]
Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4695 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse _seterrno instead of assigning to _errno to make the code shorter.
uz [Thu, 3 Jun 2010 20:46:08 +0000 (20:46 +0000)]
Use _seterrno instead of assigning to _errno to make the code shorter.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4694 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRewrote the code to make it somewhat shorter.
uz [Thu, 3 Jun 2010 20:43:30 +0000 (20:43 +0000)]
Rewrote the code to make it somewhat shorter.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4693 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoCall _seterror instead of assigning to _errno to make the code somewhat
uz [Thu, 3 Jun 2010 20:27:59 +0000 (20:27 +0000)]
Call _seterror instead of assigning to _errno to make the code somewhat
shorter. Fixed a comment regarding oserror/errno.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4692 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed a comment regarding errno/oserror.
uz [Thu, 3 Jun 2010 20:26:33 +0000 (20:26 +0000)]
Fixed a comment regarding errno/oserror.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4691 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoCall _seterrno instead of assigning to _errno to make the code shorter.
uz [Thu, 3 Jun 2010 20:21:23 +0000 (20:21 +0000)]
Call _seterrno instead of assigning to _errno to make the code shorter.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4690 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoDon't include errno.h since it is not needed.
uz [Thu, 3 Jun 2010 20:20:01 +0000 (20:20 +0000)]
Don't include errno.h since it is not needed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4689 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoUse _seterrno to make the code shorter.
uz [Thu, 3 Jun 2010 20:18:43 +0000 (20:18 +0000)]
Use _seterrno to make the code shorter.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4688 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChange the prototype for _seterrno to return a char, since the function will
uz [Thu, 3 Jun 2010 20:18:19 +0000 (20:18 +0000)]
Change the prototype for _seterrno to return a char, since the function will
always return zero in A and this can be used in C code to make the code
shorter.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4687 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a prototype for _seterrno().
uz [Thu, 3 Jun 2010 20:12:55 +0000 (20:12 +0000)]
Added a prototype for _seterrno().

git-svn-id: svn://svn.cc65.org/cc65/trunk@4686 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemoved the mapping function called previously by the errno macro. It will be
uz [Thu, 3 Jun 2010 20:03:52 +0000 (20:03 +0000)]
Removed the mapping function called previously by the errno macro. It will be
replaced by a mapping in the functions itself.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4685 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdjusted Makefile and remarks to the recent cc65 improvements.
ol.sc [Thu, 3 Jun 2010 16:47:15 +0000 (16:47 +0000)]
Adjusted Makefile and remarks to the recent cc65 improvements.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4683 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoNew install script from Stefan Haubenthal that (among other things) sets
uz [Thu, 3 Jun 2010 12:02:26 +0000 (12:02 +0000)]
New install script from Stefan Haubenthal that (among other things) sets
CC65_HOME.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4681 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAlign rootdir() return value rather with POSIX functions than with DIO functions.
ol.sc [Wed, 2 Jun 2010 07:03:54 +0000 (07:03 +0000)]
Align rootdir() return value rather with POSIX functions than with DIO functions.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4680 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoSet _oserror only on error.
ol.sc [Tue, 1 Jun 2010 21:01:59 +0000 (21:01 +0000)]
Set _oserror only on error.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4679 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed several errors in the description of _poserror.
uz [Tue, 1 Jun 2010 20:46:48 +0000 (20:46 +0000)]
Fixed several errors in the description of _poserror.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4677 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded relative include path handling: The path of an input file is now pushed
uz [Sun, 30 May 2010 13:31:09 +0000 (13:31 +0000)]
Added relative include path handling: The path of an input file is now pushed
onto the search path list, so include files will be searched relative to this
path first.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4676 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoCheck for a size of zero in SB_CopyBuf to make the code somewhat faster.
uz [Sat, 29 May 2010 21:23:34 +0000 (21:23 +0000)]
Check for a size of zero in SB_CopyBuf to make the code somewhat faster.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4675 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoDon't ignore empty paths when adding the path of a file to the search path
uz [Sat, 29 May 2010 21:20:48 +0000 (21:20 +0000)]
Don't ignore empty paths when adding the path of a file to the search path
list.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4674 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChanged search path logic: Include files are now search first in the directory
uz [Fri, 28 May 2010 12:00:12 +0000 (12:00 +0000)]
Changed search path logic: Include files are now search first in the directory
containing the file that had the #include statement. The path of the main file
will also added to the front of the search path list, so includes will not be
search in the current directory first, but in the directory that contains the
main file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4673 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoPushSearchPath will add the path only if it's not already there.
uz [Fri, 28 May 2010 11:56:01 +0000 (11:56 +0000)]
PushSearchPath will add the path only if it's not already there.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4672 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoNew functions PushSearchPath and PopSearchPath.
uz [Fri, 28 May 2010 11:22:44 +0000 (11:22 +0000)]
New functions PushSearchPath and PopSearchPath.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4671 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFix the check for constant static local data, which was wrong when the data
uz [Thu, 27 May 2010 19:47:13 +0000 (19:47 +0000)]
Fix the check for constant static local data, which was wrong when the data
was an array. It should go into RODATA, not DATA.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4669 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded function to find out the volume name of a ProDOS 8 disk in a ProDOS 8 device.
ol.sc [Wed, 26 May 2010 21:02:35 +0000 (21:02 +0000)]
Added function to find out the volume name of a ProDOS 8 disk in a ProDOS 8 device.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4668 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded missing docs for predefined macros, sorted them alphabetically.
uz [Tue, 25 May 2010 20:36:40 +0000 (20:36 +0000)]
Added missing docs for predefined macros, sorted them alphabetically.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4666 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a(nother) link to the o65 binary format specification.
uz [Tue, 25 May 2010 15:49:14 +0000 (15:49 +0000)]
Added a(nother) link to the o65 binary format specification.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4664 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded functions to learn about the unit numbers of the ProDOS 8 devices found.
ol.sc [Mon, 24 May 2010 20:10:19 +0000 (20:10 +0000)]
Added functions to learn about the unit numbers of the ProDOS 8 devices found.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4663 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRestructured search path handling.
uz [Sun, 9 May 2010 10:54:15 +0000 (10:54 +0000)]
Restructured search path handling.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4662 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoNew option --bin-include-dir which is passed to the assembler.
uz [Tue, 4 May 2010 20:19:54 +0000 (20:19 +0000)]
New option --bin-include-dir which is passed to the assembler.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4661 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a new option --dep-target to the compiler. This option allows to set the
uz [Sun, 2 May 2010 09:56:40 +0000 (09:56 +0000)]
Added a new option --dep-target to the compiler. This option allows to set the
target in the generated dependency file. The cl65 utility will use this option
to override the depdendency target, if actual object files are to be generated
from C input. So the generated dependency will not have the intermediate .s
file as target, but the final .o file, which allows to use the dependency
files without further processing.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4660 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRestructured the code for better reada- and maintainability.
uz [Sun, 2 May 2010 09:32:42 +0000 (09:32 +0000)]
Restructured the code for better reada- and maintainability.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4659 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agosyschdir by Stefan Haubenthal
cpg [Sat, 1 May 2010 22:33:25 +0000 (22:33 +0000)]
syschdir by Stefan Haubenthal

git-svn-id: svn://svn.cc65.org/cc65/trunk@4658 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a more detailed explanation of the --standard command line switch.
uz [Sat, 1 May 2010 16:22:54 +0000 (16:22 +0000)]
Added a more detailed explanation of the --standard command line switch.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4656 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded --create-dep and --create-full-dep to the cl65 utility.
uz [Sat, 1 May 2010 14:47:09 +0000 (14:47 +0000)]
Added --create-dep and --create-full-dep to the cl65 utility.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4655 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRewrote the search path routines to use collections internally.
uz [Sat, 1 May 2010 14:44:14 +0000 (14:44 +0000)]
Rewrote the search path routines to use collections internally.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4654 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded dependency file generation to the assembler. This includes two new
uz [Sat, 1 May 2010 11:59:55 +0000 (11:59 +0000)]
Added dependency file generation to the assembler. This includes two new
options, --create-dep and --create-full-dep. The latter will include files
that are passed via debug info to the assembler.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4653 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChanged generation of makefile dependencies:
uz [Sat, 1 May 2010 09:42:12 +0000 (09:42 +0000)]
Changed generation of makefile dependencies:
  * There are now two options, --create-dep and --create-full-dep. One
    will add system includes, the other not.
  * Both options require a file name. This is an incompatible change(!)
    but has the advantage that the user is in control of extension and
    path of the generated file.
  * Output will always include a phony target for the input files. This
    may not work with all make programs.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4652 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMore preparations for an extension of the calling conventions.
uz [Thu, 29 Apr 2010 20:30:49 +0000 (20:30 +0000)]
More preparations for an extension of the calling conventions.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4650 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChange the OptStackOps function so that it adjusts the instruction pointer
uz [Sun, 25 Apr 2010 21:51:59 +0000 (21:51 +0000)]
Change the OptStackOps function so that it adjusts the instruction pointer
after changing code. Without this correction, the insn pointer may be wrong
after one of the subfunctions has changed code, which may cause a valid
sequence not to be detected. This change (when proven good) may also go into
2.13.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4649 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a paragraph about the order in which the command line is parsed.
uz [Fri, 23 Apr 2010 18:34:52 +0000 (18:34 +0000)]
Added a paragraph about the order in which the command line is parsed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4647 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoSave some cycles.
ol.sc [Thu, 22 Apr 2010 19:51:34 +0000 (19:51 +0000)]
Save some cycles.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4646 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemember the type of the input file. This may be used later to create more
uz [Thu, 22 Apr 2010 19:40:50 +0000 (19:40 +0000)]
Remember the type of the input file. This may be used later to create more
variants of dependency files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4645 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoImplemented new .PUSHCPU and .POPCPU commands.
uz [Sun, 18 Apr 2010 18:47:16 +0000 (18:47 +0000)]
Implemented new .PUSHCPU and .POPCPU commands.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4644 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded several functions to the intstack module.
uz [Sun, 18 Apr 2010 18:40:59 +0000 (18:40 +0000)]
Added several functions to the intstack module.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4643 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded while loop inversion.
uz [Sat, 17 Apr 2010 15:19:35 +0000 (15:19 +0000)]
Added while loop inversion.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4642 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMinor corrections by Robert Hurst for use with RPMFusion.
uz [Fri, 16 Apr 2010 19:37:59 +0000 (19:37 +0000)]
Minor corrections by Robert Hurst for use with RPMFusion.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4641 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoReverted part of change 4108 that prevented an optimization step to find
uz [Sat, 10 Apr 2010 11:23:39 +0000 (11:23 +0000)]
Reverted part of change 4108 that prevented an optimization step to find
proper replacements. Some other rearrangements for slightly better code.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4640 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded the cdecl keyword
uz [Fri, 9 Apr 2010 19:47:33 +0000 (19:47 +0000)]
Added the cdecl keyword

git-svn-id: svn://svn.cc65.org/cc65/trunk@4639 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoMore strcmp inlining.
uz [Tue, 23 Mar 2010 21:47:12 +0000 (21:47 +0000)]
More strcmp inlining.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4638 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed the size of the RAM segment for the CBM610. The routine that does
uz [Tue, 23 Mar 2010 19:40:48 +0000 (19:40 +0000)]
Fixed the size of the RAM segment for the CBM610. The routine that does
cross-bank calls is located at $FECB and the stack grows downwards from
there.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4637 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoComment fix.
uz [Tue, 23 Mar 2010 19:39:32 +0000 (19:39 +0000)]
Comment fix.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4636 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoInline some occurances of strcmp.
uz [Mon, 22 Mar 2010 22:28:45 +0000 (22:28 +0000)]
Inline some occurances of strcmp.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4635 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFor the CBM 510, the stack is not part of RAM. And, because of the cross-bacnk
uz [Sun, 21 Mar 2010 21:39:44 +0000 (21:39 +0000)]
For the CBM 510, the stack is not part of RAM. And, because of the cross-bacnk
routine, it is smaller than the number used before.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4634 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years ago- No more HEAP segment
ol.sc [Sun, 21 Mar 2010 17:10:17 +0000 (17:10 +0000)]
- No more HEAP segment
- RAM reduced by __STACKSIZE__
- Unified formatting

git-svn-id: svn://svn.cc65.org/cc65/trunk@4633 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed an optimizer problem.
uz [Sun, 21 Mar 2010 14:08:46 +0000 (14:08 +0000)]
Fixed an optimizer problem.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4632 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoReenable compile time evaluation of strlen for string literals.
uz [Sat, 20 Mar 2010 18:51:59 +0000 (18:51 +0000)]
Reenable compile time evaluation of strlen for string literals.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4631 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChanged the size of available RAM so that the last used address is $7FFF.
uz [Sat, 20 Mar 2010 18:08:27 +0000 (18:08 +0000)]
Changed the size of available RAM so that the last used address is $7FFF.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4630 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoDocument the new linker config file string behaviour.
uz [Sat, 20 Mar 2010 17:56:27 +0000 (17:56 +0000)]
Document the new linker config file string behaviour.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4629 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAllow escape sequences prefixed by '%' in strings. '%%' denotes a single
uz [Sat, 20 Mar 2010 17:48:15 +0000 (17:48 +0000)]
Allow escape sequences prefixed by '%' in strings. '%%' denotes a single
percent sign, %O is the name of the output file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4628 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoChanged the type of CfgSVal to a string buffer and removed the upper limit for
uz [Sat, 20 Mar 2010 17:23:51 +0000 (17:23 +0000)]
Changed the type of CfgSVal to a string buffer and removed the upper limit for
the length.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4627 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded a paragraph about the new c64-dqbb.emd driver.
uz [Fri, 19 Mar 2010 20:51:47 +0000 (20:51 +0000)]
Added a paragraph about the new c64-dqbb.emd driver.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4626 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoAdded patches to make systime work correctly with the different video systems
uz [Fri, 19 Mar 2010 20:46:56 +0000 (20:46 +0000)]
Added patches to make systime work correctly with the different video systems
(Stefan Haubenthal).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4624 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoRemoved a forgotten ScrollSave variable (Stefan Haubenthal).
uz [Wed, 17 Mar 2010 17:09:24 +0000 (17:09 +0000)]
Removed a forgotten ScrollSave variable (Stefan Haubenthal).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4623 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed two issues with macros:
uz [Sun, 14 Mar 2010 17:46:02 +0000 (17:46 +0000)]
Fixed two issues with macros:
* A newline between the macro name and the argument list of a function like
  macro was not accepted.
* An unterminated macro argument list was not always detected.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4621 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoShortened the code
uz [Mon, 8 Mar 2010 18:40:55 +0000 (18:40 +0000)]
Shortened the code

git-svn-id: svn://svn.cc65.org/cc65/trunk@4620 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFixed line endings I broke with recent change.
ol.sc [Sun, 7 Mar 2010 21:00:42 +0000 (21:00 +0000)]
Fixed line endings I broke with recent change.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4618 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoFix scrolling (again). The old code switched off scrolling completely, as a
uz [Sun, 7 Mar 2010 13:37:58 +0000 (13:37 +0000)]
Fix scrolling (again). The old code switched off scrolling completely, as a
consequence it didn't work when write(FILENO_STDOUT, ...) was used. So we will
have to disable scrolling on a per character basis in cputc.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4617 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoThe C16 is not really a separate machine, but identical to the Plus/4, so V2.13.2
uz [Sat, 6 Mar 2010 15:17:08 +0000 (15:17 +0000)]
The C16 is not really a separate machine, but identical to the Plus/4, so
the include file must just include the file for the Plus/4.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4610 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 years agoReplaced '=' by ':=' where applicable and moved the atmos specific assembler
uz [Sun, 28 Feb 2010 10:22:26 +0000 (10:22 +0000)]
Replaced '=' by ':=' where applicable and moved the atmos specific assembler
include into the asminc directory.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4609 b7a2c559-68d2-44c3-8de9-860c34a00d81