]> git.sur5r.net Git - cc65/log
cc65
13 years agoFixed comments. No code change.
uz [Mon, 25 Apr 2011 18:49:24 +0000 (18:49 +0000)]
Fixed comments. No code change.

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

13 years agoReverted the change by Stefan Haubenthal - order of segments is important for
uz [Mon, 25 Apr 2011 18:45:57 +0000 (18:45 +0000)]
Reverted the change by Stefan Haubenthal - order of segments is important for
the heap to work correctly.

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

13 years agoAccess routines for different eeprom types. By Karri Kaksonen.
uz [Mon, 25 Apr 2011 18:42:50 +0000 (18:42 +0000)]
Access routines for different eeprom types. By Karri Kaksonen.

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

13 years agoTarget-specific black & white values for use by the target-shared TGI kernel
ol.sc [Mon, 25 Apr 2011 17:11:23 +0000 (17:11 +0000)]
Target-specific black & white values for use by the target-shared TGI kernel

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

13 years agoAdded TGI_COLOR_... macros to be used both for hires and lores. Introduced color...
ol.sc [Mon, 25 Apr 2011 11:16:56 +0000 (11:16 +0000)]
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

13 years agoAdded toascii().
ol.sc [Fri, 22 Apr 2011 12:14:28 +0000 (12:14 +0000)]
Added toascii().

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

13 years agoUse TGI colors.
ol.sc [Wed, 20 Apr 2011 12:59:45 +0000 (12:59 +0000)]
Use TGI colors.

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

13 years agoAdded TGI colors (simply based on the conio colors).
ol.sc [Wed, 20 Apr 2011 12:50:38 +0000 (12:50 +0000)]
Added TGI colors (simply based on the conio colors).

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

13 years agoRemoved TGI black/white defines as those are to be considered as target specific.
ol.sc [Wed, 20 Apr 2011 12:23:27 +0000 (12:23 +0000)]
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

13 years agoAdded TGI colors (simply based on the conio colors).
ol.sc [Wed, 20 Apr 2011 12:20:33 +0000 (12:20 +0000)]
Added TGI colors (simply based on the conio colors).

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

13 years agoChanges by Greg King:
uz [Sat, 16 Apr 2011 12:28:06 +0000 (12:28 +0000)]
Changes by Greg King:
Made cbm_readdir() report a disk's format-code and more file-access modes.
Added more definitions to <cbm.h> for cbm_readdir().  And, improved the
header's comments.  Added some ASCII-to-PetSCII character-mappings.

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

13 years agoAdded stub for _osmaperrno. Improve uname info. By Stefan Haubenthal.
uz [Sat, 16 Apr 2011 12:15:49 +0000 (12:15 +0000)]
Added stub for _osmaperrno. Improve uname info. By Stefan Haubenthal.

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

13 years agoFix tape header output. Add version info in the header. By Stefan Haubenthal.
uz [Sat, 16 Apr 2011 12:09:28 +0000 (12:09 +0000)]
Fix tape header output. Add version info in the header. By Stefan Haubenthal.

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

13 years agoPatch by groepaz to fix the problem that DEL files would appear as type DIR.
uz [Thu, 7 Apr 2011 20:58:03 +0000 (20:58 +0000)]
Patch by groepaz to fix the problem that DEL files would appear as type DIR.

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

13 years agoNew uploader that can be hiding in top of memory waiting for a BLL-kind of
uz [Wed, 6 Apr 2011 19:54:55 +0000 (19:54 +0000)]
New uploader that can be hiding in top of memory waiting for a BLL-kind of
loadable application over the ComLynx serial port. By Karri Kaksonen.

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

13 years agoMissing files added by Karri Kaksonen.
uz [Wed, 6 Apr 2011 19:51:15 +0000 (19:51 +0000)]
Missing files added by Karri Kaksonen.

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

13 years agoDocs for the serial functions by Karri Kaksonen.
uz [Wed, 6 Apr 2011 19:50:26 +0000 (19:50 +0000)]
Docs for the serial functions by Karri Kaksonen.

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

13 years agoLynx boot stuff split up into several files. Changes by Karri Kaksonen.
uz [Mon, 21 Mar 2011 17:49:03 +0000 (17:49 +0000)]
Lynx boot stuff split up into several files. Changes by Karri Kaksonen.

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

13 years agoImproved and much smaller bootloader by Karri Kaksonen.
uz [Thu, 17 Mar 2011 22:36:09 +0000 (22:36 +0000)]
Improved and much smaller bootloader by Karri Kaksonen.

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

13 years agochange my email addr from cpg@aladdin.de to chris@groessler.org
cpg [Sat, 26 Feb 2011 22:15:24 +0000 (22:15 +0000)]
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

13 years agoImproved exec():
ol.sc [Fri, 11 Feb 2011 23:22:26 +0000 (23:22 +0000)]
Improved exec():
- Copy the pathname to $280 for SYS programs
- Make sure 80 column firmware is off (which btw. switches to the normal character set) which should increase program compatibility
Now "only" cmdline support should be left to do.

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

13 years agoAdded MACHID - we'll need it sooner or later...
ol.sc [Fri, 11 Feb 2011 23:15:20 +0000 (23:15 +0000)]
Added MACHID - we'll need it sooner or later...

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

13 years agoFixed an error: The collection for the line infos hasn't been initialized.
uz [Thu, 10 Feb 2011 22:18:24 +0000 (22:18 +0000)]
Fixed an error: The collection for the line infos hasn't been initialized.

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

13 years agofix typos in comments
cpg [Mon, 7 Feb 2011 23:51:18 +0000 (23:51 +0000)]
fix typos in comments

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

13 years agoadd Antic opcodes defines -- contributed by Christian Krüger
cpg [Mon, 7 Feb 2011 23:48:26 +0000 (23:48 +0000)]
add Antic opcodes defines -- contributed by Christian Krüger

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

13 years agoUpdate by Stefan Haubenthal.
uz [Mon, 7 Feb 2011 23:05:21 +0000 (23:05 +0000)]
Update by Stefan Haubenthal.

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

13 years agoInitialize variables to avoid gcc warnings.
uz [Mon, 7 Feb 2011 23:04:10 +0000 (23:04 +0000)]
Initialize variables to avoid gcc warnings.

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

13 years agoAdded first implementation of exec(). No support for commandline parameters so far.
ol.sc [Sun, 6 Feb 2011 22:27:31 +0000 (22:27 +0000)]
Added first implementation of exec(). No support for commandline parameters so far.

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

13 years agoadd Antic opcodes (submitted by Christian Krueger)
cpg [Sun, 6 Feb 2011 20:57:14 +0000 (20:57 +0000)]
add Antic opcodes (submitted by Christian Krueger)

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

13 years agoThe assembler options -l and --listing will now take the name of the listing
uz [Sun, 6 Feb 2011 20:10:19 +0000 (20:10 +0000)]
The assembler options -l and --listing will now take the name of the listing
file as an argument.

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

13 years agoAdded disassembler support for the NMOS 6502 with illegal opcodes.
uz [Sun, 6 Feb 2011 16:04:46 +0000 (16:04 +0000)]
Added disassembler support for the NMOS 6502 with illegal opcodes.

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

13 years agoFixed a bug reported by thefox.
uz [Sun, 6 Feb 2011 14:36:31 +0000 (14:36 +0000)]
Fixed a bug reported by thefox.

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

13 years agoBug correction by Karri Kaksonen.
uz [Sun, 6 Feb 2011 14:34:02 +0000 (14:34 +0000)]
Bug correction by Karri Kaksonen.

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

13 years agoAdded two new global options, NewlineAfterJMP and NewlineAfterRTS.
uz [Sat, 5 Feb 2011 16:03:06 +0000 (16:03 +0000)]
Added two new global options, NewlineAfterJMP and NewlineAfterRTS.

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

13 years agoThe existing global option HEXOFFS and the --hexoffs command line switch
uz [Sat, 5 Feb 2011 15:58:37 +0000 (15:58 +0000)]
The existing global option HEXOFFS and the --hexoffs command line switch
weren't documented.

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

13 years agoRedid the whole line info stuff, because the old data structures weren't able
uz [Thu, 3 Feb 2011 17:08:20 +0000 (17:08 +0000)]
Redid the whole line info stuff, because the old data structures weren't able
to manage the new information.

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

13 years agoRemoved the obsolete mouse module.
uz [Mon, 31 Jan 2011 16:44:12 +0000 (16:44 +0000)]
Removed the obsolete mouse module.

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

13 years agoFixed a bug.
uz [Sun, 30 Jan 2011 14:51:50 +0000 (14:51 +0000)]
Fixed a bug.

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

13 years agoBump version number of generated debug info files.
uz [Sat, 29 Jan 2011 22:19:37 +0000 (22:19 +0000)]
Bump version number of generated debug info files.

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

13 years agoPass type of line info through the object files.
uz [Sat, 29 Jan 2011 22:16:03 +0000 (22:16 +0000)]
Pass type of line info through the object files.

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

13 years agoNew include file for line info definitions shared between assembler, linker
uz [Sat, 29 Jan 2011 22:08:58 +0000 (22:08 +0000)]
New include file for line info definitions shared between assembler, linker
and od65 utility.

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

13 years agoIntroduced constructor to raise the ProDOS 8 file level - and extended the destructor...
ol.sc [Sat, 29 Jan 2011 21:43:26 +0000 (21:43 +0000)]
Introduced constructor to raise the ProDOS 8 file level - and extended the destructor to restore the file level again. This is a prerequisite to allow the upcoming exec() to open a file before the destructors run and continue reading from of it after the destructors have run.

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

13 years agoSet the priority of the main() args constructor to 24 simply be cause most other...
ol.sc [Sat, 29 Jan 2011 21:39:17 +0000 (21:39 +0000)]
Set the priority of the main() args constructor to 24 simply be cause most other targets do - and adjust the priority of the dos detection constructor to stay higher than the main() args constructor.

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

13 years agoThe constructor doesn't have any interaction with other constructors so there seems...
ol.sc [Sat, 29 Jan 2011 21:36:18 +0000 (21:36 +0000)]
The constructor doesn't have any interaction with other constructors so there seems to be no need for a priority at all.

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

13 years agoChanged text of notification.
uz [Sat, 29 Jan 2011 20:30:38 +0000 (20:30 +0000)]
Changed text of notification.

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

13 years agoCreate separate line infos for macros and .repeat statements and other token
uz [Sat, 29 Jan 2011 20:24:44 +0000 (20:24 +0000)]
Create separate line infos for macros and .repeat statements and other token
lists. These are also output as diagnostic in case of an error.

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

13 years agoUse line infos to output more verbose error and warning messages whenever
uz [Sat, 29 Jan 2011 18:43:36 +0000 (18:43 +0000)]
Use line infos to output more verbose error and warning messages whenever
possible.

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

13 years agoBugfix by Karri Kaksonen.
uz [Sat, 29 Jan 2011 17:53:58 +0000 (17:53 +0000)]
Bugfix by Karri Kaksonen.

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

13 years agoFixed an error in the macro versions of the inline functions.
uz [Fri, 28 Jan 2011 16:33:04 +0000 (16:33 +0000)]
Fixed an error in the macro versions of the inline functions.

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

13 years agoSmall fix for debug info output.
uz [Fri, 28 Jan 2011 16:20:39 +0000 (16:20 +0000)]
Small fix for debug info output.

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

13 years agoAdapted to new library format.
uz [Fri, 28 Jan 2011 16:03:55 +0000 (16:03 +0000)]
Adapted to new library format.

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

13 years agoFixed a bug: Wrong variable size trucates data.
uz [Fri, 28 Jan 2011 16:03:41 +0000 (16:03 +0000)]
Fixed a bug: Wrong variable size trucates data.

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

13 years agoChange how data is stored in the library. To simplify things, the index
uz [Fri, 28 Jan 2011 15:42:32 +0000 (15:42 +0000)]
Change how data is stored in the library. To simplify things, the index
(=directory) entry is now shorter, and additional data necessary for checking
in the archiver is not stored in the directory but read from the object file
data in the library.

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

13 years agoNo need to specify explicit paths in #include statements.
uz [Fri, 28 Jan 2011 12:21:48 +0000 (12:21 +0000)]
No need to specify explicit paths in #include statements.

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

13 years agoUse routine from common library instead of separate code.
uz [Fri, 28 Jan 2011 12:14:22 +0000 (12:14 +0000)]
Use routine from common library instead of separate code.

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

13 years agoAllow to pass arguments to a program compiled for the Oric Atmos. Code
uz [Fri, 28 Jan 2011 12:12:59 +0000 (12:12 +0000)]
Allow to pass arguments to a program compiled for the Oric Atmos. Code
contributed by Stefan A. Haubenthal.

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

13 years agoSimplify things using collections. Some more generic overhaul.
uz [Fri, 28 Jan 2011 11:54:35 +0000 (11:54 +0000)]
Simplify things using collections. Some more generic overhaul.

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

13 years agoChanged priorities of destructors so atexit will be called before open files
uz [Fri, 28 Jan 2011 10:55:03 +0000 (10:55 +0000)]
Changed priorities of destructors so atexit will be called before open files
are closed on exit, so atexit handlers may close the files themselves or
whatever is necessary for a clean shutdown.

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

13 years agoUse a collection for the modules in a library.
uz [Thu, 27 Jan 2011 22:43:33 +0000 (22:43 +0000)]
Use a collection for the modules in a library.

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

13 years agoOn errors and warnings, output additional information using extra line info
uz [Thu, 27 Jan 2011 22:25:32 +0000 (22:25 +0000)]
On errors and warnings, output additional information using extra line info
supplied using the .dbg statements.

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

13 years agoFix forgotten stuff from last change.
uz [Thu, 27 Jan 2011 22:23:01 +0000 (22:23 +0000)]
Fix forgotten stuff from last change.

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

13 years agoMore lineinfo usage.
uz [Thu, 27 Jan 2011 21:40:37 +0000 (21:40 +0000)]
More lineinfo usage.

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

13 years agoChange ignore list for new naming (grc -> grc65).
uz [Thu, 27 Jan 2011 21:14:34 +0000 (21:14 +0000)]
Change ignore list for new naming (grc -> grc65).

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

13 years agoRenamed conioinit to initconio because most other constructors have this
uz [Thu, 27 Jan 2011 21:12:55 +0000 (21:12 +0000)]
Renamed conioinit to initconio because most other constructors have this
naming scheme.

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

13 years agoAdded the variables for setting the ProDOS type and auxtype to the docs.
ol.sc [Thu, 27 Jan 2011 20:36:31 +0000 (20:36 +0000)]
Added the variables for setting the ProDOS type and auxtype to the docs.

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

13 years agoAdapted to changes in the object file format.
uz [Thu, 27 Jan 2011 17:35:48 +0000 (17:35 +0000)]
Adapted to changes in the object file format.

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

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