uz
0b7b9354dc
Don't generate short code for the tosxxx functions when X is zero or similar.
...
Let the optimizer do it. This reduces the number of possible patterns that
must be detected by the optimizer. Add tosicmp0 as a shortcut function.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4006 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 22:10:04 +00:00
uz
6a26b6e3b4
Added tosicmp0, a special entry point that clears the X register.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4005 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 22:08:28 +00:00
uz
fdfa1678d4
Tell the compiler more about the runtime library functions.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4004 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 20:21:47 +00:00
uz
4a5ceb13c7
Removed debug code
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4003 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 18:32:11 +00:00
uz
50b410eb32
Do size improvements always if they have no impact on speed.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4002 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 18:23:29 +00:00
uz
f374e746af
Improvements in array index code.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4001 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 17:28:32 +00:00
uz
a9b2226956
Moved part of codeopt into coptptrload for better modularization.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4000 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 17:09:24 +00:00
uz
3ea6be8f72
Fix definition for CIA (Stefan Haubenthal).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3999 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-06 20:27:19 +00:00
uz
f8d3fccc01
get_tv() implementation for the CBM610 by Stefan Haubenthal.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3998 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-06 20:24:41 +00:00
uz
f5a2022f32
Remove the top-level Makefile's attempt to install the no-longer-external
...
start-up files. Let the makefile work with command-shells that don't
recognize the "test" command's "-e" operator (the Minix OS has that shell).
Patch by maintainer Greg King.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3997 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-05 14:31:33 +00:00
uz
cb1870de74
Fixed an off-by-one error (reported by Greg King - thanks).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3996 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-05 14:29:30 +00:00
cpg
9cafacaf6d
introduce STARTUP segment to Atari platform
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3995 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-04 20:04:41 +00:00
uz
3ce7717bd2
Don't allow to call subroutines that aren't actual functions.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3994 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-04 19:23:15 +00:00
uz
70d2d9e50f
Fixed an off-by-one bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3993 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-04 19:22:15 +00:00
uz
ca73116a03
New function IsLocalLabelName.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3992 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-04 19:12:34 +00:00
uz
3d95c9453f
There's no longer a need to link in the startup file, it's done my magic
...
instead.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3991 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 13:39:07 +00:00
uz
4a6a0357e3
There are no more startup object modules.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3990 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 12:56:36 +00:00
uz
7ecf7a7e58
Adjust geos startup code to new compiler handling. Introduce __STARTUP__
...
symbol, remove geos.o.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3989 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 12:46:38 +00:00
uz
8216bf1d6a
Force an import of the special symbol __STARTUP__ in the C compiler when
...
main() is encountered. Define this symbol in the startup code. This will
automatically force linking of the startup code which can then reside inside
the standard library as any other object file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3988 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 12:05:42 +00:00
uz
66391bfc25
Inline shifts in g_asl as is already the case in g_scale.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3987 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-30 19:41:25 +00:00
uz
043acb1d98
Calculate time in seconds, not ticks. Implement pager output for primes.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3986 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-30 19:25:59 +00:00
uz
a3eed9016f
Fix problem with R3904: Chars on the lhs of opeq must still be accessed as
...
such.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3985 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-30 15:15:13 +00:00
uz
37157a31a8
Fixed problems with R3977: While the solution was correct, the generated code
...
is bad, since information is lost when converting functions and arrays to
pointers and cannot be regained easily. So I've reverted the change and fixed
the problem in a less general manner.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3984 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-30 14:45:50 +00:00
uz
a4a1c729c8
Allow registers in sweet16 mode also to be specified as constant numbers
...
instead of Rx. Suggestion and sample code by Gabriele Galeotti.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3983 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-30 13:05:41 +00:00
uz
e1866ed9f8
Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3982 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-29 14:37:58 +00:00
uz
f62b7a564e
The "inc" target needed for the snapshot build script seems to have been lost.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3981 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 19:40:23 +00:00
uz
778f79c436
Add a dummy return to fix a Watcom warning.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3980 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 19:36:44 +00:00
uz
5ee49abd12
Fixed a compatibility problem in TypeCmp: Subtracting pointers with different
...
signedness is not allowed.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3979 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 19:29:11 +00:00
uz
fb9c097981
Fixed a problem with function pointer conversion.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3978 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 19:21:38 +00:00
uz
32348f5778
Fixed an error: If an expression is loaded into the primary, a function must
...
be converted to pointer-to-function and an array to pointer-to-member resp.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3977 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 18:56:16 +00:00
uz
dff0e86458
Prepared the code for referencing a symbol that forces the startup code to get
...
linked in.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3976 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-28 18:55:23 +00:00
uz
81464a1214
Removed setoserror as an external.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3975 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 18:48:03 +00:00
uz
931add050e
Added a systime implementation by Stefan Haubenthal with a few changes. The
...
routine reads the TOD clock of CIA1 on the C64 and C128. Since systime was a
dummy routine common for all CBMs before, this change adds an individual dummy
routine for all other CBM systems. CBM510/610 do also have a TOD clock, so a
similar function as in the C64 could be used ...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3974 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 18:44:37 +00:00
uz
087ae8173a
Be sure to read disk errors after sending the command on the command channel.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3973 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 18:42:37 +00:00
uz
2363a6f5c7
Move common data and ex-/imports into an assembler include named time.inc.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3972 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 17:59:27 +00:00
uz
5b0323771a
Add some code that avoids outputing a forward label in the same line as a
...
normal label. It works but looks bad.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3971 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-06 20:33:06 +00:00
uz
84cf638450
Small documentation update by Stefan Haubenthal.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3970 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-06 19:59:29 +00:00
uz
d7ff0daac3
Fixed a small error.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3969 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-02 14:20:38 +00:00
ol.sc
4c8839dfe6
Minor update regarding the Apple ][.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3968 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-06-26 21:23:20 +00:00
ol.sc
56c12fd66f
Fixed C&P issue.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3967 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-06-21 08:41:24 +00:00
ol.sc
f1039974a6
Added some more details on the specifics of the Apple2 C-library implementation.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3966 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-06-18 21:58:00 +00:00
uz
8e8993de7e
Support for the .BANKBYTES, .LOBYTES and .HIBYTES pseudo functions contributed
...
by Kevin Schuetz <scrapdog@runbox.com>.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3965 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-05-18 16:11:34 +00:00
uz
37e08cac59
Re-added cbm_dir which was acidently removed.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3964 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-05-07 18:31:57 +00:00
cpg
2f39754838
use RUNAD (from atari.inc) instead of /bin/bash2E0
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3963 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-04-29 21:37:10 +00:00
cpg
482b3da7d8
add Atari MultiJoy driver from Stefan A. Haubenthal
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3962 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-04-11 18:10:44 +00:00
uz
ffa8e7be82
New functions LIWarning and LIError.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3961 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-03-08 14:54:53 +00:00
uz
fa417d0682
Add a paragraph about which identifiers are valid for labels.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3960 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-03-06 10:10:24 +00:00
uz
2575fd1e16
Fixed a typo in the makefile. HTML generatiom was broken.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3959 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-03-06 09:58:13 +00:00
uz
b607a61866
"S" is a keyword in 65816 mode only.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3958 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-03-06 09:56:22 +00:00
uz
60f525346f
Fixed asm code to source line relation in switch statements. The switch code
...
was incorrectly attributed to the line following the switch statement.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3957 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-23 22:19:23 +00:00