9d00253227Additional linker configs for the Apple by Oliver Schmidt.
uz
2009-09-19 16:14:46 +00:00
08f176c5aaRemoved the - now unused - empty builtin configuration (was used for the ace target before).
uz
2009-09-18 19:13:59 +00:00
9a4ec37b40Change search paths for the linker.
uz
2009-09-18 19:00:24 +00:00
beef3a3d85Prepared the spec file for version 2.13.0. Additional config files will no go to /usr/lib/cc65/cfg/.
uz
2009-09-18 18:14:34 +00:00
6019580fb6Removed unused code.
uz
2009-09-18 17:42:44 +00:00
80fc3a0b48Replaced 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.
uz
2009-09-18 17:39:23 +00:00
689d06929cFixed an error in the makefile. strtoimax and strtoumax were in the wrong list.
uz
2009-09-18 17:23:48 +00:00
050c56211aRenamed some additional (not builtin) linker configs.
uz
2009-09-18 17:06:26 +00:00
dca7cfd249Removed the (unused and probably non-working) config for OS/A65.
uz
2009-09-18 17:04:20 +00:00
d0e9f0f987Added a missing paren.
uz
2009-09-18 15:09:07 +00:00
b5db4cd5faAdded wide char literals, but treat them identical as normal strings.
uz
2009-09-18 14:28:52 +00:00
65ca052303Make wchar_t a char instead of a short.
uz
2009-09-18 07:38:00 +00:00
cc12a5a838inttypes.h is an ISO C standard include file.
uz
2009-09-17 19:31:47 +00:00
75068a6528New strtoimax and strtoumax standard functions as aliases for strtol/strtoul.
uz
2009-09-17 18:37:42 +00:00
3a3eaf99cbLynx changes by Karri Kaksonen.
uz
2009-09-17 09:32:05 +00:00
5e55e1c651Added a (currently untested) strtoul implementation. strtol and strtoul should probably get merged somehow, because they share quite some code.
uz
2009-09-15 21:45:25 +00:00
2f2bced531Shrink atoi by using negeax instead of inlined code.
uz
2009-09-15 21:25:44 +00:00
96637a8c35Make system() fastcall like most other library functions.
uz
2009-09-15 21:01:20 +00:00
e5996090f7Added an implementation of strtol (stdlib.h).
uz
2009-09-15 20:56:08 +00:00
c6c3fc4738Testcode for strtol and atoi.
uz
2009-09-15 20:47:03 +00:00
bbad4433ccAdded declarations for strtol and strtoul.
uz
2009-09-15 20:46:38 +00:00
52a368adc1Improved the code that checks for memory accesses. The old code didn't detect certain accesses.
uz
2009-09-14 22:02:48 +00:00
98b7e9f6daAdded tgi_load_driver.s to files to be ignored.
ol.sc
2009-09-14 20:13:52 +00:00
0c161a6cddNow 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.
ol.sc
2009-09-14 19:58:06 +00:00
29cea09e0dRemoved debug output
uz
2009-09-14 19:56:47 +00:00
d451248437Fixed another problem with OptJumpTarget1, that was mostly prevented from being triggered by other optimizations, which removed or changed the trigger code.
uz
2009-09-14 19:54:50 +00:00
254e1169f2Fixed 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.
uz
2009-09-14 18:36:38 +00:00
b7df1ed5d4Being 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'.
ol.sc
2009-09-13 19:50:09 +00:00
4b84d95891labs() is also imaxabs().
uz
2009-09-13 18:06:43 +00:00
32e2eb3fadFixed parsing a labeled-statement: A label is always part of a statement, it is not itself one.
uz
2009-09-13 14:36:16 +00:00
fe652c8206Sqeeze out two bytes of the code.
uz
2009-09-13 13:39:27 +00:00
c9de0e6841Lynx changes by Karri Kaksonen.
uz
2009-09-13 13:37:44 +00:00
e035323ab4Added another condition that allows us to remove pha/pla.
uz
2009-09-13 13:22:27 +00:00
785d8ebb43Removed the ace target. It didn't have a linker config and was untested for ~10 years
uz
2009-09-13 11:46:04 +00:00
effa1f4864Fixed a typo
uz
2009-09-12 22:04:49 +00:00
4ee6bf6f2cFixed a few inaccuracies the the description of the --codesize option.
uz
2009-09-12 22:04:35 +00:00
c271f18d00Hooking into the MLI call needs much more thoughts - and is currently not necessary...
ol.sc
2009-09-12 20:55:20 +00:00
df22cbf925Search config files also in the builtin search directory for libraries and in the directory defined in the CC65_LIB environment variable.
uz
2009-09-12 20:12:48 +00:00
2b98ab38f7Addon to 4155: Fixed error.
ol.sc
2009-09-12 06:58:20 +00:00
d660356ff7Added a comment about the first entry being the default entry. Not sure if this is true for GEOS.
uz
2009-09-12 06:41:08 +00:00
736db8789eMuch better approach for ProDOS 8 IO-buffer custom implementations - the first one was actually kind of stupid.
ol.sc
2009-09-11 19:54:29 +00:00
c8e1d7e0d2Adjusted Apple2 targets to the new standard mouse driver paradigm.
ol.sc
2009-09-11 19:35:13 +00:00
7de61e351cDefine 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.
uz
2009-09-11 18:59:37 +00:00
569b8d0e77Separated tgi_load and tgi_load_driver.
uz
2009-09-11 18:47:33 +00:00
4ed9b6facfFixed a copy&paste error.
uz
2009-09-11 18:42:34 +00:00
8870eda779Use mouse_stddrv instead of a platform dependent #define.
uz
2009-09-11 16:55:20 +00:00
7c2823e780Added the mouse_stddrv variable for the C64 and C128.
uz
2009-09-11 16:51:21 +00:00
d74f9ab396Added a mouse_stddrv variable that contains the standard mouse driver for a system.
uz
2009-09-11 16:45:43 +00:00
fa3a7930d7Fixed a problem with load tracking in OptStackOps.
uz
2009-09-11 16:36:17 +00:00
aeccd3a776Allow 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.
ol.sc
2009-09-11 16:27:20 +00:00
d9cdca75b6Make use of the IRQ to swap view and draw pages when they aren't visible.
uz
2009-09-11 13:56:50 +00:00
d95321f489Changes by Karri Kaksonen to implement interruptor support.
uz
2009-09-11 13:56:20 +00:00
773e05b5f3Removed '_' prefix from textframe(xy) because this prefix for non-standard symbols isn't necessary if they are declared in non-standard include files.
ol.sc
2009-09-10 19:18:15 +00:00
d91fe6b877ProDOS 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.
ol.sc
2009-09-10 09:59:26 +00:00
648a1b5427Added 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.
ol.sc
2009-09-10 09:04:05 +00:00
079358c3c1Fixed an error in OptPtrLoad16.
uz
2009-09-08 21:10:19 +00:00
e68332a10bFixed 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.
uz
2009-09-08 20:29:12 +00:00
2d3b0f1146Fixed 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.
uz
2009-09-08 20:08:21 +00:00
84e288f21cUse the new function MarkedExprWithCheck.
uz
2009-09-08 19:49:30 +00:00
0c20177fceAllow to store start and end of generated code in the ExprDesc structure. New function MarkedExprWithCheck.
uz
2009-09-08 19:48:22 +00:00
7d60d32aeeChanged the prototype of videomode() to take and return an unsigned instead of an unsigned char.
uz
2009-09-08 16:45:21 +00:00
931b6418bfChanged 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.
uz
2009-09-08 16:25:12 +00:00
6c87aa64beFixed a typo in the docs.
uz
2009-09-08 16:23:59 +00:00
331803126fFixed flexible array struct members.
uz
2009-09-08 07:55:44 +00:00
9f7ca16001Added initialization of bit-fields.
uz
2009-09-07 16:59:46 +00:00
f5ca779b9bA 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.
uz
2009-09-07 14:22:27 +00:00
b2d30c3283Remove stack pointer check in RemoveCodeRange - the calling function has to take care about that.
uz
2009-09-07 14:21:19 +00:00
96b731dd96Just presume alternate charset to be active on the //e - how shouldn't it if conio usage activates it.
ol.sc
2009-09-07 14:00:17 +00:00
74bfd6ee31New function videomode() for the C128. Marked toggle_videomode as deprecated.
uz
2009-09-07 13:21:04 +00:00
90c731d1e9Changed a comment line.
uz
2009-09-06 21:39:28 +00:00
f50520dffeUse xsprintf instead of sprintf.
uz
2009-09-06 19:07:18 +00:00
94a2223443Use SymIsTypeDef and SymIsBitField instead of accessing Sym->Flags directly.
uz
2009-09-06 16:51:08 +00:00
cc229ce7baNew function SymIsBitField.
uz
2009-09-06 16:50:41 +00:00
2402ef005eFixed an error: When initializing unions, only the first member can be initialized.
uz
2009-09-06 16:44:16 +00:00
78a7af13e6Adjusted to the changed default start address.
ol.sc
2009-09-04 21:32:41 +00:00
38ff6818fcFixed wrong code generation in g_leasp.
uz
2009-09-04 20:57:23 +00:00
fa2064ae3bFix problem with OptPtrLoad1 - never insert before the deleted code, always delete after! Otherwise labels will get wrong.
uz
2009-09-04 20:16:18 +00:00
18d865e609Fixed another problem with OptStackOps: Load tracking will not work across branches - if we find a label, just forget all information we had before.
uz
2009-09-04 19:54:29 +00:00
f6c589bf8eFixed problems with OptPrecalc. It removed insns because it results were known - but the insns generate a carry which may be needed later.
uz
2009-09-04 15:44:48 +00:00
67d64e67d5Fixed a typo in a comment.
uz
2009-09-04 15:42:36 +00:00
e1832b2e57Replace "lda (zp),y" by "lda (zp,x)" where possible and where it saves us cycles and code bytes.
uz
2009-09-03 12:13:08 +00:00
d85e6f9124Replacement code for ule and ugt was wrong and did not cover values that were equal.
uz
2009-09-03 11:58:11 +00:00
7cd92c82faAdded 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.
uz
2009-09-01 20:57:39 +00:00
7c613f7a83Terminate after printing the version number when -V is used.
uz
2009-09-01 14:41:37 +00:00
cc3c3e5f5cUpdated and clarified the coding hints.
uz
2009-09-01 10:19:20 +00:00
e9eb9eb77cImproved code generation, better tracking.
uz
2009-09-01 10:07:02 +00:00
cdc3afa6efFixed a problem with OptCmp3 that was in there for a while but is now triggered because of the new subtraction code sequence.
uz
2009-09-01 10:06:39 +00:00
7c4240fe69Minor code improvement.
uz
2009-09-01 09:15:19 +00:00
944057238eSimplify 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.
uz
2009-09-01 08:57:36 +00:00
84710f7227Remember more function infos in the Function struct.
uz
2009-08-31 20:37:54 +00:00
0c08f65872Fixed a bug in Opt_tosaddax.
uz
2009-08-31 19:36:06 +00:00
c942568af9Simplify the code somewhat.
uz
2009-08-31 18:18:50 +00:00
30f25ae12dMake the AddOpLow and AddOpHigh functions usable with both, lhs and rhs operands.
uz
2009-08-31 18:02:44 +00:00
b829bda8cbPrint the SVN version number when -V or --version is used.
uz
2009-08-31 17:17:18 +00:00
b3f3b21f80Fixed a few C99isms that prevented the sources to compile with Watcom-C.
uz
2009-08-31 17:15:59 +00:00
514775cbdfFixed a copy&paste error in a comment.
uz
2009-08-31 16:48:45 +00:00
7983009e06Improved code for bit fields.
uz
2009-08-31 15:11:32 +00:00
dc678e8dcbImproved the code generated for bit-fields.
uz
2009-08-31 14:59:49 +00:00