]>
git.sur5r.net Git - cc65/log
uz [Sun, 20 Sep 2009 13:14:29 +0000 (13:14 +0000)]
Oliver added a comment to the Apple2 linker config.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4197
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 19 Sep 2009 16:17:01 +0000 (16:17 +0000)]
Package the additional linker scripts for the apple.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4196
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 19 Sep 2009 16:14:46 +0000 (16:14 +0000)]
Additional linker configs for the Apple by Oliver Schmidt.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4195
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 19:13:59 +0000 (19:13 +0000)]
Removed the - now unused - empty builtin configuration (was used for the ace
target before).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4194
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 19:00:24 +0000 (19:00 +0000)]
Change search paths for the linker.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4193
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 18:14:34 +0000 (18:14 +0000)]
Prepared the spec file for version 2.13.0. Additional config files will no go
to /usr/lib/cc65/cfg/.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4192
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 17:42:44 +0000 (17:42 +0000)]
Removed unused code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4191
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 17:39:23 +0000 (17:39 +0000)]
Replaced the condition for the assertion in toggle_videomode by something that
is still always false, but will be evaluated by the linker instead of the
assembler. The assembler will otherwise emit a warning when just translating
the module.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4190
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 17:23:48 +0000 (17:23 +0000)]
Fixed an error in the makefile. strtoimax and strtoumax were in the wrong
list.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4189
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 17:06:26 +0000 (17:06 +0000)]
Renamed some additional (not builtin) linker configs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4188
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 17:04:20 +0000 (17:04 +0000)]
Removed the (unused and probably non-working) config for OS/A65.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4187
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 15:09:07 +0000 (15:09 +0000)]
Added a missing paren.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4186
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 14:28:52 +0000 (14:28 +0000)]
Added wide char literals, but treat them identical as normal strings.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4185
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 18 Sep 2009 07:38:00 +0000 (07:38 +0000)]
Make wchar_t a char instead of a short.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4184
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Thu, 17 Sep 2009 19:31:47 +0000 (19:31 +0000)]
inttypes.h is an ISO C standard include file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4183
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Thu, 17 Sep 2009 18:37:42 +0000 (18:37 +0000)]
New strtoimax and strtoumax standard functions as aliases for strtol/strtoul.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4182
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Thu, 17 Sep 2009 09:32:05 +0000 (09:32 +0000)]
Lynx changes by Karri Kaksonen.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4181
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 21:45:25 +0000 (21:45 +0000)]
Added a (currently untested) strtoul implementation. strtol and strtoul should
probably get merged somehow, because they share quite some code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4180
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 21:25:44 +0000 (21:25 +0000)]
Shrink atoi by using negeax instead of inlined code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4179
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 21:01:20 +0000 (21:01 +0000)]
Make system() fastcall like most other library functions.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4178
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 20:56:08 +0000 (20:56 +0000)]
Added an implementation of strtol (stdlib.h).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4177
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 20:47:03 +0000 (20:47 +0000)]
Testcode for strtol and atoi.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4176
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 15 Sep 2009 20:46:38 +0000 (20:46 +0000)]
Added declarations for strtol and strtoul.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4175
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 14 Sep 2009 22:02:48 +0000 (22:02 +0000)]
Improved the code that checks for memory accesses. The old code didn't detect
certain accesses.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4174
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Mon, 14 Sep 2009 20:13:52 +0000 (20:13 +0000)]
Added tgi_load_driver.s to files to be ignored.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4173
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Mon, 14 Sep 2009 19:58:06 +0000 (19:58 +0000)]
Now that cc65 programs can run as SYS files themselves my ProDOS Loader ulimately has to change from a minimalistic shell replacement to a pure loader (without exit hook). This approach simplifies several things. However the "reboot after exit" option now present as a ProDOS Loader variant has to move into the cc65 program.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4172
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 14 Sep 2009 19:56:47 +0000 (19:56 +0000)]
Removed debug output
git-svn-id: svn://svn.cc65.org/cc65/trunk@4171
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 14 Sep 2009 19:54:50 +0000 (19:54 +0000)]
Fixed another problem with OptJumpTarget1, that was mostly prevented from
being triggered by other optimizations, which removed or changed the trigger
code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4170
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 14 Sep 2009 18:36:38 +0000 (18:36 +0000)]
Fixed a problem with OptJumpTarget1: The inspected jump must not have a label
attached, because the effective code changes for code jumping to this label if
removals are applied.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4169
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Sun, 13 Sep 2009 19:50:09 +0000 (19:50 +0000)]
Being loaded by my 'ProDOS Loader' needs to be classified as being loaded as BIN from an interpreter (and not as SYS). But the 'ProDOS Loader' zeros the system bitmap up to the system global page (this is what it's about) so additionally check page $03 protection which is zero when loaded as SYS but one when loaded by 'ProDOS Loader 1.4'.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4168
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 18:06:43 +0000 (18:06 +0000)]
labs() is also imaxabs().
git-svn-id: svn://svn.cc65.org/cc65/trunk@4167
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 14:36:16 +0000 (14:36 +0000)]
Fixed parsing a labeled-statement: A label is always part of a statement, it
is not itself one.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4166
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 13:39:27 +0000 (13:39 +0000)]
Sqeeze out two bytes of the code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4165
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 13:37:44 +0000 (13:37 +0000)]
Lynx changes by Karri Kaksonen.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4164
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 13:22:27 +0000 (13:22 +0000)]
Added another condition that allows us to remove pha/pla.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4163
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 13 Sep 2009 11:46:04 +0000 (11:46 +0000)]
Removed the ace target. It didn't have a linker config and was untested for
~10 years
git-svn-id: svn://svn.cc65.org/cc65/trunk@4162
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 12 Sep 2009 22:04:49 +0000 (22:04 +0000)]
Fixed a typo
git-svn-id: svn://svn.cc65.org/cc65/trunk@4161
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 12 Sep 2009 22:04:35 +0000 (22:04 +0000)]
Fixed a few inaccuracies the the description of the --codesize option.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4160
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Sat, 12 Sep 2009 20:55:20 +0000 (20:55 +0000)]
Hooking into the MLI call needs much more thoughts - and is currently not necessary...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4159
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 12 Sep 2009 20:12:48 +0000 (20:12 +0000)]
Search config files also in the builtin search directory for libraries and in
the directory defined in the CC65_LIB environment variable.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4158
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Sat, 12 Sep 2009 06:58:20 +0000 (06:58 +0000)]
Addon to 4155: Fixed error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4157
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sat, 12 Sep 2009 06:41:08 +0000 (06:41 +0000)]
Added a comment about the first entry being the default entry. Not sure if
this is true for GEOS.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4156
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Fri, 11 Sep 2009 19:54:29 +0000 (19:54 +0000)]
Much better approach for ProDOS 8 IO-buffer custom implementations - the first one was actually kind of stupid.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4155
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Fri, 11 Sep 2009 19:35:13 +0000 (19:35 +0000)]
Adjusted Apple2 targets to the new standard mouse driver paradigm.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4154
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 18:59:37 +0000 (18:59 +0000)]
Define a standard driver and mode for tgi graphics and use it in the sample
program. The standard driver and mode is the first one in the tgi_mode_table.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4153
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 18:47:33 +0000 (18:47 +0000)]
Separated tgi_load and tgi_load_driver.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4152
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 18:42:34 +0000 (18:42 +0000)]
Fixed a copy&paste error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4151
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 16:55:20 +0000 (16:55 +0000)]
Use mouse_stddrv instead of a platform dependent #define.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4150
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 16:51:21 +0000 (16:51 +0000)]
Added the mouse_stddrv variable for the C64 and C128.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4149
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 16:45:43 +0000 (16:45 +0000)]
Added a mouse_stddrv variable that contains the standard mouse driver for a
system.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4148
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 16:36:17 +0000 (16:36 +0000)]
Fixed a problem with load tracking in OptStackOps.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4147
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Fri, 11 Sep 2009 16:27:20 +0000 (16:27 +0000)]
Allow to run programs as ProDOS SYS files (beside BIN files). To do so detect at runtime if BASIC.SYSTEM is present by checking the "signature" of the last system bitmap byte.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4146
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 13:56:50 +0000 (13:56 +0000)]
Make use of the IRQ to swap view and draw pages when they aren't visible.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4145
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 11 Sep 2009 13:56:20 +0000 (13:56 +0000)]
Changes by Karri Kaksonen to implement interruptor support.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4144
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Thu, 10 Sep 2009 19:18:15 +0000 (19:18 +0000)]
Removed '_' prefix from textframe(xy) because this prefix for non-standard symbols isn't necessary if they are declared in non-standard include files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4143
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Thu, 10 Sep 2009 09:59:26 +0000 (09:59 +0000)]
ProDOS 8 requires an page-aligned 1kB IO-buffer for every open file. The implementation using posix_memalign() is universally correct but quite expensive. There I added support for overriding this implementation with maybe limited (i.e. to one open file) but cheaper custom implementations.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4142
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Thu, 10 Sep 2009 09:35:37 +0000 (09:35 +0000)]
Fixed typo.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4141
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Thu, 10 Sep 2009 09:04:05 +0000 (09:04 +0000)]
Added support for switching between 40/80 columns. As the Apple //e 80 column firmware features converting the current screen content on switching if was already active before the idea is to keep the 80 column firmware active and initialize it (which clears the screen) only if necessary.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4140
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 21:10:19 +0000 (21:10 +0000)]
Fixed an error in OptPtrLoad16.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4139
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 20:29:12 +0000 (20:29 +0000)]
Fixed several more problems like the one in Assignment() some time ago: An
expression that yields a constant value may have side effects, and the
expression code must not be removed in this case.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4138
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 20:08:21 +0000 (20:08 +0000)]
Fixed a problem similar to the one in Assignment() some time ago: An
expression that yields a constant value may have side effects, and the
expression code must not be removed in this case.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4137
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 19:49:30 +0000 (19:49 +0000)]
Use the new function MarkedExprWithCheck.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4136
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 19:48:22 +0000 (19:48 +0000)]
Allow to store start and end of generated code in the ExprDesc structure. New
function MarkedExprWithCheck.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4135
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 16:45:21 +0000 (16:45 +0000)]
Changed the prototype of videomode() to take and return an unsigned instead of an unsigned char.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4134
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 16:25:12 +0000 (16:25 +0000)]
Changed the prototype of videomode() to take and return an unsigned instead of
an unsigned char. Two more video mode constants as discussed on the list.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4133
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 16:23:59 +0000 (16:23 +0000)]
Fixed a typo in the docs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4132
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 8 Sep 2009 07:55:44 +0000 (07:55 +0000)]
Fixed flexible array struct members.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4131
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 7 Sep 2009 16:59:46 +0000 (16:59 +0000)]
Added initialization of bit-fields.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4130
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 7 Sep 2009 14:22:27 +0000 (14:22 +0000)]
A constant right side does not necessarily mean that no code is generated for
the right side. The expression may have had side effects. This error is also
found in several other places.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4129
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 7 Sep 2009 14:21:19 +0000 (14:21 +0000)]
Remove stack pointer check in RemoveCodeRange - the calling function has to
take care about that.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4128
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Mon, 7 Sep 2009 14:00:17 +0000 (14:00 +0000)]
Just presume alternate charset to be active on the //e - how shouldn't it if conio usage activates it.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4127
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 7 Sep 2009 13:21:04 +0000 (13:21 +0000)]
New function videomode() for the C128. Marked toggle_videomode as deprecated.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4126
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 6 Sep 2009 21:39:28 +0000 (21:39 +0000)]
Changed a comment line.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4125
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 6 Sep 2009 19:07:18 +0000 (19:07 +0000)]
Use xsprintf instead of sprintf.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4124
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 6 Sep 2009 16:51:08 +0000 (16:51 +0000)]
Use SymIsTypeDef and SymIsBitField instead of accessing Sym->Flags directly.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4123
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 6 Sep 2009 16:50:41 +0000 (16:50 +0000)]
New function SymIsBitField.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4122
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Sun, 6 Sep 2009 16:44:16 +0000 (16:44 +0000)]
Fixed an error: When initializing unions, only the first member can be
initialized.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4121
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Fri, 4 Sep 2009 21:32:41 +0000 (21:32 +0000)]
Adjusted to the changed default start address.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4120
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
ol.sc [Fri, 4 Sep 2009 21:28:16 +0000 (21:28 +0000)]
Minor reformatting.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4119
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 4 Sep 2009 20:57:23 +0000 (20:57 +0000)]
Fixed wrong code generation in g_leasp.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4118
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 4 Sep 2009 20:16:18 +0000 (20:16 +0000)]
Fix problem with OptPtrLoad1 - never insert before the deleted code, always
delete after! Otherwise labels will get wrong.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4117
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 4 Sep 2009 19:54:29 +0000 (19:54 +0000)]
Fixed another problem with OptStackOps: Load tracking will not work across
branches - if we find a label, just forget all information we had before.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4116
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 4 Sep 2009 15:44:48 +0000 (15:44 +0000)]
Fixed problems with OptPrecalc. It removed insns because it results were known
- but the insns generate a carry which may be needed later.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4115
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Fri, 4 Sep 2009 15:42:36 +0000 (15:42 +0000)]
Fixed a typo in a comment.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4114
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Thu, 3 Sep 2009 12:13:08 +0000 (12:13 +0000)]
Replace "lda (zp),y" by "lda (zp,x)" where possible and where it saves us
cycles and code bytes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4113
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Thu, 3 Sep 2009 11:58:11 +0000 (11:58 +0000)]
Replacement code for ule and ugt was wrong and did not cover values that were
equal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4112
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 20:57:39 +0000 (20:57 +0000)]
Added code replacements for several missing compare functions. Fixed a bug in
coptstop.c that popped up if transfer instructions were used to load a value
into X.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4111
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 14:41:37 +0000 (14:41 +0000)]
Terminate after printing the version number when -V is used.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4110
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 10:19:20 +0000 (10:19 +0000)]
Updated and clarified the coding hints.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4109
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 10:07:02 +0000 (10:07 +0000)]
Improved code generation, better tracking.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4108
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 10:06:39 +0000 (10:06 +0000)]
Fixed a problem with OptCmp3 that was in there for a while but is now
triggered because of the new subtraction code sequence.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4107
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 09:15:19 +0000 (09:15 +0000)]
Minor code improvement.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4106
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Tue, 1 Sep 2009 08:57:36 +0000 (08:57 +0000)]
Simplify code generated for the ?: operator when type conversion code for the
second operand is necessary. Instead of generating interleaved code with
several jumps, just move the code to the right place.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4105
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 20:37:54 +0000 (20:37 +0000)]
Remember more function infos in the Function struct.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4104
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 19:36:06 +0000 (19:36 +0000)]
Fixed a bug in Opt_tosaddax.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4103
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 18:18:50 +0000 (18:18 +0000)]
Simplify the code somewhat.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4102
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 18:02:44 +0000 (18:02 +0000)]
Make the AddOpLow and AddOpHigh functions usable with both, lhs and rhs
operands.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4101
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 17:17:18 +0000 (17:17 +0000)]
Print the SVN version number when -V or --version is used.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4100
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 17:15:59 +0000 (17:15 +0000)]
Fixed a few C99isms that prevented the sources to compile with Watcom-C.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4099
b7a2c559 -68d2-44c3-8de9-
860c34a00d81
uz [Mon, 31 Aug 2009 16:48:45 +0000 (16:48 +0000)]
Fixed a copy&paste error in a comment.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4098
b7a2c559 -68d2-44c3-8de9-
860c34a00d81