]> git.sur5r.net Git - cc65/log
cc65
13 years agoAdapt to changed object file format.
uz [Thu, 27 Jan 2011 16:47:45 +0000 (16:47 +0000)]
Adapt to changed object file format.

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

13 years agoSave a few bytes when writing file list entries to the object file.
uz [Thu, 27 Jan 2011 16:40:48 +0000 (16:40 +0000)]
Save a few bytes when writing file list entries to the object file.

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

13 years agoActually generate basic line info.
uz [Thu, 27 Jan 2011 16:39:30 +0000 (16:39 +0000)]
Actually generate basic line info.

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

13 years agoMust read line infos earlier when reading in an object files, because later
uz [Thu, 27 Jan 2011 16:20:14 +0000 (16:20 +0000)]
Must read line infos earlier when reading in an object files, because later
data references it.

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

13 years agoMore detailed error message.
uz [Thu, 27 Jan 2011 16:12:10 +0000 (16:12 +0000)]
More detailed error message.

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

13 years agoAllow different output formats using additional linker configs. Contributed by
uz [Wed, 26 Jan 2011 22:14:42 +0000 (22:14 +0000)]
Allow different output formats using additional linker configs. Contributed by
Karri Kaksonen.

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

13 years agoSaved two bytes.
ol.sc [Wed, 26 Jan 2011 22:11:23 +0000 (22:11 +0000)]
Saved two bytes.

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

13 years agoSlightly improved memset function by Christian Krüger.
uz [Wed, 26 Jan 2011 22:07:59 +0000 (22:07 +0000)]
Slightly improved memset function by Christian Krüger.

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

13 years agoMinor beautification.
ol.sc [Wed, 26 Jan 2011 21:37:42 +0000 (21:37 +0000)]
Minor beautification.

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

13 years agoUse LineInfo instead of raw FilePos objects. Most information in the object
uz [Wed, 26 Jan 2011 19:42:17 +0000 (19:42 +0000)]
Use LineInfo instead of raw FilePos objects. Most information in the object
files does now have lists of LineInfos attached. Compiles but UNTESTED!

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

13 years agoMake exec() only visible if standard=cc655.
uz [Tue, 25 Jan 2011 20:20:12 +0000 (20:20 +0000)]
Make exec() only visible if standard=cc655.

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

13 years agoFor exec() the command line pointer may be NULL.
uz [Tue, 25 Jan 2011 20:19:09 +0000 (20:19 +0000)]
For exec() the command line pointer may be NULL.

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

13 years agoConvert imports, exports and debug symbols to use and write line infos instead
uz [Tue, 25 Jan 2011 16:27:17 +0000 (16:27 +0000)]
Convert imports, exports and debug symbols to use and write line infos instead
of embedded file positions.

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

13 years agoNo need to search for the correct line info entry, the source position is
uz [Tue, 25 Jan 2011 16:26:50 +0000 (16:26 +0000)]
No need to search for the correct line info entry, the source position is
always in slot zero.

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

13 years agoAdded the exec() function prototype and documentation.
uz [Tue, 25 Jan 2011 15:50:14 +0000 (15:50 +0000)]
Added the exec() function prototype and documentation.

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

13 years agoFragments and assertions reference LineInfo items instead of having separate
uz [Mon, 24 Jan 2011 22:39:07 +0000 (22:39 +0000)]
Fragments and assertions reference LineInfo items instead of having separate
embedded FilePos items.

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

13 years agoStarted to generalize line info handling. Remove separate FilePos fields and
uz [Mon, 24 Jan 2011 22:38:22 +0000 (22:38 +0000)]
Started to generalize line info handling. Remove separate FilePos fields and
try to manage all and everything with LineInfos.

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

13 years agoBumped the object file version number.
uz [Mon, 24 Jan 2011 22:37:12 +0000 (22:37 +0000)]
Bumped the object file version number.

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

13 years agoAdded a compar function for file positions.
uz [Mon, 24 Jan 2011 16:15:35 +0000 (16:15 +0000)]
Added a compar function for file positions.

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

13 years agoMark tokens with the file position from where they're read. Restore this
uz [Thu, 20 Jan 2011 20:54:30 +0000 (20:54 +0000)]
Mark tokens with the file position from where they're read. Restore this
position for tokens read from a token list. This means that line info does
now show the actual point of definition. This is an improvement but needs to
be refined.

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

13 years agoMove all attributes and other information that is attached to a token into a
uz [Sun, 16 Jan 2011 16:05:43 +0000 (16:05 +0000)]
Move all attributes and other information that is attached to a token into a
structure named Token.

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

13 years agoRenamed the Token enumeration to token_t.
uz [Sun, 16 Jan 2011 14:51:13 +0000 (14:51 +0000)]
Renamed the Token enumeration to token_t.

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

13 years agoAdd missing braces in macro definition. No error but could cause one.
uz [Sun, 16 Jan 2011 14:19:58 +0000 (14:19 +0000)]
Add missing braces in macro definition. No error but could cause one.

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

13 years agoRemoved two defines that are no longer in use.
uz [Sun, 16 Jan 2011 14:18:03 +0000 (14:18 +0000)]
Removed two defines that are no longer in use.

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

13 years agoAdded a test program for division and modulo operation.
uz [Tue, 11 Jan 2011 17:19:16 +0000 (17:19 +0000)]
Added a test program for division and modulo operation.

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

13 years agoFixed an error in the division routine: The high byte of the wrong 16 bit
uz [Tue, 11 Jan 2011 17:08:29 +0000 (17:08 +0000)]
Fixed an error in the division routine: The high byte of the wrong 16 bit
value was checked before entering the faster 16b8 division routine.

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

13 years agoAdded new .FATAL pseudo op.
uz [Sun, 9 Jan 2011 11:00:22 +0000 (11:00 +0000)]
Added new .FATAL pseudo op.

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

13 years agoAllow to set the ProDOS type and auxtype on creating new files in a similiar way...
ol.sc [Wed, 5 Jan 2011 16:09:08 +0000 (16:09 +0000)]
Allow to set the ProDOS type and auxtype on creating new files in a similiar way done on the CBMs.

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

13 years agoWhen replaying a token list, be sure to zero terminate the string attribute of
uz [Wed, 5 Jan 2011 10:47:32 +0000 (10:47 +0000)]
When replaying a token list, be sure to zero terminate the string attribute of
a token.

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

13 years agoMore changes by Karri Kaksonen.
uz [Tue, 4 Jan 2011 19:39:07 +0000 (19:39 +0000)]
More changes by Karri Kaksonen.

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

13 years agoWhen collecting tokens to be repeated inside of a .REPEAT section, do this in
uz [Tue, 4 Jan 2011 19:17:20 +0000 (19:17 +0000)]
When collecting tokens to be repeated inside of a .REPEAT section, do this in
raw token mode, otherwise stuff is already partially evaluated.

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

13 years agoPatch by Gary Wong: The smbx and rmbx instructions are two byte insns (not one
uz [Thu, 30 Dec 2010 19:35:10 +0000 (19:35 +0000)]
Patch by Gary Wong: The smbx and rmbx instructions are two byte insns (not one
byte).

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

13 years agoFix consecutive false errors when a label without a following statement is
uz [Thu, 30 Dec 2010 19:30:54 +0000 (19:30 +0000)]
Fix consecutive false errors when a label without a following statement is
encountered.

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

13 years agoBug fixes by Karri Kaksonen.
uz [Thu, 30 Dec 2010 19:05:33 +0000 (19:05 +0000)]
Bug fixes by Karri Kaksonen.

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

13 years agoLynx update including file routines that access a file system on a cartridge
uz [Wed, 29 Dec 2010 10:37:57 +0000 (10:37 +0000)]
Lynx update including file routines that access a file system on a cartridge
by Karri Kaksonen.

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

13 years agoIn the generated assembly file, add import statements for all zero page
uz [Wed, 29 Dec 2010 10:18:29 +0000 (10:18 +0000)]
In the generated assembly file, add import statements for all zero page
variables known by the runtime. They aren't currently accessed by the compiler
itself but may be useful for inline assembly.

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

13 years agoLatest versions of startup code and config by Karri Kaksonen. Citing: The new
uz [Wed, 22 Dec 2010 15:37:20 +0000 (15:37 +0000)]
Latest versions of startup code and config by Karri Kaksonen. Citing: The new
header contains an encrypted loader, a small directory structure and a single
pixel black title screen. This is directly bootable on a real Lynx.

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

13 years agoset required memory for graphics mode 28 to 162 instead of 160. Report
cpg [Tue, 21 Dec 2010 21:17:52 +0000 (21:17 +0000)]
set required memory for graphics mode 28 to 162 instead of 160. Report
by Abel Carrasco.

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

13 years agoNew versions that match the current TGI API by Karri Kaksonen.
uz [Mon, 20 Dec 2010 07:20:49 +0000 (07:20 +0000)]
New versions that match the current TGI API by Karri Kaksonen.

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

13 years agoAdded an implementation of toascii() for the Lynx, contributed by Karri
uz [Sun, 19 Dec 2010 11:49:58 +0000 (11:49 +0000)]
Added an implementation of toascii() for the Lynx, contributed by Karri
Kaksonen.

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

13 years agoFixed order of -o and -t on the linker command line.
uz [Sat, 4 Dec 2010 18:13:47 +0000 (18:13 +0000)]
Fixed order of -o and -t on the linker command line.

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

13 years agoReorder -o and -t on the linker command line.
uz [Sat, 4 Dec 2010 18:09:50 +0000 (18:09 +0000)]
Reorder -o and -t on the linker command line.

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

13 years agoDocument that -t changes not only the character translation table, but also
uz [Mon, 29 Nov 2010 20:13:32 +0000 (20:13 +0000)]
Document that -t changes not only the character translation table, but also
the default CPU.

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

13 years agoAllow to disable the "Result of comparison is constant" warning.
uz [Sun, 28 Nov 2010 21:16:46 +0000 (21:16 +0000)]
Allow to disable the "Result of comparison is constant" warning.

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

13 years agoAdded kernal replacement routines for RDTIM and SETTIM.
uz [Thu, 25 Nov 2010 20:39:46 +0000 (20:39 +0000)]
Added kernal replacement routines for RDTIM and SETTIM.

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

13 years agoRenamed grc -> grc65.
uz [Thu, 25 Nov 2010 17:29:59 +0000 (17:29 +0000)]
Renamed grc -> grc65.

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

13 years agoignore property modified to reflect the current name of grc65
silverdr [Wed, 24 Nov 2010 00:33:41 +0000 (00:33 +0000)]
ignore property modified to reflect the current name of grc65

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

14 years agosvn access test only
silverdr [Sat, 20 Nov 2010 17:11:15 +0000 (17:11 +0000)]
svn access test only

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

14 years agoRenamed grc -> grc65.
uz [Thu, 18 Nov 2010 22:09:36 +0000 (22:09 +0000)]
Renamed grc -> grc65.

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

14 years agoIn docs for -t: Fixed duplicate target entry for "atmos", added "module" which
uz [Thu, 18 Nov 2010 22:04:03 +0000 (22:04 +0000)]
In docs for -t: Fixed duplicate target entry for "atmos", added "module" which
was missing. Reported by silverdr@wfmh.org.pl.

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

14 years agoRenamed grc to grc65 to avoid name conflicts with another software named grc.
uz [Thu, 18 Nov 2010 18:47:01 +0000 (18:47 +0000)]
Renamed grc to grc65 to avoid name conflicts with another software named grc.

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

14 years agoChanged the startup module and the linker config for the Commodore VIC to use
uz [Wed, 17 Nov 2010 13:35:43 +0000 (13:35 +0000)]
Changed the startup module and the linker config for the Commodore VIC to use
the common loadaddr and exehdr modules.

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

14 years agoChanged the startup module and the linker config for the Commodore PET to use
uz [Wed, 17 Nov 2010 13:27:43 +0000 (13:27 +0000)]
Changed the startup module and the linker config for the Commodore PET to use
the common loadaddr and exehdr modules.

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

14 years agoChanged the startup module and the linker config for the C128 to use the
uz [Wed, 17 Nov 2010 13:00:34 +0000 (13:00 +0000)]
Changed the startup module and the linker config for the C128 to use the
common loadaddr and exehdr modules.

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

14 years agoChanged the startup module and the linker config for the C16 to use the common
uz [Wed, 17 Nov 2010 12:46:55 +0000 (12:46 +0000)]
Changed the startup module and the linker config for the C16 to use the common
loadaddr and exehdr modules.

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

14 years agoFixed a problem with the last change in crt0.s: The symbols for the RAM memory
uz [Tue, 16 Nov 2010 17:33:25 +0000 (17:33 +0000)]
Fixed a problem with the last change in crt0.s: The symbols for the RAM memory
area had been used but not defined in the linker config. Changed the startup
module and the linker config to use the common loadaddr and exehdr modules.

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

14 years agoFixed wrong size of HEADER area. The invalid size had no bad effects, but it
uz [Tue, 16 Nov 2010 17:30:42 +0000 (17:30 +0000)]
Fixed wrong size of HEADER area. The invalid size had no bad effects, but it
was wrong anyway.

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

14 years agoRemoved some left over debug output
uz [Tue, 16 Nov 2010 10:14:56 +0000 (10:14 +0000)]
Removed some left over debug output

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

14 years agoRemoved the code that checks for valid/invalid chars in a filename. Actually
uz [Mon, 15 Nov 2010 21:50:58 +0000 (21:50 +0000)]
Removed the code that checks for valid/invalid chars in a filename. Actually
most characters are valid, and even the remaining ones do something more or
less useful.

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

14 years agoDocs for new c64-asm.cfg.
uz [Sun, 14 Nov 2010 17:00:40 +0000 (17:00 +0000)]
Docs for new c64-asm.cfg.

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

14 years agoLimit RAM area to $CFFF instead of $FFFF.
uz [Sun, 14 Nov 2010 17:00:21 +0000 (17:00 +0000)]
Limit RAM area to $CFFF instead of $FFFF.

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

14 years agoAdded the first implementation of a linker config suited for c64 assembly
uz [Sun, 14 Nov 2010 13:11:09 +0000 (13:11 +0000)]
Added the first implementation of a linker config suited for c64 assembly
programs.

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

14 years agoModified the builtin c64 config to force inclusion of the new exehdr module.
uz [Sun, 14 Nov 2010 11:51:43 +0000 (11:51 +0000)]
Modified the builtin c64 config to force inclusion of the new exehdr module.

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

14 years agoAs a test, remove the SYS header from the startup code and use the one
uz [Sun, 14 Nov 2010 11:51:05 +0000 (11:51 +0000)]
As a test, remove the SYS header from the startup code and use the one
supplied by the new exehdr module.

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

14 years agoAdded a module that contains a small basic stub (SYS header) that starts
uz [Sun, 14 Nov 2010 11:50:38 +0000 (11:50 +0000)]
Added a module that contains a small basic stub (SYS header) that starts
machine language code following it. Using this header, machine language
programs linked to this stub can be started using RUN.

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

14 years agoFixed typos.
ol.sc [Sun, 14 Nov 2010 00:03:22 +0000 (00:03 +0000)]
Fixed typos.

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

14 years agoFix order of command line arguments: -o should precede -C or -t.
uz [Sat, 13 Nov 2010 22:52:13 +0000 (22:52 +0000)]
Fix order of command line arguments: -o should precede -C or -t.

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

14 years agoFixed typo in warning message.
uz [Sat, 13 Nov 2010 22:48:39 +0000 (22:48 +0000)]
Fixed typo in warning message.

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

14 years agoForce inclusion of the load address.
uz [Sat, 13 Nov 2010 16:57:42 +0000 (16:57 +0000)]
Force inclusion of the load address.

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

14 years agoRemove the load address since it's supplied in its own module now.
uz [Sat, 13 Nov 2010 16:57:23 +0000 (16:57 +0000)]
Remove the load address since it's supplied in its own module now.

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

14 years agoNew module that contains the load address expected by the Commodore machines
uz [Sat, 13 Nov 2010 16:56:42 +0000 (16:56 +0000)]
New module that contains the load address expected by the Commodore machines
in the first two bytes of a file loaded with LOAD.

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

14 years agoFor modules, the ZP memory area must be written to the output file. This is
uz [Sat, 13 Nov 2010 10:20:28 +0000 (10:20 +0000)]
For modules, the ZP memory area must be written to the output file. This is
required by the logic in the linker.

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

14 years agoAdd an additional file = "" to memory areas that contain only bss or zp type
uz [Fri, 12 Nov 2010 19:59:02 +0000 (19:59 +0000)]
Add an additional file = "" to memory areas that contain only bss or zp type
segments and aren't written to the output file. Before that, the "not going to
output file" was implicit because of the bss type of the segments contained.
The new attribute makes this explicit.

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

14 years agoDefine the __XX_START__ symbol for a memory area earlier, so it may be used in
uz [Fri, 12 Nov 2010 18:01:31 +0000 (18:01 +0000)]
Define the __XX_START__ symbol for a memory area earlier, so it may be used in
the expression for the size of the same area.

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

14 years agoReworked and improved the SYMBOLS section. The old syntax (using symbol =
uz [Fri, 12 Nov 2010 14:17:35 +0000 (14:17 +0000)]
Reworked and improved the SYMBOLS section. The old syntax (using symbol =
value) is now gone, attributes are used instead. The SYMBOLS section does now
support imports, so the linker config can be used to force symbols (and
therefore module) imports. Evaluation of start address and size for memory
areas has been delayed even further, so it is now possible to use the values
from one memory area in the definition of the next one.

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

14 years agoMake the Name and Col fields unsigned instead of short.
uz [Fri, 12 Nov 2010 14:14:27 +0000 (14:14 +0000)]
Make the Name and Col fields unsigned instead of short.

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

14 years agomake.sgml has been renamed to using-make.sgml.
uz [Thu, 11 Nov 2010 07:06:41 +0000 (07:06 +0000)]
make.sgml has been renamed to using-make.sgml.

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

14 years agoAvoid name conflict with 'make.info'.
ol.sc [Wed, 10 Nov 2010 21:38:07 +0000 (21:38 +0000)]
Avoid name conflict with 'make.info'.

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

14 years agoKeep the config file position in a FilePos structure.
uz [Wed, 10 Nov 2010 19:52:40 +0000 (19:52 +0000)]
Keep the config file position in a FilePos structure.

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

14 years agoAdded a static initializer for struct FilePos.
uz [Wed, 10 Nov 2010 19:16:29 +0000 (19:16 +0000)]
Added a static initializer for struct FilePos.

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

14 years agoSegNum has been renamed to SecNum.
uz [Wed, 10 Nov 2010 10:22:55 +0000 (10:22 +0000)]
SegNum has been renamed to SecNum.

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

14 years agoOne more place where OutputNameUsed must be flagged.
uz [Tue, 9 Nov 2010 22:07:45 +0000 (22:07 +0000)]
One more place where OutputNameUsed must be flagged.

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

14 years agoFixed order of options in call to ld65, which became important after the
uz [Tue, 9 Nov 2010 21:33:14 +0000 (21:33 +0000)]
Fixed order of options in call to ld65, which became important after the
latest changes.

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

14 years agoMerge CfgProcess and CfgAssignSegments because both do some sort of
uz [Tue, 9 Nov 2010 21:01:27 +0000 (21:01 +0000)]
Merge CfgProcess and CfgAssignSegments because both do some sort of
postprocessing. Print a warning if %O was used in the config file and the
output file name is changed later using -o.

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

14 years agoBetter handling of imports in the ExprNode structure.
uz [Tue, 9 Nov 2010 20:34:08 +0000 (20:34 +0000)]
Better handling of imports in the ExprNode structure.

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

14 years agoSeparate processing the linker config file into two phases: The config file is
uz [Mon, 8 Nov 2010 21:52:24 +0000 (21:52 +0000)]
Separate processing the linker config file into two phases: The config file is
read when the -t or -C switch is encountered and parts of it are processed.
The remaining parts are processed when all object files and libraries have
been read. To make this work, the expression evaluation in cfgexpr has been
rewritten to generate true expression trees. This means that expressions in
the linker config may use exports from the object files.

Separation of config file processing is the base for several enhancements, for
example forced imports by linker config.

This code needs more work and is only very, very, very roughly tested.

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

14 years agoPatch to correct the linkorder in the make files to make the --as-needed
uz [Sun, 7 Nov 2010 11:34:51 +0000 (11:34 +0000)]
Patch to correct the linkorder in the make files to make the --as-needed
ldflag work. By Mario Fetka.

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

14 years agoFixed register info for several runtime functions. Info for the Y register was
uz [Tue, 2 Nov 2010 18:05:19 +0000 (18:05 +0000)]
Fixed register info for several runtime functions. Info for the Y register was
wrong, so the optimizer assumed it wouldn't change across a call.

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

14 years agoIgnore some automatically generated files.
uz [Sat, 30 Oct 2010 20:13:26 +0000 (20:13 +0000)]
Ignore some automatically generated files.

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

14 years agoreally use default drive
cpg [Fri, 29 Oct 2010 19:53:45 +0000 (19:53 +0000)]
really use default drive

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

14 years ago__defdev is not dependent on DYNAMIC_DD
cpg [Fri, 29 Oct 2010 19:52:31 +0000 (19:52 +0000)]
__defdev is not dependent on DYNAMIC_DD

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

14 years agofix for files with no extension
cpg [Fri, 29 Oct 2010 19:25:01 +0000 (19:25 +0000)]
fix for files with no extension

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

14 years agoadd Atari version
cpg [Thu, 28 Oct 2010 21:13:52 +0000 (21:13 +0000)]
add Atari version

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

14 years agoadd posixdirent.s by Stefan Haubenthal
cpg [Thu, 28 Oct 2010 21:03:05 +0000 (21:03 +0000)]
add posixdirent.s by Stefan Haubenthal

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

14 years agosome fixes
cpg [Thu, 28 Oct 2010 21:02:09 +0000 (21:02 +0000)]
some fixes

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

14 years agoinitial version by Stefan A. Haubenthal
cpg [Thu, 28 Oct 2010 20:55:18 +0000 (20:55 +0000)]
initial version by Stefan A. Haubenthal

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

14 years agoAdded missing drivers.
uz [Sun, 10 Oct 2010 13:43:41 +0000 (13:43 +0000)]
Added missing drivers.

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

14 years agoAdded CH_ENTER define.
ol.sc [Sat, 2 Oct 2010 21:34:49 +0000 (21:34 +0000)]
Added CH_ENTER define.

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

14 years agoAccording to a recent discussion CH_ENTER should generally *not* be defined based...
ol.sc [Sat, 2 Oct 2010 21:20:25 +0000 (21:20 +0000)]
According to a recent discussion CH_ENTER should generally *not* be defined based on '\n'.

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

14 years agoFix parsing of push/pop so that #pragma warn works without.
uz [Sat, 2 Oct 2010 19:43:18 +0000 (19:43 +0000)]
Fix parsing of push/pop so that #pragma warn works without.

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