1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00
Commit Graph

6672 Commits

Author SHA1 Message Date
mrdudz
5b1917d23f remove workaround for optimizer bug 2015-06-29 02:34:12 +02:00
mrdudz
72e4c10772 added 3 more test 2015-06-29 01:57:39 +02:00
JT
e7fca18798 Added .DEFINEDMACRO psuedo function
Fixed typo/fomatting

Formatting fix

Refactor the code to test for a macro

Remove .FEATURE requirement for .DEFINEDMACRO
2015-06-27 01:39:11 -04:00
Oliver Schmidt
d0e0b98b43 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 55815ea10c)

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

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.
2015-06-27 01:09:20 +02:00
Oliver Schmidt
7bb09e916c Run the regression tests _before_ replacing the built binaries with Win32 cross-builds. 2015-06-27 00:43:41 +02:00
Oliver Schmidt
5a7ba692f5 Avoid "*** Recursive variable `RM' references itself (eventually)." 2015-06-27 00:33:24 +02:00
Oliver Schmidt
9c3c886da3 Added regression tests to Travis. 2015-06-27 00:04:51 +02:00
Oliver Schmidt
9bd11f161f Made test Makefiles work with CMD.EXE 2015-06-27 00:03:45 +02:00
Oliver Schmidt
54cfd2e2a1 Avoid wrong error. 2015-06-26 23:36:14 +02:00
Oliver Schmidt
fe0b7570dc Merge pull request #162 from greg-king5/fastcall
Test-suite work-arounds for the new compiler
2015-06-25 21:36:06 +02:00
Greg King
f6d1234576 Added some names to the list of test-suite programs that need the --all-cdecl work-around.
Added a work-around for a cc65 bug that made the yacc tests fail.
2015-06-25 13:57:17 -04:00
Oliver Schmidt
8bdbc00ba3 Bumped version.
As suggested the incompatibility resulting form changing the default calling convention makes a new version appropriate - from user perspective.
2015-06-25 09:23:27 +02:00
Oliver Schmidt
ec2195b4ec Merge pull request #161 from greg-king5/fastcall
Update some overlooked fastcall pointer-to-function system declarations
2015-06-22 10:47:51 +02:00
Greg King
08e18c93c5 Added explicit settings of calling conventions in pointer-to-function declarations in system and library headers. 2015-06-22 00:15:48 -04:00
Oliver Schmidt
a13284a792 Merge pull request #160 from Movax12/definedinstr
.DEFINEDINSTR
2015-06-04 22:05:00 +02:00
Oliver Schmidt
fe023a1218 Merge pull request #151 from greg-king5/fastcall
Make __fastcall__ be the default calling convention.
2015-05-26 22:39:33 +02:00
Greg King
b49fd26d16 Improved the compiler documentation, a little bit. 2015-05-26 11:23:54 -04:00
Greg King
bbb6f89731 Made cc65 properly test calling conventions when it compares forward declarations to function definitions. 2015-05-24 18:31:50 -04:00
Greg King
e72132c8ae Made cc65 properly test variadic-function pointer assignments.
Improved some error messages.
2015-05-24 08:32:15 -04:00
JT
c30d87f0b7 Update documentation to .ISMNEMONIC 2015-05-22 20:33:42 -04:00
JT
63325a90d1 Added needed changes to pseudo.c 2015-05-19 20:45:49 -04:00
JT
1e3234f370 changed name of function to .ISMNEMONIC, small fixes 2015-05-19 19:50:51 -04:00
Oliver Schmidt
2167c6c831 Merge pull request #159 from groessler/something_to_pull
Fix verbose symbol dumping in ca65.
2015-05-19 15:56:16 +02:00
JT
9ee5adc190 Remove .FEATURE requirement and add documentation 2015-05-19 00:06:12 -04:00
Christian Groessler
41d19074e7 Fix verbose symbol dumping in ca65. 2015-05-16 05:20:15 +02:00
Oliver Schmidt
893af97ccd Fixed isblank() availability atttribute. 2015-05-13 14:54:12 +02:00
JT
5ed3a1a6dc Added pseudo function .DEFINEDINSTR 2015-05-12 19:28:57 -04:00
Greg King
0bb3bafb3e Made cc65 catch an assignment of a function pointer to a pointer with a different calling convention. 2015-05-12 04:15:00 -04:00
Oliver Schmidt
aeb8492572 Simplified license.
In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714058#55 John Dunning writes on 4/May/2015:

"Hi all.  I gather that the preference is to license CC65 and
associated technologies under the zlib license.  I hereby give my
approval for any software written by me as part of CC65 and associated
technologies under the zlib license."

The above together with the fact that all subsequent work on cc65 was already licensed under the zlib license means that cc65 can now be licensed altogether under the zlib license.
2015-05-05 21:56:23 +02:00
Oliver Schmidt
1e6629de8d Removed 'gh-pages'.
The 'gh-pages' goal has been moved to another Makefile. This reference was just a leftover.
2015-05-05 13:46:26 +02:00
Oliver Schmidt
0f1c3b0181 Fixed comment. 2015-04-27 09:39:50 +02:00
Oliver Schmidt
1748bb1ab6 Use well-known location BLTU2 for "memmove()". 2015-04-26 14:09:21 +02:00
Oliver Schmidt
3c1cd0d867 Added cmdline support to exec().
The starting point is the CALL2051:REM <cmdline> approach. It uses the BASIC input buffer at $200. ProDOS stores the name of the loaded program at $280 (which we want for argv[0]) leaving us with 128 char buffer. If we run the program via exec() we don't need the CALL2051 but only the REM token (which is just one char). So have a maximum cmdline length of 126 (plus a terminating zero).

There's no specification for ProDOS BIN file cmdline parameters so exec() just supports the CALL2051:REM <cmdline> approach. In contrast ProDOS SYS files allow for a 'startup filename'. A ProDOS filename is short than 126 chars so having exec() general cut the cmdline after 126 chars seems reasonable. If the SYS file we exec() allows for less we cut the cmdline further.

Our 'loader.system' SYS file however allows for an unusually 126 char long "startup filename" as it is targeted towards cc65 BIN porgrams with their 126 cmdline length.
2015-04-26 14:09:20 +02:00
Greg King
b24c87e61f Changed the compiler test-suite to work with the fastcall-default version of cc65. 2015-04-22 10:05:07 -04:00
Greg King
8743e9911d Added a command-line option to compile a program, with __cdecl__ as the default calling convention. 2015-04-22 09:59:23 -04:00
Oliver Schmidt
88fe6b615b Merge pull request #155 from Movax12/exp
Added function .ADDRSIZE to ca65
2015-04-22 13:20:32 +02:00
Movax12
610e50aecf Merge pull request #4 from Movax12/addrsize
Fix typo in documentation for .ADDRSIZE
2015-04-21 16:28:18 -04:00
JT
0d765abd6c Fix typo in documentation for .ADDRSIZE 2015-04-21 16:24:27 -04:00
Movax12
ffa5371a05 Merge pull request #3 from Movax12/addrsize
Addrsize update
2015-04-21 16:10:42 -04:00
JT
ffa52863b3 Small changes to coding style and to ca65 documentation for .ADDRSIZE 2015-04-21 16:09:01 -04:00
JT
2d3cf98bc8 2nd Small change to .ADDRSIZE documentation 2015-04-20 19:40:41 -04:00
Movax12
9f4fa85a25 Merge pull request #2 from Movax12/addrsize
Addrsize documentation
2015-04-20 19:15:35 -04:00
JT
9e9884764e Small change to .ADDRSIZE documentation 2015-04-20 19:09:18 -04:00
JT
499eab65f1 Updated documentation for .ADDRSIZE and .FEATURE addrsize 2015-04-20 18:56:34 -04:00
Movax12
247f4218b0 Merge pull request #1 from Movax12/addrsize
Improved on funciton .ADDRSIZE. Conform to coding style.
2015-04-20 17:27:27 -04:00
JT
dfddf8f9d2 Improved on funciton .ADDRSIZE. Conform to coding style. 2015-04-20 17:20:54 -04:00
JT
c6f45a338c Added function .ADDRSIZE to ca65 2015-04-19 23:21:56 -04:00
Oliver Schmidt
ae4f9336b3 Behave more like BASIC.SYSTEM and allow for argv[0]. 2015-04-19 21:59:05 +02:00
Oliver Schmidt
24e902059c Allow up 127 chars of cmdline for programs started by the loader. 2015-04-19 21:17:46 +02:00
Oliver Schmidt
c3bec9368b Merge pull request #154 from smuehlst/c1p_screenlayout_macro
Support for different screen layouts via macro-based modules
2015-03-25 16:24:45 +01:00