]> git.sur5r.net Git - cc65/log
cc65
15 years agointroduce STARTUP segment to Atari platform
cpg [Tue, 4 Aug 2009 20:04:41 +0000 (20:04 +0000)]
introduce STARTUP segment to Atari platform

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

15 years agoDon't allow to call subroutines that aren't actual functions.
uz [Tue, 4 Aug 2009 19:23:15 +0000 (19:23 +0000)]
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

15 years agoFixed an off-by-one bug
uz [Tue, 4 Aug 2009 19:22:15 +0000 (19:22 +0000)]
Fixed an off-by-one bug

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

15 years agoNew function IsLocalLabelName.
uz [Tue, 4 Aug 2009 19:12:34 +0000 (19:12 +0000)]
New function IsLocalLabelName.

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

15 years agoThere's no longer a need to link in the startup file, it's done my magic
uz [Fri, 31 Jul 2009 13:39:07 +0000 (13:39 +0000)]
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

15 years agoThere are no more startup object modules.
uz [Fri, 31 Jul 2009 12:56:36 +0000 (12:56 +0000)]
There are no more startup object modules.

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

15 years agoAdjust geos startup code to new compiler handling. Introduce __STARTUP__
uz [Fri, 31 Jul 2009 12:46:38 +0000 (12:46 +0000)]
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

15 years agoForce an import of the special symbol __STARTUP__ in the C compiler when
uz [Fri, 31 Jul 2009 12:05:42 +0000 (12:05 +0000)]
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

15 years agoInline shifts in g_asl as is already the case in g_scale.
uz [Thu, 30 Jul 2009 19:41:25 +0000 (19:41 +0000)]
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

15 years agoCalculate time in seconds, not ticks. Implement pager output for primes.
uz [Thu, 30 Jul 2009 19:25:59 +0000 (19:25 +0000)]
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

15 years agoFix problem with R3904: Chars on the lhs of opeq must still be accessed as
uz [Thu, 30 Jul 2009 15:15:13 +0000 (15:15 +0000)]
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

15 years agoFixed problems with R3977: While the solution was correct, the generated code
uz [Thu, 30 Jul 2009 14:45:50 +0000 (14:45 +0000)]
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

15 years agoAllow registers in sweet16 mode also to be specified as constant numbers
uz [Thu, 30 Jul 2009 13:05:41 +0000 (13:05 +0000)]
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

15 years agoCorrect sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti.
uz [Wed, 29 Jul 2009 14:37:58 +0000 (14:37 +0000)]
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

15 years agoThe "inc" target needed for the snapshot build script seems to have been lost.
uz [Tue, 28 Jul 2009 19:40:23 +0000 (19:40 +0000)]
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

15 years agoAdd a dummy return to fix a Watcom warning.
uz [Tue, 28 Jul 2009 19:36:44 +0000 (19:36 +0000)]
Add a dummy return to fix a Watcom warning.

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

15 years agoFixed a compatibility problem in TypeCmp: Subtracting pointers with different
uz [Tue, 28 Jul 2009 19:29:11 +0000 (19:29 +0000)]
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

15 years agoFixed a problem with function pointer conversion.
uz [Tue, 28 Jul 2009 19:21:38 +0000 (19:21 +0000)]
Fixed a problem with function pointer conversion.

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

15 years agoFixed an error: If an expression is loaded into the primary, a function must
uz [Tue, 28 Jul 2009 18:56:16 +0000 (18:56 +0000)]
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

15 years agoPrepared the code for referencing a symbol that forces the startup code to get
uz [Tue, 28 Jul 2009 18:55:23 +0000 (18:55 +0000)]
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

15 years agoRemoved setoserror as an external.
uz [Mon, 27 Jul 2009 18:48:03 +0000 (18:48 +0000)]
Removed setoserror as an external.

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

15 years agoAdded a systime implementation by Stefan Haubenthal with a few changes. The
uz [Mon, 27 Jul 2009 18:44:37 +0000 (18:44 +0000)]
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

15 years agoBe sure to read disk errors after sending the command on the command channel.
uz [Mon, 27 Jul 2009 18:42:37 +0000 (18:42 +0000)]
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

15 years agoMove common data and ex-/imports into an assembler include named time.inc.
uz [Mon, 27 Jul 2009 17:59:27 +0000 (17:59 +0000)]
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

15 years agoAdd some code that avoids outputing a forward label in the same line as a
uz [Mon, 6 Jul 2009 20:33:06 +0000 (20:33 +0000)]
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

15 years agoSmall documentation update by Stefan Haubenthal.
uz [Mon, 6 Jul 2009 19:59:29 +0000 (19:59 +0000)]
Small documentation update by Stefan Haubenthal.

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

15 years agoFixed a small error.
uz [Thu, 2 Jul 2009 14:20:38 +0000 (14:20 +0000)]
Fixed a small error.

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

15 years agoMinor update regarding the Apple ][.
ol.sc [Fri, 26 Jun 2009 21:23:20 +0000 (21:23 +0000)]
Minor update regarding the Apple ][.

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

15 years agoFixed C&P issue.
ol.sc [Sun, 21 Jun 2009 08:41:24 +0000 (08:41 +0000)]
Fixed C&P issue.

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

15 years agoAdded some more details on the specifics of the Apple2 C-library implementation.
ol.sc [Thu, 18 Jun 2009 21:58:00 +0000 (21:58 +0000)]
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

15 years agoSupport for the .BANKBYTES, .LOBYTES and .HIBYTES pseudo functions contributed
uz [Mon, 18 May 2009 16:11:34 +0000 (16:11 +0000)]
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

15 years agoRe-added cbm_dir which was acidently removed.
uz [Thu, 7 May 2009 18:31:57 +0000 (18:31 +0000)]
Re-added cbm_dir which was acidently removed.

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

15 years agouse RUNAD (from atari.inc) instead of /bin/bash2E0
cpg [Wed, 29 Apr 2009 21:37:10 +0000 (21:37 +0000)]
use RUNAD (from atari.inc) instead of /bin/bash2E0

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

15 years agoadd Atari MultiJoy driver from Stefan A. Haubenthal
cpg [Sat, 11 Apr 2009 18:10:44 +0000 (18:10 +0000)]
add Atari MultiJoy driver from Stefan A. Haubenthal

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

15 years agoNew functions LIWarning and LIError.
uz [Sun, 8 Mar 2009 14:54:53 +0000 (14:54 +0000)]
New functions LIWarning and LIError.

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

15 years agoAdd a paragraph about which identifiers are valid for labels.
uz [Fri, 6 Mar 2009 10:10:24 +0000 (10:10 +0000)]
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

15 years agoFixed a typo in the makefile. HTML generatiom was broken.
uz [Fri, 6 Mar 2009 09:58:13 +0000 (09:58 +0000)]
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

15 years ago"S" is a keyword in 65816 mode only.
uz [Fri, 6 Mar 2009 09:56:22 +0000 (09:56 +0000)]
"S" is a keyword in 65816 mode only.

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

15 years agoFixed asm code to source line relation in switch statements. The switch code
uz [Mon, 23 Feb 2009 22:19:23 +0000 (22:19 +0000)]
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

15 years agoFixed source output in generated assembly when -T is used.
uz [Mon, 23 Feb 2009 22:11:18 +0000 (22:11 +0000)]
Fixed source output in generated assembly when -T is used.

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

15 years agoAdded a separate output module that is used to manage the output file.
uz [Mon, 23 Feb 2009 21:25:59 +0000 (21:25 +0000)]
Added a separate output module that is used to manage the output file.

Fixed the -E switch: Output was always sent to stdout and an empty assembler
output file was generated. Now the output is sent to either <inputstem>.i or
the file named in the -o option.

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

15 years agoFixed problems with the startup code (Greg King): Interrupts must be hooked
uz [Sun, 22 Feb 2009 18:23:31 +0000 (18:23 +0000)]
Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.

See also R3897 and R3951 where this change was done for other platforms.

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

15 years agoAdded support for chained interrupt handlers installed with .condes type 2.
uz [Sun, 22 Feb 2009 18:16:13 +0000 (18:16 +0000)]
Added support for chained interrupt handlers installed with .condes type 2.

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

15 years agoRemoved an unsed import.
uz [Sun, 22 Feb 2009 18:14:54 +0000 (18:14 +0000)]
Removed an unsed import.

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

15 years agoFixed problems with the startup code (Greg King): Interrupts must be hooked
uz [Sun, 22 Feb 2009 18:10:01 +0000 (18:10 +0000)]
Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.

See also R3897 where this change was done for other platforms.

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

15 years agoMove the irqcount variable from BSS into DATA, since it is used by the
uz [Sun, 22 Feb 2009 18:04:25 +0000 (18:04 +0000)]
Move the irqcount variable from BSS into DATA, since it is used by the
interrupt handler, which is installed *before* zerobss is called.

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

15 years agoinitmainargs routine by Stefan Haubenthal.
uz [Sun, 22 Feb 2009 17:51:12 +0000 (17:51 +0000)]
initmainargs routine by Stefan Haubenthal.

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

15 years agoWhen generating forward references to functions, use the default code address
uz [Sun, 22 Feb 2009 16:38:07 +0000 (16:38 +0000)]
When generating forward references to functions, use the default code address
size.

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

15 years agoDocumented rename(), moved remove to stdio.h (where it belongs), fixed the
uz [Sun, 22 Feb 2009 16:08:30 +0000 (16:08 +0000)]
Documented rename(), moved remove to stdio.h (where it belongs), fixed the
output for a few existing examples (needs <verb>/</verb>).

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

15 years agoTest program for the rename() function. Supplied by Greg King - thanks!
uz [Sun, 22 Feb 2009 15:42:40 +0000 (15:42 +0000)]
Test program for the rename() function. Supplied by Greg King - thanks!

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

15 years agowritefndiskcmd gets its arguments in ptr1 and Y.
uz [Sun, 22 Feb 2009 15:40:06 +0000 (15:40 +0000)]
writefndiskcmd gets its arguments in ptr1 and Y.

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

15 years agoA few minor 65C02 optimizations.
uz [Sun, 22 Feb 2009 15:39:19 +0000 (15:39 +0000)]
A few minor 65C02 optimizations.

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

15 years agoMust open the command channel before writing to it.
uz [Sun, 22 Feb 2009 14:43:02 +0000 (14:43 +0000)]
Must open the command channel before writing to it.

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

15 years agoComment additions and changes.
uz [Sun, 22 Feb 2009 14:42:32 +0000 (14:42 +0000)]
Comment additions and changes.

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

15 years agoAdded missing .export statements.
uz [Sun, 22 Feb 2009 14:11:34 +0000 (14:11 +0000)]
Added missing .export statements.

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

15 years agoAdded a new sysrename module to make the high level function rename work. Code
uz [Sun, 22 Feb 2009 14:06:12 +0000 (14:06 +0000)]
Added a new sysrename module to make the high level function rename work. Code
is untested!

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

15 years agoMoved some code from scratch.s into a new subroutine named writefndiskcmd in
uz [Sun, 22 Feb 2009 14:02:52 +0000 (14:02 +0000)]
Moved some code from scratch.s into a new subroutine named writefndiskcmd in
the diskcmd.s module.

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

15 years agofnparse will return zero flag according to error (ZF=1 means no error).
uz [Sun, 22 Feb 2009 13:54:03 +0000 (13:54 +0000)]
fnparse will return zero flag according to error (ZF=1 means no error).

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

15 years agoCheck for division by/modulo by zero when parsing the /= and %= operators.
uz [Tue, 17 Feb 2009 21:09:59 +0000 (21:09 +0000)]
Check for division by/modulo by zero when parsing the /= and %= operators.

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

15 years agoSmall change to avoid endless error loops (aborted by the maximum error count)
uz [Tue, 17 Feb 2009 20:56:13 +0000 (20:56 +0000)]
Small change to avoid endless error loops (aborted by the maximum error count)
if an unexpected token is encountered in Primary().

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

15 years agoA few minor fixes by Stefan Haubenthal.
uz [Sun, 15 Feb 2009 21:54:03 +0000 (21:54 +0000)]
A few minor fixes by Stefan Haubenthal.

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

15 years agoUse new syntax for call to linuxdoc.
uz [Sun, 15 Feb 2009 16:57:06 +0000 (16:57 +0000)]
Use new syntax for call to linuxdoc.

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

15 years agoFixed a few problems with the docs as suggested by Spiro Trikaliotis resp.
uz [Sun, 15 Feb 2009 16:54:58 +0000 (16:54 +0000)]
Fixed a few problems with the docs as suggested by Spiro Trikaliotis resp.
Greg King.

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

15 years agoAdded a link to the o65 specification by Andre Fachat.
uz [Sun, 15 Feb 2009 15:23:32 +0000 (15:23 +0000)]
Added a link to the o65 specification by Andre Fachat.

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

15 years agoFixed a typo.
uz [Sun, 15 Feb 2009 15:15:19 +0000 (15:15 +0000)]
Fixed a typo.

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

15 years agoSupport for the Plus/4 by john "graham" selck.
uz [Wed, 11 Feb 2009 17:37:18 +0000 (17:37 +0000)]
Support for the Plus/4 by john "graham" selck.

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

15 years agoUse named constants from ctype.inc instead of hard coded numeric values.
uz [Tue, 10 Feb 2009 22:11:56 +0000 (22:11 +0000)]
Use named constants from ctype.inc instead of hard coded numeric values.

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

15 years agoRemoved an unused import.
uz [Tue, 10 Feb 2009 22:08:43 +0000 (22:08 +0000)]
Removed an unused import.

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

15 years agoCheck for and flag address size modifiers that are invalid for the choosen CPU.
uz [Tue, 10 Feb 2009 21:10:50 +0000 (21:10 +0000)]
Check for and flag address size modifiers that are invalid for the choosen CPU.

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

15 years agoinitial check-in
cpg [Tue, 10 Feb 2009 19:16:52 +0000 (19:16 +0000)]
initial check-in

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

15 years agoadd strnicmp/strncasecmp
cpg [Tue, 10 Feb 2009 19:16:22 +0000 (19:16 +0000)]
add strnicmp/strncasecmp

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

15 years agoadd strnicmp.o
cpg [Tue, 10 Feb 2009 19:15:51 +0000 (19:15 +0000)]
add strnicmp.o

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

15 years agoinitial check-in
cpg [Tue, 10 Feb 2009 19:15:21 +0000 (19:15 +0000)]
initial check-in

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

15 years agoMakefile cleanup. Among other things, allow use of the --as-needed linker flag
uz [Sun, 8 Feb 2009 17:19:45 +0000 (17:19 +0000)]
Makefile cleanup. Among other things, allow use of the --as-needed linker flag
by rearranging arguments for the linker.

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

15 years agofix typo
cpg [Fri, 30 Jan 2009 19:36:24 +0000 (19:36 +0000)]
fix typo

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

15 years agosmall optimization
cpg [Fri, 30 Jan 2009 19:17:14 +0000 (19:17 +0000)]
small optimization

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

15 years agoAdded special error messages for Groepaz.
uz [Fri, 30 Jan 2009 16:30:27 +0000 (16:30 +0000)]
Added special error messages for Groepaz.

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

15 years agonow it really works (tested w/MYDOS only)
cpg [Wed, 28 Jan 2009 22:01:28 +0000 (22:01 +0000)]
now it really works (tested w/MYDOS only)

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

15 years agofix comments
cpg [Wed, 28 Jan 2009 21:54:02 +0000 (21:54 +0000)]
fix comments

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

15 years agoAnother fix for the SB_SetIndex macro.
uz [Mon, 26 Jan 2009 08:28:29 +0000 (08:28 +0000)]
Another fix for the SB_SetIndex macro.

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

15 years agoFixed an error in the SB_SetIndex macro.
uz [Mon, 26 Jan 2009 08:08:28 +0000 (08:08 +0000)]
Fixed an error in the SB_SetIndex macro.

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

15 years agofix typo
cpg [Sun, 25 Jan 2009 21:22:23 +0000 (21:22 +0000)]
fix typo

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

15 years agoFunction key support be Stephan Haubenthal.
uz [Sat, 24 Jan 2009 16:36:34 +0000 (16:36 +0000)]
Function key support be Stephan Haubenthal.

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

15 years agoFunction key support be Stephan Haubenthal.
uz [Sat, 24 Jan 2009 16:35:42 +0000 (16:35 +0000)]
Function key support be Stephan Haubenthal.

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

15 years agoFixed a problem with recursive macro expansions. They didn't work if the same
uz [Sat, 24 Jan 2009 16:31:18 +0000 (16:31 +0000)]
Fixed a problem with recursive macro expansions. They didn't work if the same
macro was involved more than one time.

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

15 years agoAdded a new SetIndex() function/macro.
uz [Sat, 24 Jan 2009 16:26:48 +0000 (16:26 +0000)]
Added a new SetIndex() function/macro.

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

15 years agoRewrite va_copy.h - the check for a C89 compiler wasn't a really good idea,
uz [Sat, 24 Jan 2009 16:26:32 +0000 (16:26 +0000)]
Rewrite va_copy.h - the check for a C89 compiler wasn't a really good idea,
since many compilers are broken in this respect.

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

15 years agoAvoid spurious subsequent errors if an include file wasn't found.
uz [Sun, 18 Jan 2009 15:07:55 +0000 (15:07 +0000)]
Avoid spurious subsequent errors if an include file wasn't found.

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

15 years agoFixed an optimizer problem: A branch into a list of at least two branches
uz [Mon, 12 Jan 2009 19:48:28 +0000 (19:48 +0000)]
Fixed an optimizer problem: A branch into a list of at least two branches
pointing to themselves caused the optimizer to loop forever.

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

15 years agoCode optimizations (by Stefan Haubenthal and me).
uz [Tue, 6 Jan 2009 17:49:29 +0000 (17:49 +0000)]
Code optimizations (by Stefan Haubenthal and me).

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

15 years agoThe NES must have the joystick driver linked in. Change by Stefan Haubenthal.
uz [Tue, 6 Jan 2009 17:44:20 +0000 (17:44 +0000)]
The NES must have the joystick driver linked in. Change by Stefan Haubenthal.

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

15 years agoFixed problems with casts, where larger values weren't truncated when casting
uz [Sun, 28 Dec 2008 16:25:03 +0000 (16:25 +0000)]
Fixed problems with casts, where larger values weren't truncated when casting
down to char size.

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

15 years agoAdd new --tabsize option to usage/help output.
uz [Tue, 11 Nov 2008 21:23:15 +0000 (21:23 +0000)]
Add new --tabsize option to usage/help output.

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

15 years agoNew option --tabsize.
uz [Tue, 11 Nov 2008 21:21:10 +0000 (21:21 +0000)]
New option --tabsize.

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

15 years agoBe more tolerant with dos/windows line endings.
uz [Tue, 11 Nov 2008 21:16:51 +0000 (21:16 +0000)]
Be more tolerant with dos/windows line endings.

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

16 years agoFixed the macro versions of several inline functions.
uz [Sun, 31 Aug 2008 18:31:18 +0000 (18:31 +0000)]
Fixed the macro versions of several inline functions.

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

16 years agoMore changes to support address size qualifiers.
uz [Sun, 31 Aug 2008 18:24:33 +0000 (18:24 +0000)]
More changes to support address size qualifiers.

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

16 years agoTest for pointer must use IsTypePtr not a direct compare. The later may (and
uz [Sun, 31 Aug 2008 18:23:58 +0000 (18:23 +0000)]
Test for pointer must use IsTypePtr not a direct compare. The later may (and
does) fail because of qualifiers.

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

16 years agoFixed problems with the startup code (Greg King): Interrupts must be hooked
uz [Sun, 31 Aug 2008 18:22:51 +0000 (18:22 +0000)]
Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.

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

16 years agoReverted a change that should not have been commited.
uz [Sun, 31 Aug 2008 18:21:17 +0000 (18:21 +0000)]
Reverted a change that should not have been commited.

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