]> git.sur5r.net Git - cc65/log
cc65
12 years agoPreparations for the new format.
uz [Sun, 7 Aug 2011 21:08:45 +0000 (21:08 +0000)]
Preparations for the new format.

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

12 years agoSome improvements for spans.
uz [Sun, 7 Aug 2011 20:01:40 +0000 (20:01 +0000)]
Some improvements for spans.

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

12 years agoHandle scopes with a label correctly. Add the label to the debug info file.
uz [Sun, 7 Aug 2011 18:48:08 +0000 (18:48 +0000)]
Handle scopes with a label correctly. Add the label to the debug info file.

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

12 years agoHandle scopes with a label correctly.
uz [Sun, 7 Aug 2011 18:47:38 +0000 (18:47 +0000)]
Handle scopes with a label correctly.

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

12 years agoNew flag bit that tells if a scope has a label.
uz [Sun, 7 Aug 2011 18:47:21 +0000 (18:47 +0000)]
New flag bit that tells if a scope has a label.

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

12 years agoFox scopes that have a label (= .PROC), write the label to the debug
uz [Sun, 7 Aug 2011 18:46:56 +0000 (18:46 +0000)]
Fox scopes that have a label (= .PROC), write the label to the debug
information.

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

12 years agoBump the version number of the generated debug file.
uz [Sun, 7 Aug 2011 17:59:33 +0000 (17:59 +0000)]
Bump the version number of the generated debug file.

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

12 years agoDebug info: Make file info ids continous. Output modules that use a file.
uz [Sun, 7 Aug 2011 13:15:24 +0000 (13:15 +0000)]
Debug info: Make file info ids continous. Output modules that use a file.

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

12 years agoOutput library information to the debug file.
uz [Sun, 7 Aug 2011 11:33:28 +0000 (11:33 +0000)]
Output library information to the debug file.

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

12 years agoRemoved the Next pointer which is no longer necessary.
uz [Sat, 6 Aug 2011 12:32:10 +0000 (12:32 +0000)]
Removed the Next pointer which is no longer necessary.

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

12 years agoManage the segments in a collection.
uz [Fri, 5 Aug 2011 13:59:26 +0000 (13:59 +0000)]
Manage the segments in a collection.

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

12 years agoUse a collection to manage the segments.
uz [Fri, 5 Aug 2011 13:45:33 +0000 (13:45 +0000)]
Use a collection to manage the segments.

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

12 years agoCentral management of the debug info base ids.
uz [Fri, 5 Aug 2011 13:09:13 +0000 (13:09 +0000)]
Central management of the debug info base ids.

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

12 years agoMore aliases for attribute names.
uz [Fri, 5 Aug 2011 12:34:08 +0000 (12:34 +0000)]
More aliases for attribute names.

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

12 years agoIntroduce some shorter aliases for attribute names in the debug info file.
uz [Fri, 5 Aug 2011 12:33:21 +0000 (12:33 +0000)]
Introduce some shorter aliases for attribute names in the debug info file.

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

12 years agoOutput module info.
uz [Fri, 5 Aug 2011 12:09:11 +0000 (12:09 +0000)]
Output module info.

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

12 years agoMore work on scope suport.
uz [Thu, 4 Aug 2011 18:47:01 +0000 (18:47 +0000)]
More work on scope suport.

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

12 years agoAdjust code to C99 regarding the main function: Not returning anything in a
uz [Thu, 4 Aug 2011 17:18:06 +0000 (17:18 +0000)]
Adjust code to C99 regarding the main function: Not returning anything in a
main function with an int return type is identical to returning zero.

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

12 years agoRearrange debug info output. Add scopes to the debug info.
uz [Thu, 4 Aug 2011 15:58:54 +0000 (15:58 +0000)]
Rearrange debug info output. Add scopes to the debug info.

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

12 years agoRead Sections before Scopes, because the later will reference the former.
uz [Thu, 4 Aug 2011 13:20:45 +0000 (13:20 +0000)]
Read Sections before Scopes, because the later will reference the former.

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

12 years agoUse the Span structure also for scopes.
uz [Thu, 4 Aug 2011 13:14:26 +0000 (13:14 +0000)]
Use the Span structure also for scopes.

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

12 years agoThe spans do now contain the size of a span, no longer the end offset.
uz [Thu, 4 Aug 2011 12:51:44 +0000 (12:51 +0000)]
The spans do now contain the size of a span, no longer the end offset.

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

12 years agoRename SegRange to span. Write out the size instead of the end offset so we
uz [Thu, 4 Aug 2011 12:49:59 +0000 (12:49 +0000)]
Rename SegRange to span. Write out the size instead of the end offset so we
can save some bytes in the object file.

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

12 years agoGeneralized the CodeRange structure used for line infos and renamed it to Span.
uz [Thu, 4 Aug 2011 12:31:37 +0000 (12:31 +0000)]
Generalized the CodeRange structure used for line infos and renamed it to Span.

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

12 years agoFixed an off-by-one error.
uz [Wed, 3 Aug 2011 19:37:53 +0000 (19:37 +0000)]
Fixed an off-by-one error.

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

12 years agoFix a problem reported by Christopher Pow: cc65_lineinfo_byname doesn't handle
uz [Wed, 3 Aug 2011 18:39:08 +0000 (18:39 +0000)]
Fix a problem reported by Christopher Pow: cc65_lineinfo_byname doesn't handle
multiple line infos for one line correctly. It did only return one randomly
chosen line info instead of all.

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

12 years agoFixed an error in the special purpose allocator in expr.c.
uz [Tue, 2 Aug 2011 16:46:47 +0000 (16:46 +0000)]
Fixed an error in the special purpose allocator in expr.c.

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

12 years agoFixed a memory leak.
uz [Tue, 2 Aug 2011 16:16:37 +0000 (16:16 +0000)]
Fixed a memory leak.

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

12 years agoFixed another memory leak.
uz [Tue, 2 Aug 2011 15:00:33 +0000 (15:00 +0000)]
Fixed another memory leak.

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

12 years agoFixed another memory leak.
uz [Tue, 2 Aug 2011 14:49:33 +0000 (14:49 +0000)]
Fixed another memory leak.

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

12 years agoNew tgi_settextdir() function.
uz [Mon, 1 Aug 2011 21:00:51 +0000 (21:00 +0000)]
New tgi_settextdir() function.

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

12 years agoFixed a bug (Greg King).
uz [Mon, 1 Aug 2011 20:59:33 +0000 (20:59 +0000)]
Fixed a bug (Greg King).

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

12 years agoRead scopes from the object files.
uz [Mon, 1 Aug 2011 20:54:42 +0000 (20:54 +0000)]
Read scopes from the object files.

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

12 years agoFixed a rather large memory leak.
uz [Mon, 1 Aug 2011 20:49:59 +0000 (20:49 +0000)]
Fixed a rather large memory leak.

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

12 years agoDeclaration of tgi_settextdir() added.
uz [Sun, 31 Jul 2011 22:17:21 +0000 (22:17 +0000)]
Declaration of tgi_settextdir() added.

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

12 years agoPreparations for adding scopes.
uz [Sun, 31 Jul 2011 21:32:46 +0000 (21:32 +0000)]
Preparations for adding scopes.

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

12 years agoThere is no longer a scope type SCOPE_PROC.
uz [Sun, 31 Jul 2011 17:11:10 +0000 (17:11 +0000)]
There is no longer a scope type SCOPE_PROC.

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

12 years agoRemove SCOPE_PROC. It's a .SCOPE with an owner symbol.
uz [Sun, 31 Jul 2011 17:10:33 +0000 (17:10 +0000)]
Remove SCOPE_PROC. It's a .SCOPE with an owner symbol.

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

12 years agoWrite scopes in id order, so we don't need to write out the id itself. Add the
uz [Sun, 31 Jul 2011 15:37:51 +0000 (15:37 +0000)]
Write scopes in id order, so we don't need to write out the id itself. Add the
size of the scope to the output file and a flag bit that tells us if the scope
has a size.

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

12 years agoOutput the scope type in readable format.
uz [Sun, 31 Jul 2011 14:01:27 +0000 (14:01 +0000)]
Output the scope type in readable format.

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

12 years agoMove scope type definitions to common/
uz [Sun, 31 Jul 2011 14:01:11 +0000 (14:01 +0000)]
Move scope type definitions to common/

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

12 years agoAdd the parent scope/symbol to the debug symbol attributes.
uz [Sun, 31 Jul 2011 13:28:54 +0000 (13:28 +0000)]
Add the parent scope/symbol to the debug symbol attributes.

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

12 years agoDocument new command line switches.
uz [Sun, 31 Jul 2011 12:27:44 +0000 (12:27 +0000)]
Document new command line switches.

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

12 years agoAllow to dump scope information.
uz [Sun, 31 Jul 2011 12:25:44 +0000 (12:25 +0000)]
Allow to dump scope information.

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

12 years agoWrite scope information to the object file.
uz [Sun, 31 Jul 2011 12:25:02 +0000 (12:25 +0000)]
Write scope information to the object file.

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

12 years agoRenamed tgi_textheight -> tgi_gettextheight, tgi_textwidth -> tgi_gettextwidth
uz [Sun, 17 Jul 2011 18:36:12 +0000 (18:36 +0000)]
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

12 years agoWorked on text scaling. This is an intermediate version which doesn't work.
uz [Sun, 17 Jul 2011 18:27:01 +0000 (18:27 +0000)]
Worked on text scaling. This is an intermediate version which doesn't work.

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

12 years agoSmall change in the vector font format.
uz [Sun, 17 Jul 2011 17:15:54 +0000 (17:15 +0000)]
Small change in the vector font format.

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

12 years agoCheck for end-of-data while reading the vector definitions. Other small
uz [Sun, 17 Jul 2011 16:46:06 +0000 (16:46 +0000)]
Check for end-of-data while reading the vector definitions. Other small
changes.

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

12 years agoUpdated link to reference document for illegal opcodes.
uz [Sun, 17 Jul 2011 15:26:22 +0000 (15:26 +0000)]
Updated link to reference document for illegal opcodes.

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

12 years agoFix meaning of ALR.
uz [Sun, 17 Jul 2011 15:24:53 +0000 (15:24 +0000)]
Fix meaning of ALR.

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

12 years agoAdded a new flags byte to the TGI headers. Bumped the API version.
uz [Sun, 17 Jul 2011 11:23:27 +0000 (11:23 +0000)]
Added a new flags byte to the TGI headers. Bumped the API version.

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

12 years agoParse #pragma align() (does nothing currently).
uz [Tue, 12 Jul 2011 19:35:49 +0000 (19:35 +0000)]
Parse #pragma align() (does nothing currently).

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

12 years agoFixed a typo.
uz [Sun, 10 Jul 2011 15:00:37 +0000 (15:00 +0000)]
Fixed a typo.

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

12 years agoFix width calculation for bitmap font output. Use new 8x16 multiplication
uz [Sun, 10 Jul 2011 14:59:29 +0000 (14:59 +0000)]
Fix width calculation for bitmap font output. Use new 8x16 multiplication
routines to save some cycles.

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

12 years agoMake the 8x32 unsigned multiplication routine C callable.
uz [Sun, 10 Jul 2011 14:52:35 +0000 (14:52 +0000)]
Make the 8x32 unsigned multiplication routine C callable.

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

12 years agoAdded new 8x16 unsigned multiplication routine.
uz [Sun, 10 Jul 2011 14:51:03 +0000 (14:51 +0000)]
Added new 8x16 unsigned multiplication routine.

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

12 years agoAdded labels for umul16x16r16 and umul16x16r16m.
uz [Sun, 10 Jul 2011 14:50:18 +0000 (14:50 +0000)]
Added labels for umul16x16r16 and umul16x16r16m.

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

12 years agoCheck for macros within .STRUCT/.ENUM.
uz [Fri, 8 Jul 2011 09:55:17 +0000 (09:55 +0000)]
Check for macros within .STRUCT/.ENUM.

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

12 years agoDon't search twice for a macro.
uz [Fri, 8 Jul 2011 09:22:26 +0000 (09:22 +0000)]
Don't search twice for a macro.

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

12 years agoThe BASIC stub does encode the start address with only 4 digits. Add a check
uz [Fri, 8 Jul 2011 08:58:41 +0000 (08:58 +0000)]
The BASIC stub does encode the start address with only 4 digits. Add a check
so the linker will not generate an invalid header for program files with
larger start addresses.

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

12 years agoRemoved __fastcall__ declarations for functions without parameters.
uz [Thu, 7 Jul 2011 20:19:35 +0000 (20:19 +0000)]
Removed __fastcall__ declarations for functions without parameters.

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

12 years agoThe line counter got confused for lines with more than 256 chars. Removed the
uz [Thu, 7 Jul 2011 20:07:29 +0000 (20:07 +0000)]
The line counter got confused for lines with more than 256 chars. Removed the
restriction alltogether, so lines with arbitrary length should be handled
correctly. Not that it is of much use for an assembler, but this has really
been a somewhat ancient limitation.

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

13 years agoFixes for program arguments and TAP header by Stefan Haubenthal.
uz [Sun, 3 Jul 2011 13:23:07 +0000 (13:23 +0000)]
Fixes for program arguments and TAP header by Stefan Haubenthal.

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

13 years agoInitialize variables to avoid compiler warnings.
uz [Sun, 3 Jul 2011 12:24:54 +0000 (12:24 +0000)]
Initialize variables to avoid compiler warnings.

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

13 years agoFixed a bad styled sentence.
uz [Sat, 2 Jul 2011 20:54:39 +0000 (20:54 +0000)]
Fixed a bad styled sentence.

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

13 years agoFixed order of rules, so not only the tgi driver gets built.
uz [Wed, 22 Jun 2011 08:19:59 +0000 (08:19 +0000)]
Fixed order of rules, so not only the tgi driver gets built.

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

13 years agoNES character mode TGI driver. By Stefan Haubenthal.
uz [Tue, 21 Jun 2011 20:34:18 +0000 (20:34 +0000)]
NES character mode TGI driver. By Stefan Haubenthal.

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

13 years agoRemoved an unused function.
uz [Fri, 17 Jun 2011 19:58:53 +0000 (19:58 +0000)]
Removed an unused function.

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

13 years agoFix it's -> its where applicable. (Stefan Haubenthal).
uz [Fri, 17 Jun 2011 18:56:55 +0000 (18:56 +0000)]
Fix it's -> its where applicable. (Stefan Haubenthal).

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

13 years agoChange .CONDES -> .INTERRUPTOR (Stefan Haubenthal).
uz [Fri, 17 Jun 2011 18:56:27 +0000 (18:56 +0000)]
Change .CONDES -> .INTERRUPTOR (Stefan Haubenthal).

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

13 years agoRead and allow access to the segment for (segment based) symbols.
uz [Tue, 14 Jun 2011 21:18:44 +0000 (21:18 +0000)]
Read and allow access to the segment for (segment based) symbols.

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

13 years agoFor segment based symbols, add information about the segment to the debug info.
uz [Tue, 14 Jun 2011 19:25:50 +0000 (19:25 +0000)]
For segment based symbols, add information about the segment to the debug info.

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

13 years agoMerge duplicate file entries (same name, size and timestamp).
uz [Tue, 14 Jun 2011 18:26:22 +0000 (18:26 +0000)]
Merge duplicate file entries (same name, size and timestamp).

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

13 years agoAccept a file attribute for symbols but don't do anything with it for now.
uz [Tue, 14 Jun 2011 16:45:48 +0000 (16:45 +0000)]
Accept a file attribute for symbols but don't do anything with it for now.

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

13 years agoAllow to leave of the end address of a range if it is identical to the start
uz [Mon, 13 Jun 2011 21:43:26 +0000 (21:43 +0000)]
Allow to leave of the end address of a range if it is identical to the start
address. Currently unused.

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

13 years agoAccept a segment attribute for symbols, but don't do anything with it for now.
uz [Mon, 13 Jun 2011 21:16:40 +0000 (21:16 +0000)]
Accept a segment attribute for symbols, but don't do anything with it for now.

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

13 years agoMark the symbol that is the name of a scope with the size of that scope
uz [Mon, 13 Jun 2011 18:43:50 +0000 (18:43 +0000)]
Mark the symbol that is the name of a scope with the size of that scope
(previously only the scope itself had that size).
Pass the size of symbols through the object file to the linker. Bump the
object file version and adjust object file reading tools (od65, ar65) to this
change.
Read the size in the linker and output it in the debug info.
Bump the minor version number of the debug info. Read the size and allow to
access it via the API. Do better version checking for the debug info and try
to be smarter when encountering unknown keywords to improve support for newer
minor versions.

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

13 years agoAdded docs for interruptor support. By Stefan Haubenthal.
uz [Mon, 13 Jun 2011 17:25:36 +0000 (17:25 +0000)]
Added docs for interruptor support. By Stefan Haubenthal.

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

13 years agointerruptor support by Stefan Haubenthal
cpg [Mon, 13 Jun 2011 16:42:45 +0000 (16:42 +0000)]
interruptor support by Stefan Haubenthal

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

13 years agoUse slightly optimized character translation settings for the CBM machines.
uz [Mon, 13 Jun 2011 12:13:08 +0000 (12:13 +0000)]
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

13 years agoFix/workaround for a problem with nested macros.
uz [Mon, 13 Jun 2011 10:03:26 +0000 (10:03 +0000)]
Fix/workaround for a problem with nested macros.

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

13 years agoFixed the same problem as in the last change for the final token of .define
uz [Mon, 13 Jun 2011 08:55:48 +0000 (08:55 +0000)]
Fixed the same problem as in the last change for the final token of .define
style macros.

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

13 years agoFix wrong line info sometimes output for macros: When macro parameters were
uz [Mon, 13 Jun 2011 08:53:41 +0000 (08:53 +0000)]
Fix wrong line info sometimes output for macros: When macro parameters were
expanded, the line info came from the parameter replacement list, but was
marked as coming from the macro. Now parameter replacement lists don't change
the line info.

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

13 years agoFinished implemenation of commands to delete macros. Added the new commands to
uz [Sun, 12 Jun 2011 21:29:07 +0000 (21:29 +0000)]
Finished implemenation of commands to delete macros. Added the new commands to
the docs.

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

13 years agoFirst implementation of .UNDEF for deleting a macro.
uz [Sat, 11 Jun 2011 22:18:48 +0000 (22:18 +0000)]
First implementation of .UNDEF for deleting a macro.

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

13 years agoAdded routines to remove an entry from the hash table.
uz [Sat, 11 Jun 2011 18:17:54 +0000 (18:17 +0000)]
Added routines to remove an entry from the hash table.

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

13 years agoFixed an error: An .ELSE without an .IF caused a null pointer dereference.
uz [Thu, 9 Jun 2011 11:27:33 +0000 (11:27 +0000)]
Fixed an error: An .ELSE without an .IF caused a null pointer dereference.

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

13 years agoImprove the performance of the routine that determines the overall .IF
uz [Thu, 9 Jun 2011 11:23:37 +0000 (11:23 +0000)]
Improve the performance of the routine that determines the overall .IF
condition.

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

13 years agoAdd recursive scanning for .define style macros: Replacement using .define is
uz [Wed, 8 Jun 2011 21:09:40 +0000 (21:09 +0000)]
Add recursive scanning for .define style macros: Replacement using .define is
done not only when the macro is parsed, but also when it is expanded.

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

13 years agoFixed a problem: Removing duplicate file entries (entries with the same name)
uz [Wed, 8 Jun 2011 20:53:29 +0000 (20:53 +0000)]
Fixed a problem: Removing duplicate file entries (entries with the same name)
isn't allowed, since these entries may be referenced. Since we must be able to
handle duplicate names anyway (they may be old/new versions of one file), we
can also have duplicates in general. Cleanup the list using time stamps and
sizes before returning it to the caller.

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

13 years agoFixed an error: The amount of fill bytes for a section was declared as an
uz [Wed, 8 Jun 2011 18:33:34 +0000 (18:33 +0000)]
Fixed an error: The amount of fill bytes for a section was declared as an
unsigned char, so larger values got truncated making alignments larger than
$100 unreliable.

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

13 years agoAdded more debug output.
uz [Wed, 8 Jun 2011 18:28:21 +0000 (18:28 +0000)]
Added more debug output.

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

13 years agoFix a compile problem with the Watcom compiler.
uz [Wed, 8 Jun 2011 06:51:05 +0000 (06:51 +0000)]
Fix a compile problem with the Watcom compiler.

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

13 years agoAdded (again) IRQ support for the Oric Atmos by Stefan Haubenthal. This time
uz [Tue, 7 Jun 2011 21:22:02 +0000 (21:22 +0000)]
Added (again) IRQ support for the Oric Atmos by Stefan Haubenthal. This time
with the correct patch for atmos.inc.

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

13 years agoDon't allow too many nested macro expansions. Until now, it was possible to
uz [Tue, 7 Jun 2011 21:17:35 +0000 (21:17 +0000)]
Don't allow too many nested macro expansions. Until now, it was possible to
send the assembler in an endless loop by a recursive macro without end
condition or a set of macros that called each other.

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

13 years agoLimit the number of additional line infos printed in case of an error or
uz [Tue, 7 Jun 2011 21:15:16 +0000 (21:15 +0000)]
Limit the number of additional line infos printed in case of an error or
warning.

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

13 years agoFix an error with .ELSEIF: The condition must only be evaluated if the .ELSEIF
uz [Tue, 7 Jun 2011 17:16:18 +0000 (17:16 +0000)]
Fix an error with .ELSEIF: The condition must only be evaluated if the .ELSEIF
is inside an .IF which had a TRUE condition.

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

13 years agoAdded a comment about the fix explaining why the given order of calls is necessary.
uz [Sun, 5 Jun 2011 14:47:28 +0000 (14:47 +0000)]
Added a comment about the fix explaining why the given order of calls is necessary.

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

13 years agoFixed an error in macro expansion: If the first token after the macro name was
uz [Sun, 5 Jun 2011 14:45:37 +0000 (14:45 +0000)]
Fixed an error in macro expansion: If the first token after the macro name was
a .define style macro, the assembler run into an internal error, because the
expansion of the second macro was started before the first one

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