]> git.sur5r.net Git - cc65/log
cc65
13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 years agoFix a problem with conditional assembly: The scanner has to be switched into
uz [Sun, 5 Jun 2011 14:28:56 +0000 (14:28 +0000)]
Fix a problem with conditional assembly: The scanner has to be switched into
raw token mode when skipping a section of input because otherwise pseudo
functions may trigger errors.

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

13 years agoRemove declarations for stuff that has never been there.
uz [Sun, 5 Jun 2011 14:24:51 +0000 (14:24 +0000)]
Remove declarations for stuff that has never been there.

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

13 years agoFixed a problem in GetSymParentScope, where an error in the assembler input
uz [Tue, 31 May 2011 14:51:21 +0000 (14:51 +0000)]
Fixed a problem in GetSymParentScope, where an error in the assembler input
somewhere before could lead to an invalid memory access.

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

13 years agoThe terminating zero was missing in several places where a string buffer was
uz [Mon, 30 May 2011 21:56:27 +0000 (21:56 +0000)]
The terminating zero was missing in several places where a string buffer was
copied to CurTok.SVal.

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

13 years agoFix problem with output of sprintf when %s format spec is used.
uz [Mon, 30 May 2011 21:37:34 +0000 (21:37 +0000)]
Fix problem with output of sprintf when %s format spec is used.

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

13 years agoReverted the last change, because it doesn't compile.
uz [Tue, 24 May 2011 06:48:02 +0000 (06:48 +0000)]
Reverted the last change, because it doesn't compile.

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

13 years agoAdd support for interruptors (Stefan Haubenthal).
uz [Mon, 23 May 2011 17:35:25 +0000 (17:35 +0000)]
Add support for interruptors (Stefan Haubenthal).

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

13 years agoCorrected screensize function by Stefan Haubenthal.
uz [Fri, 13 May 2011 15:31:26 +0000 (15:31 +0000)]
Corrected screensize function by Stefan Haubenthal.

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

13 years agoDocument the aspect ratio functions.
uz [Tue, 10 May 2011 18:39:06 +0000 (18:39 +0000)]
Document the aspect ratio functions.

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

13 years agoFixed typoes in cl65's --help message. By Greg King.
uz [Mon, 9 May 2011 16:33:38 +0000 (16:33 +0000)]
Fixed typoes in cl65's --help message. By Greg King.

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

13 years agoBack to revision 3818: The value of COLOR_WHITE changed back from 3 to 1.
ol.sc [Thu, 5 May 2011 20:43:10 +0000 (20:43 +0000)]
Back to revision 3818: The value of COLOR_WHITE changed back from 3 to 1.

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

13 years agoThe TGI kernel will call SETVIEWPAGE(0) after calling INIT so there's no need to...
ol.sc [Tue, 3 May 2011 21:40:51 +0000 (21:40 +0000)]
The TGI kernel will call SETVIEWPAGE(0) after calling INIT so there's no need to switch to the first page here.

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

13 years agoRemoved tgi_load() and all corresponding infrastructure. The idea behind tgi_load...
ol.sc [Tue, 3 May 2011 21:28:20 +0000 (21:28 +0000)]
Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.

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

13 years agoFixed comment.
ol.sc [Tue, 3 May 2011 20:22:32 +0000 (20:22 +0000)]
Fixed comment.

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

13 years agoAdded commands to copy the extra-object modules for all targets.
uz [Mon, 2 May 2011 19:29:05 +0000 (19:29 +0000)]
Added commands to copy the extra-object modules for all targets.
These two patches speed up library building:
Do the "runtime" directory before doing the platform directory, because
platform drivers need a file from the runtime directory (the old code
ran "runtime/Makefile" three times for each target!!!).
Clean only the shared directories -- the target directories don't need
cleaning.
Changes by Greg King.

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

13 years ago_tgi_getaspectratio was declared global twice, while tgi_setaspectratio was
uz [Mon, 2 May 2011 19:18:38 +0000 (19:18 +0000)]
_tgi_getaspectratio was declared global twice, while tgi_setaspectratio was
missing (Greg King).

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