]> git.sur5r.net Git - cc65/log
cc65
8 years agouse 'plot' instead of 'PLOT' 177/head
mrdudz [Sun, 20 Sep 2015 10:18:41 +0000 (12:18 +0200)]
use 'plot' instead of 'PLOT'

8 years agoadded interruptor support
mrdudz [Sat, 19 Sep 2015 13:55:43 +0000 (15:55 +0200)]
added interruptor support

8 years agofixed more flaws found by greg :)
mrdudz [Sat, 19 Sep 2015 13:37:39 +0000 (15:37 +0200)]
fixed more flaws found by greg :)

8 years agofixed VDC register assignments
mrdudz [Mon, 7 Sep 2015 10:55:36 +0000 (12:55 +0200)]
fixed VDC register assignments

8 years agofix gregs complaints :)
mrdudz [Fri, 4 Sep 2015 12:14:17 +0000 (14:14 +0200)]
fix gregs complaints :)

8 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Fri, 4 Sep 2015 11:40:52 +0000 (13:40 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

8 years agoupdated
mrdudz [Fri, 4 Sep 2015 11:38:17 +0000 (13:38 +0200)]
updated

8 years agofixed style issues
mrdudz [Thu, 3 Sep 2015 11:09:18 +0000 (13:09 +0200)]
fixed style issues

8 years agoMerge pull request #203 from greg-king5/multi-comments
Oliver Schmidt [Mon, 31 Aug 2015 15:36:02 +0000 (17:36 +0200)]
Merge pull request #203 from greg-king5/multi-comments

Change multi-line C comments in files that were missed by a previous pull request.

8 years agoMerge pull request #202 from greg-king5/argv-null
Oliver Schmidt [Mon, 31 Aug 2015 15:34:28 +0000 (17:34 +0200)]
Merge pull request #202 from greg-king5/argv-null

Fix the preparation of tool command lines.

8 years agoChanged multi-line C comments in files that I missed in commit 0390c34e88e9512b81ce35... 203/head
Greg King [Sun, 30 Aug 2015 12:43:54 +0000 (08:43 -0400)]
Changed multi-line C comments in files that I missed in commit 0390c34e88e9512b81ce35a9ba36d137d1c80c44.

8 years agoDon't count the NULL (doh!). 202/head
Greg King [Sun, 30 Aug 2015 11:55:07 +0000 (07:55 -0400)]
Don't count the NULL (doh!).

8 years agoFixed a comparison operator; so that the NULL at the end of argv[] is copied by InitC...
Greg King [Sun, 30 Aug 2015 09:16:38 +0000 (05:16 -0400)]
Fixed a comparison operator; so that the NULL at the end of argv[] is copied by InitCmdLine().

Most POSIX function libraries hid that long-time bug by putting zeroes in their dynamic RAM; but, MinGW's library doesn't do it.  Therefore, a command like
cl65 foo.c -l
would crash with a "Segmentation fault" -- it should give a nice error message about "-l"; and, quit neatly.

8 years agostyle fixes
mrdudz [Sat, 29 Aug 2015 13:58:57 +0000 (15:58 +0200)]
style fixes

8 years agoMerge pull request #199 from greg-king5/irq
Oliver Schmidt [Thu, 27 Aug 2015 09:35:48 +0000 (11:35 +0200)]
Merge pull request #199 from greg-king5/irq

Fix source-code bugs that cause linking problems when set_irq() is used in a program.

8 years agoFixed bugs in the interface for C-level interrupt handlers. 199/head
Greg King [Wed, 26 Aug 2015 23:29:39 +0000 (19:29 -0400)]
Fixed bugs in the interface for C-level interrupt handlers.

* Added an important ".code" directive.

* Import a linker-created zero-page symbol as an absolute address; then, convert it to zero-page when it is used.

Fixes bug report #198.

8 years agoDon't show (potentially failing) pull request builds.
Oliver Schmidt [Tue, 25 Aug 2015 11:57:21 +0000 (13:57 +0200)]
Don't show (potentially failing) pull request builds.

8 years agoMerge pull request #197 from greg-king5/static
Oliver Schmidt [Sat, 15 Aug 2015 04:53:40 +0000 (06:53 +0200)]
Merge pull request #197 from greg-king5/static

Handle almost-duplicate C declarations that have different linkages.

8 years agoMerge pull request #196 from greg-king5/tests
Oliver Schmidt [Fri, 14 Aug 2015 07:04:20 +0000 (09:04 +0200)]
Merge pull request #196 from greg-king5/tests

Remove pointless rules from a regression test makefile.

8 years agoRemoved redundant attempts to build uncompilable files. 196/head
Greg King [Thu, 13 Aug 2015 21:25:52 +0000 (17:25 -0400)]
Removed redundant attempts to build uncompilable files.

8 years agoAdded regression tests of diagnostics for conflicts between extern/public and static... 197/head
Greg King [Thu, 13 Aug 2015 07:39:35 +0000 (03:39 -0400)]
Added regression tests of diagnostics for conflicts between extern/public and static declarations.

8 years agoAdded warning diagnostics for conflicts between extern/public and static declarations.
Greg King [Mon, 10 Aug 2015 17:39:17 +0000 (13:39 -0400)]
Added warning diagnostics for conflicts between extern/public and static declarations.

8 years agoStopped extern declarations from changing previous static, but otherwise identical...
Greg King [Sun, 9 Aug 2015 10:27:05 +0000 (06:27 -0400)]
Stopped extern declarations from changing previous static, but otherwise identical, declarations.

8 years agoImproved the format of the global symbols' lists of flags, in cc65's debugging output.
Greg King [Sun, 9 Aug 2015 02:04:38 +0000 (22:04 -0400)]
Improved the format of the global symbols' lists of flags, in cc65's debugging output.

8 years agoMerge pull request #190 from greg-king5/zeropage-doc
Oliver Schmidt [Sat, 1 Aug 2015 11:28:42 +0000 (13:28 +0200)]
Merge pull request #190 from greg-king5/zeropage-doc

Fix an obsolete description of ca65's .ZEROPAGE directive.

8 years agoFixed the syntax in the shortcut expansion of ".ZEROPAGE". 190/head
Greg King [Sat, 1 Aug 2015 09:50:13 +0000 (05:50 -0400)]
Fixed the syntax in the shortcut expansion of ".ZEROPAGE".

Added a reference from ".SEGMENT" to ".ZEROPAGE".

8 years agoMerge pull request #188 from greg-king5/docs
Oliver Schmidt [Wed, 29 Jul 2015 12:48:38 +0000 (14:48 +0200)]
Merge pull request #188 from greg-king5/docs

65816 assembler document fix.

8 years agoRemoved obsolete lines from a list of 65816 mnemonic aliases. 188/head
Greg King [Wed, 29 Jul 2015 10:55:50 +0000 (06:55 -0400)]
Removed obsolete lines from a list of 65816 mnemonic aliases.

Described what the macroes in macro package "generic" do.

8 years agoMerge pull request #183 from Movax12/linecont-bug
Oliver Schmidt [Sat, 25 Jul 2015 15:52:49 +0000 (17:52 +0200)]
Merge pull request #183 from Movax12/linecont-bug

Fix bug #182

8 years agoMerge pull request #184 from greg-king5/fastcall
Oliver Schmidt [Thu, 23 Jul 2015 15:11:49 +0000 (17:11 +0200)]
Merge pull request #184 from greg-king5/fastcall

Update some fastcall info.

8 years agoUpdated the fastcall information in a document and two Assembly files. 184/head
Greg King [Wed, 22 Jul 2015 16:56:34 +0000 (12:56 -0400)]
Updated the fastcall information in a document and two Assembly files.

8 years agoAdded empty IRQ backend.
Oliver Schmidt [Wed, 22 Jul 2015 09:36:39 +0000 (11:36 +0200)]
Added empty IRQ backend.

The driver kernels all require IRQ handling even if the actual drivers don't make use of it. So in order to successfully link a NES program using the joystick and/or TGI driver there has to be at least a "dummy" IRQ backend.

8 years agoStyle again 183/head
JT [Mon, 20 Jul 2015 23:16:48 +0000 (19:16 -0400)]
Style again

8 years agoFix style
JT [Mon, 20 Jul 2015 23:12:30 +0000 (19:12 -0400)]
Fix style

8 years agoFix bug #182
JT [Mon, 20 Jul 2015 22:55:25 +0000 (18:55 -0400)]
Fix bug #182

8 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Mon, 20 Jul 2015 16:42:04 +0000 (18:42 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

8 years agoMerge pull request #181 from Movax12/base10bug
Oliver Schmidt [Mon, 20 Jul 2015 16:05:23 +0000 (18:05 +0200)]
Merge pull request #181 from Movax12/base10bug

Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value)

8 years agoMerge pull request #180 from greg-king5/sprintf
Oliver Schmidt [Mon, 20 Jul 2015 16:02:14 +0000 (18:02 +0200)]
Merge pull request #180 from greg-king5/sprintf

Make the sprintf() family of functions handle special argument conditions.

8 years agoMerge pull request #179 from greg-king5/overlay
Oliver Schmidt [Mon, 20 Jul 2015 16:00:56 +0000 (18:00 +0200)]
Merge pull request #179 from greg-king5/overlay

Add overlay-samples make-rules.

8 years agofixed hello.c for pce
mrdudz [Mon, 20 Jul 2015 14:03:03 +0000 (16:03 +0200)]
fixed hello.c for pce

8 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Mon, 20 Jul 2015 13:59:05 +0000 (15:59 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

8 years agoMade hello program compatible with joystick-only target(s).
Oliver Schmidt [Mon, 20 Jul 2015 05:46:18 +0000 (07:46 +0200)]
Made hello program compatible with joystick-only target(s).

8 years agoFix base 10 bug (ca65 allows 'a' or 'A' in base10 value) 181/head
JT [Sun, 19 Jul 2015 22:56:42 +0000 (18:56 -0400)]
Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value)

8 years agoadded missing chline, cvline
mrdudz [Sun, 19 Jul 2015 16:06:16 +0000 (18:06 +0200)]
added missing chline, cvline

8 years agofixed hline/vline
mrdudz [Sun, 19 Jul 2015 11:36:27 +0000 (13:36 +0200)]
fixed hline/vline

8 years agoAdded _directerrno() to the sim6502/sim65c02 libraries. 180/head
Greg King [Sat, 18 Jul 2015 22:23:08 +0000 (18:23 -0400)]
Added _directerrno() to the sim6502/sim65c02 libraries.

8 years agoFixed a hardware-stack leak.
Greg King [Sat, 18 Jul 2015 00:36:56 +0000 (20:36 -0400)]
Fixed a hardware-stack leak.

8 years agoAdded a test program for the special features of snprintf().
Greg King [Sat, 18 Jul 2015 00:33:17 +0000 (20:33 -0400)]
Added a test program for the special features of snprintf().

8 years agomoved all notes into regular documentation
mrdudz [Thu, 16 Jul 2015 19:39:13 +0000 (21:39 +0200)]
moved all notes into regular documentation

8 years agoAdded make rules that build the overlay sample programs. 179/head
Greg King [Thu, 16 Jul 2015 19:31:35 +0000 (15:31 -0400)]
Added make rules that build the overlay sample programs.

Fixes half of bug issue 178 (on GitHub).

8 years agofixed joypad bits
mrdudz [Thu, 16 Jul 2015 18:15:05 +0000 (20:15 +0200)]
fixed joypad bits

8 years agoadded some cbm-like gfx chars to draw lines and boxes
mrdudz [Thu, 16 Jul 2015 15:33:00 +0000 (17:33 +0200)]
added some cbm-like gfx chars to draw lines and boxes

8 years agomake sure clocktick starts at zero
mrdudz [Thu, 16 Jul 2015 14:54:40 +0000 (16:54 +0200)]
make sure clocktick starts at zero

8 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Thu, 16 Jul 2015 14:46:24 +0000 (16:46 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

8 years agoMerge branch 'mrdudz-pointer'
Oliver Schmidt [Thu, 16 Jul 2015 14:05:50 +0000 (16:05 +0200)]
Merge branch 'mrdudz-pointer'

8 years agofixed screensize, timertick, revers mode
mrdudz [Thu, 16 Jul 2015 14:00:32 +0000 (16:00 +0200)]
fixed screensize, timertick, revers mode

8 years agoadded waitvblank and fixed get_tv
mrdudz [Wed, 15 Jul 2015 17:46:26 +0000 (19:46 +0200)]
added waitvblank and fixed get_tv

8 years agofixed issues found by gregg
mrdudz [Wed, 15 Jul 2015 11:18:12 +0000 (13:18 +0200)]
fixed issues found by gregg

8 years agoMerge branch 'pointer' of https://github.com/mrdudz/cc65 into mrdudz-pointer
Oliver Schmidt [Wed, 15 Jul 2015 10:04:06 +0000 (12:04 +0200)]
Merge branch 'pointer' of https://github.com/mrdudz/cc65 into mrdudz-pointer

8 years ago_tickcount -> tickcount
mrdudz [Tue, 14 Jul 2015 17:55:41 +0000 (19:55 +0200)]
_tickcount -> tickcount

8 years agosome more tweaking, added docs page
mrdudz [Tue, 14 Jul 2015 15:22:47 +0000 (17:22 +0200)]
some more tweaking, added docs page

8 years agoadded imports for conio init to conio functions, so the constructor will get linked...
mrdudz [Mon, 13 Jul 2015 10:10:09 +0000 (12:10 +0200)]
added imports for conio init to conio functions, so the constructor will get linked and called automatically

8 years agomore cleanup and fixing
mrdudz [Sun, 12 Jul 2015 14:40:52 +0000 (16:40 +0200)]
more cleanup and fixing

8 years agomore cleanup, joystick works again
mrdudz [Sun, 12 Jul 2015 12:27:24 +0000 (14:27 +0200)]
more cleanup, joystick works again

8 years agoMerge pull request #158 from Movax12/definedmacro
Oliver Schmidt [Sun, 12 Jul 2015 11:32:03 +0000 (13:32 +0200)]
Merge pull request #158 from Movax12/definedmacro

Added .DEFINEDMACRO psuedo function

8 years agosimple conio test works again
mrdudz [Sun, 12 Jul 2015 08:32:55 +0000 (10:32 +0200)]
simple conio test works again

8 years agoMove FuncIsMnemonic 158/head
JT [Sat, 11 Jul 2015 23:09:42 +0000 (19:09 -0400)]
Move FuncIsMnemonic

8 years agoMerge pull request #174 from mrdudz/testsuite
Oliver Schmidt [Sat, 11 Jul 2015 13:37:56 +0000 (15:37 +0200)]
Merge pull request #174 from mrdudz/testsuite

use rm -r instead of rmdir, and use -f for rm

8 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Sat, 11 Jul 2015 11:05:26 +0000 (13:05 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

8 years agoMerge remote-tracking branch 'upstream/master' into testsuite 174/head
mrdudz [Sat, 11 Jul 2015 10:44:06 +0000 (12:44 +0200)]
Merge remote-tracking branch 'upstream/master' into testsuite

8 years agoIgnore return values only with CMD.EXE MkII.
Oliver Schmidt [Fri, 10 Jul 2015 22:01:39 +0000 (00:01 +0200)]
Ignore return values only with CMD.EXE MkII.

CMD.EXE considers file deletion commands not able to delete anything as there's nothing to delete as failed. Of course we don't want to bail out of the Makefile because of missing files to delete. Therefore we ignore the return values with '-'. This change limits this workaround to CMD.EXE.

8 years agoIgnore return values only with CMD.EXE.
Oliver Schmidt [Fri, 10 Jul 2015 20:39:33 +0000 (22:39 +0200)]
Ignore return values only with CMD.EXE.

CMD.EXE considers file deletion commands not able to delete anything as there's nothing to delete as failed. Of course we don't want to bail out of the Makefile because of missing files to delete. Therefore we ignore the return values with '-'. This change limits this workaround to CMD.EXE.

8 years agoworkaround for cmd.exe rmdir
mrdudz [Fri, 10 Jul 2015 18:04:31 +0000 (20:04 +0200)]
workaround for cmd.exe rmdir

8 years agotests for illegal pointer operations that must always fail 176/head
mrdudz [Fri, 10 Jul 2015 16:38:54 +0000 (18:38 +0200)]
tests for illegal pointer operations that must always fail

8 years agopatch from Uz that makes some illegal operations on pointers error out
mrdudz [Fri, 10 Jul 2015 12:27:49 +0000 (14:27 +0200)]
patch from Uz that makes some illegal operations on pointers error out

8 years agoremoved -f again, as that is the default. also removed "-" before the actual comments...
mrdudz [Fri, 10 Jul 2015 09:11:41 +0000 (11:11 +0200)]
removed -f again, as that is the default. also removed "-" before the actual comments, which were the workaround previously

8 years agouse rm -r instead of rmdir, and use -f for rm, that makes subsequent runs of "make...
mrdudz [Fri, 10 Jul 2015 08:43:00 +0000 (10:43 +0200)]
use rm -r instead of rmdir, and use -f for rm, that makes subsequent runs of "make clean" not fail

8 years agoMade some string output functions reject an invalid NULL buffer pointer.
Greg King [Thu, 9 Jul 2015 18:46:28 +0000 (14:46 -0400)]
Made some string output functions reject an invalid NULL buffer pointer.

8 years agoMerge pull request #173 from mrdudz/testsuite3
Oliver Schmidt [Thu, 9 Jul 2015 16:46:07 +0000 (18:46 +0200)]
Merge pull request #173 from mrdudz/testsuite3

two more tests

8 years agotwo more tests 173/head
mrdudz [Thu, 9 Jul 2015 15:36:12 +0000 (17:36 +0200)]
two more tests

8 years agoFix two string output functions' handling of their buffer-size parameter.
Greg King [Thu, 9 Jul 2015 14:28:38 +0000 (10:28 -0400)]
Fix two string output functions' handling of their buffer-size parameter.

That parameter's type is unsigned; but, the functions return an int.  If the size is too big for a signed integer, then return an error code.
If the size is zero, then don't write anything into a buffer (the buffer pointer may be NULL).  But, do format and count the arguments.

8 years agoMerge pull request #164 from greg-king5/testsuite
Oliver Schmidt [Wed, 1 Jul 2015 18:58:56 +0000 (20:58 +0200)]
Merge pull request #164 from greg-king5/testsuite

Adjust some new test programs.

8 years agoMerge pull request #165 from greg-king5/array-pointer
Oliver Schmidt [Wed, 1 Jul 2015 18:54:15 +0000 (20:54 +0200)]
Merge pull request #165 from greg-king5/array-pointer

Fix pointer-to-array indirection bug.

8 years agoRemoved some trailing whitespace; and, expanded a tab. 165/head
Greg King [Wed, 1 Jul 2015 14:07:40 +0000 (10:07 -0400)]
Removed some trailing whitespace; and, expanded a tab.

8 years agoAdded special-case compiler code that handles a pointer-to-array dereference.
Greg King [Wed, 1 Jul 2015 10:55:57 +0000 (06:55 -0400)]
Added special-case compiler code that handles a pointer-to-array dereference.

The type needs to change (to array); but, the address shouldn't be changed -- it already points to the first element.
Based on a bug analysis by Daniel Serpell.

8 years agoAdded a regression test for pointer-to-array dereferences.
Greg King [Wed, 1 Jul 2015 10:54:05 +0000 (06:54 -0400)]
Added a regression test for pointer-to-array dereferences.

8 years agoAdded comments that explain the unstable behavior of a test program. 164/head
Greg King [Tue, 30 Jun 2015 13:00:28 +0000 (09:00 -0400)]
Added comments that explain the unstable behavior of a test program.

8 years agoFixed an uninitiated pointer.
Greg King [Tue, 30 Jun 2015 12:54:13 +0000 (08:54 -0400)]
Fixed an uninitiated pointer.

8 years agoMerge pull request #163 from mrdudz/testsuite2
Oliver Schmidt [Mon, 29 Jun 2015 09:32:01 +0000 (11:32 +0200)]
Merge pull request #163 from mrdudz/testsuite2

added 3 more tests

8 years agoremove comment 163/head
mrdudz [Mon, 29 Jun 2015 09:18:24 +0000 (11:18 +0200)]
remove comment

8 years agoremove workaround for optimizer bug
mrdudz [Mon, 29 Jun 2015 00:34:12 +0000 (02:34 +0200)]
remove workaround for optimizer bug

8 years agoadded 3 more test
mrdudz [Sun, 28 Jun 2015 23:57:39 +0000 (01:57 +0200)]
added 3 more test

8 years agoAdded .DEFINEDMACRO psuedo function
JT [Mon, 11 May 2015 00:25:40 +0000 (20:25 -0400)]
Added .DEFINEDMACRO psuedo function

Fixed typo/fomatting

Formatting fix

Refactor the code to test for a macro

Remove .FEATURE requirement for .DEFINEDMACRO

8 years agoRevert "Equality problem (Ullrich von Bassewitz)".
Oliver Schmidt [Fri, 26 Jun 2015 23:09:20 +0000 (01:09 +0200)]
Revert "Equality problem (Ullrich von Bassewitz)".

Uz classifies his own fix as broken:

http://www.cc65.org/mailarchive/2015-01/11721.html

Although the original issue fixed seemed rather significant looking
back now the regression caused by the (broken) fix seems even more
significant :-(

(reverted from commit 55815ea10cfa3a779b44399f99dd0cf1cb4956f2)

======================================================================

Equality problem (Ullrich von Bassewitz)

Neil Stockbridge reported a problem with equality comparisons on
cc65.org's mailing list:

http://www.cc65.org/mailarchive/2014-10/11680.html

Uz provided a fix for it:

http://www.cc65.org/mailarchive/2014-10/11683.html

This pull request ask to add the fix to cc65 on github.

8 years agoRun the regression tests _before_ replacing the built binaries with Win32 cross-builds.
Oliver Schmidt [Fri, 26 Jun 2015 22:43:41 +0000 (00:43 +0200)]
Run the regression tests _before_ replacing the built binaries with Win32 cross-builds.

8 years agoAvoid "*** Recursive variable `RM' references itself (eventually)."
Oliver Schmidt [Fri, 26 Jun 2015 22:33:24 +0000 (00:33 +0200)]
Avoid  "*** Recursive variable `RM' references itself (eventually)."

8 years agoAdded regression tests to Travis.
Oliver Schmidt [Fri, 26 Jun 2015 22:04:51 +0000 (00:04 +0200)]
Added regression tests to Travis.

8 years agoMade test Makefiles work with CMD.EXE
Oliver Schmidt [Fri, 26 Jun 2015 22:03:45 +0000 (00:03 +0200)]
Made test Makefiles work with CMD.EXE

8 years agoAvoid wrong error.
Oliver Schmidt [Fri, 26 Jun 2015 21:36:14 +0000 (23:36 +0200)]
Avoid wrong error.

8 years agoMerge pull request #162 from greg-king5/fastcall
Oliver Schmidt [Thu, 25 Jun 2015 19:36:06 +0000 (21:36 +0200)]
Merge pull request #162 from greg-king5/fastcall

Test-suite work-arounds for the new compiler