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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

13 years agoComputed pixel aspect ratio (PAR) by presuming a display aspect ratio (DAR) of 4...
ol.sc [Mon, 2 May 2011 11:23:30 +0000 (11:23 +0000)]
Computed pixel aspect ratio (PAR) by presuming a display aspect ratio (DAR) of 4/3 for a classic CRT and using the given driver resolutions as storage aspect ratio (SAR).

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

13 years agoRemoved tgi_load() and all corresponding infrastructure. The idea behind tgi_load...
ol.sc [Mon, 2 May 2011 10:38:48 +0000 (10:38 +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@5016 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemoved unused TGI mode tables.
ol.sc [Mon, 2 May 2011 10:30:49 +0000 (10:30 +0000)]
Removed unused TGI mode tables.

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

13 years agoFixed typos in comments. No code changes.
uz [Sun, 1 May 2011 21:40:00 +0000 (21:40 +0000)]
Fixed typos in comments. No code changes.

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

13 years agoImproved the stub for __osmaperrno somewhat (Stefan Haubenthal).
uz [Sun, 1 May 2011 21:39:04 +0000 (21:39 +0000)]
Improved the stub for __osmaperrno somewhat (Stefan Haubenthal).

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

13 years agoCache aspect ratio like already done with resolution.
ol.sc [Sun, 1 May 2011 21:38:04 +0000 (21:38 +0000)]
Cache aspect ratio like already done with resolution.

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

13 years agoRemoved recently added TGI mode tables for Atmos and Lynx as according to Greg King...
ol.sc [Sun, 1 May 2011 21:32:03 +0000 (21:32 +0000)]
Removed recently added TGI mode tables for Atmos and Lynx as according to Greg King those targets don't load drivers dynamically.

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

13 years agoThe code for compares with a constant result may not be removed, because it
uz [Sun, 1 May 2011 18:48:06 +0000 (18:48 +0000)]
The code for compares with a constant result may not be removed, because it
may contain side effects.

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

13 years agoNew TGI routines tgi_getaspectratio/tgi_setaspectratio.
uz [Sun, 1 May 2011 18:40:38 +0000 (18:40 +0000)]
New TGI routines tgi_getaspectratio/tgi_setaspectratio.

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

13 years agoRemoved unnecessary \n's in calls to Error().
uz [Sun, 1 May 2011 18:00:51 +0000 (18:00 +0000)]
Removed unnecessary \n's in calls to Error().

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

13 years agoFixed an error in the last change: Arguments for option -W were not passed
uz [Sun, 1 May 2011 17:58:45 +0000 (17:58 +0000)]
Fixed an error in the last change: Arguments for option -W were not passed
correctly to the compiler.

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

13 years agoFix problem with changed syntax of option -W for the compiler: -W will now
uz [Sun, 1 May 2011 17:56:44 +0000 (17:56 +0000)]
Fix problem with changed syntax of option -W for the compiler: -W will now
only be passed to the compiler together with all warning names.

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

13 years agoFix output of --help regarding -W. Added new option --list-warnings.
uz [Sun, 1 May 2011 17:42:49 +0000 (17:42 +0000)]
Fix output of --help regarding -W. Added new option --list-warnings.

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

13 years agoRemoved two extra bytes from the TGI driver's header.
uz [Sun, 1 May 2011 17:04:30 +0000 (17:04 +0000)]
Removed two extra bytes from the TGI driver's header.
Added "tgi_colors.s" and a missing mouse-driver support file.
Added driver-module rules to the make-file.
All changes by Greg King.

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

13 years agoA first small step towards aspect ratio awareness.
ol.sc [Sat, 30 Apr 2011 13:12:53 +0000 (13:12 +0000)]
A first small step towards aspect ratio awareness.

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

13 years agoDocumented the reason for having a pixel aspect ratio (PAR) of 1 on the Lynx.
ol.sc [Sat, 30 Apr 2011 12:47:53 +0000 (12:47 +0000)]
Documented the reason for having a pixel aspect ratio (PAR) of 1 on the Lynx.

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

13 years agoComputed pixel aspect ratio (PAR) by presuming a display aspect ratio (DAR) of 4...
ol.sc [Sat, 30 Apr 2011 12:46:03 +0000 (12:46 +0000)]
Computed pixel aspect ratio (PAR) by presuming a display aspect ratio (DAR) of 4/3 for a classic CRT and using the given driver resolutions as storage aspect ratio (SAR).

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

13 years agoAdded a convertor from Latin1 to PetSCII. By Greg King.
uz [Fri, 29 Apr 2011 15:39:28 +0000 (15:39 +0000)]
Added a convertor from Latin1 to PetSCII. By Greg King.

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

13 years agoNo need to explicitly set two page in 40 column mode as two pages are the default...
ol.sc [Thu, 28 Apr 2011 13:06:37 +0000 (13:06 +0000)]
No need to explicitly set two page in 40 column mode as two pages are the default anyway.

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

13 years agoMinimal source reformatting.
ol.sc [Thu, 28 Apr 2011 13:05:12 +0000 (13:05 +0000)]
Minimal source reformatting.

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

13 years agoAdded TGI mode tables for Atmos and Lynx
ol.sc [Mon, 25 Apr 2011 19:05:43 +0000 (19:05 +0000)]
Added TGI mode tables for Atmos and Lynx

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

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