]> git.sur5r.net Git - cc65/log
cc65
8 years agoFixed CPU definition of Lynx. Removed nonsense target vc20. 283/head
Polluks [Tue, 12 Apr 2016 21:58:30 +0000 (23:58 +0200)]
Fixed CPU definition of Lynx. Removed nonsense target vc20.

8 years agoA forgotten option. Empty arguments are not silent anymore. 281/head
KORISNIK [Sun, 10 Apr 2016 00:21:36 +0000 (02:21 +0200)]
A forgotten option. Empty arguments are not silent anymore.

9 years agoMerge pull request #151 from greg-king5/fastcall
Oliver Schmidt [Tue, 26 May 2015 20:39:33 +0000 (22:39 +0200)]
Merge pull request #151 from greg-king5/fastcall

Make __fastcall__ be the default calling convention.

9 years agoImproved the compiler documentation, a little bit. 151/head
Greg King [Tue, 26 May 2015 15:23:54 +0000 (11:23 -0400)]
Improved the compiler documentation, a little bit.

9 years agoMade cc65 properly test calling conventions when it compares forward declarations...
Greg King [Sun, 24 May 2015 22:31:50 +0000 (18:31 -0400)]
Made cc65 properly test calling conventions when it compares forward declarations to function definitions.

9 years agoMade cc65 properly test variadic-function pointer assignments.
Greg King [Sun, 24 May 2015 12:32:15 +0000 (08:32 -0400)]
Made cc65 properly test variadic-function pointer assignments.

Improved some error messages.

9 years agoMerge pull request #159 from groessler/something_to_pull
Oliver Schmidt [Tue, 19 May 2015 13:56:16 +0000 (15:56 +0200)]
Merge pull request #159 from groessler/something_to_pull

Fix verbose symbol dumping in ca65.

9 years agoFix verbose symbol dumping in ca65. 159/head
Christian Groessler [Sat, 16 May 2015 03:20:15 +0000 (05:20 +0200)]
Fix verbose symbol dumping in ca65.

9 years agoFixed isblank() availability atttribute.
Oliver Schmidt [Wed, 13 May 2015 12:54:12 +0000 (14:54 +0200)]
Fixed isblank() availability atttribute.

9 years agoMade cc65 catch an assignment of a function pointer to a pointer with a different...
Greg King [Tue, 12 May 2015 08:15:00 +0000 (04:15 -0400)]
Made cc65 catch an assignment of a function pointer to a pointer with a different calling convention.

9 years agoSimplified license.
Oliver Schmidt [Tue, 5 May 2015 19:56:23 +0000 (21:56 +0200)]
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.

9 years agoRemoved 'gh-pages'.
Oliver Schmidt [Tue, 5 May 2015 11:46:26 +0000 (13:46 +0200)]
Removed 'gh-pages'.

The 'gh-pages' goal has been moved to another Makefile. This reference was just a leftover.

9 years agoFixed comment.
Oliver Schmidt [Mon, 27 Apr 2015 07:39:50 +0000 (09:39 +0200)]
Fixed comment.

9 years agoUse well-known location BLTU2 for "memmove()". 156/head
Oliver Schmidt [Sun, 26 Apr 2015 12:08:46 +0000 (14:08 +0200)]
Use well-known location BLTU2 for "memmove()".

9 years agoAdded cmdline support to exec().
Oliver Schmidt [Sun, 26 Apr 2015 12:01:36 +0000 (14:01 +0200)]
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.

9 years agoChanged the compiler test-suite to work with the fastcall-default version of cc65.
Greg King [Wed, 22 Apr 2015 14:05:07 +0000 (10:05 -0400)]
Changed the compiler test-suite to work with the fastcall-default version of cc65.

9 years agoAdded a command-line option to compile a program, with __cdecl__ as the default calli...
Greg King [Wed, 22 Apr 2015 13:59:23 +0000 (09:59 -0400)]
Added a command-line option to compile a program, with __cdecl__ as the default calling convention.

9 years agoMerge pull request #155 from Movax12/exp
Oliver Schmidt [Wed, 22 Apr 2015 11:20:32 +0000 (13:20 +0200)]
Merge pull request #155 from Movax12/exp

Added function .ADDRSIZE to ca65

9 years agoMerge pull request #4 from Movax12/addrsize 155/head
Movax12 [Tue, 21 Apr 2015 20:28:18 +0000 (16:28 -0400)]
Merge pull request #4 from Movax12/addrsize

Fix typo in documentation for .ADDRSIZE

9 years agoFix typo in documentation for .ADDRSIZE
JT [Tue, 21 Apr 2015 20:21:27 +0000 (16:21 -0400)]
Fix typo in documentation for .ADDRSIZE

9 years agoMerge pull request #3 from Movax12/addrsize
Movax12 [Tue, 21 Apr 2015 20:10:42 +0000 (16:10 -0400)]
Merge pull request #3 from Movax12/addrsize

Addrsize update

9 years agoSmall changes to coding style and to ca65 documentation for .ADDRSIZE
JT [Tue, 21 Apr 2015 20:09:01 +0000 (16:09 -0400)]
Small changes to coding style and to ca65 documentation for .ADDRSIZE

9 years ago2nd Small change to .ADDRSIZE documentation
JT [Mon, 20 Apr 2015 23:40:41 +0000 (19:40 -0400)]
2nd Small change to .ADDRSIZE documentation

9 years agoMerge pull request #2 from Movax12/addrsize
Movax12 [Mon, 20 Apr 2015 23:15:35 +0000 (19:15 -0400)]
Merge pull request #2 from Movax12/addrsize

Addrsize documentation

9 years agoSmall change to .ADDRSIZE documentation
JT [Mon, 20 Apr 2015 23:09:18 +0000 (19:09 -0400)]
Small change to .ADDRSIZE documentation

9 years agoUpdated documentation for .ADDRSIZE and .FEATURE addrsize
JT [Mon, 20 Apr 2015 22:56:34 +0000 (18:56 -0400)]
Updated documentation for .ADDRSIZE and .FEATURE addrsize

9 years agoMerge pull request #1 from Movax12/addrsize
Movax12 [Mon, 20 Apr 2015 21:27:27 +0000 (17:27 -0400)]
Merge pull request #1 from Movax12/addrsize

Improved on funciton .ADDRSIZE. Conform to coding style.

9 years agoImproved on funciton .ADDRSIZE. Conform to coding style.
JT [Mon, 20 Apr 2015 21:20:54 +0000 (17:20 -0400)]
Improved on funciton .ADDRSIZE. Conform to coding style.

9 years agoAdded function .ADDRSIZE to ca65
JT [Mon, 20 Apr 2015 03:21:56 +0000 (23:21 -0400)]
Added function .ADDRSIZE to ca65

9 years agoBehave more like BASIC.SYSTEM and allow for argv[0].
Oliver Schmidt [Sun, 19 Apr 2015 19:59:05 +0000 (21:59 +0200)]
Behave more like BASIC.SYSTEM and allow for argv[0].

9 years agoAllow up 127 chars of cmdline for programs started by the loader.
Oliver Schmidt [Sun, 19 Apr 2015 19:16:43 +0000 (21:16 +0200)]
Allow up 127 chars of cmdline for programs started by the loader.

9 years agoMerge pull request #154 from smuehlst/c1p_screenlayout_macro
Oliver Schmidt [Wed, 25 Mar 2015 15:24:45 +0000 (16:24 +0100)]
Merge pull request #154 from smuehlst/c1p_screenlayout_macro

Support for different screen layouts via macro-based modules

9 years agoDocument osic1p-specific constants. 154/head
Stephan Mühlstrasser [Mon, 23 Mar 2015 18:31:46 +0000 (19:31 +0100)]
Document osic1p-specific constants.

9 years agoMacro-based implementation of screen layout configuration modules.
Stephan Mühlstrasser [Sun, 22 Mar 2015 21:45:53 +0000 (22:45 +0100)]
Macro-based implementation of screen layout configuration modules.

9 years agoMore room by default for zero-page data.
Stephan Mühlstrasser [Sun, 22 Mar 2015 11:10:58 +0000 (12:10 +0100)]
More room by default for zero-page data.

9 years agoReverted one of the changes in how function prototypes look, in cc65's assembly output.
Greg King [Thu, 19 Mar 2015 10:27:25 +0000 (06:27 -0400)]
Reverted one of the changes in how function prototypes look, in cc65's assembly output.

9 years agoMerge pull request #152 from smuehlst/c1p_bootload
Oliver Schmidt [Sun, 15 Mar 2015 10:40:33 +0000 (11:40 +0100)]
Merge pull request #152 from smuehlst/c1p_bootload

Fix for use of uninitialized memory in osic1p bootstrap.s

9 years agoImproved fix with suggestions by Greg King. 152/head
Stephan Mühlstrasser [Sat, 14 Mar 2015 23:40:42 +0000 (00:40 +0100)]
Improved fix with suggestions by Greg King.

9 years agoFixed a typo.
Greg King [Sat, 14 Mar 2015 20:50:08 +0000 (16:50 -0400)]
Fixed a typo.

9 years agoImproved vector (re)setting function docs.
Oliver Schmidt [Sat, 14 Mar 2015 17:53:56 +0000 (18:53 +0100)]
Improved vector (re)setting function docs.

9 years agoReplaced 'Limits' with 'Notes'.
Oliver Schmidt [Sat, 14 Mar 2015 17:41:57 +0000 (18:41 +0100)]
Replaced 'Limits' with 'Notes'.

Quite some items in the 'Limits' sections aren't actual limitations so it seems appropriate to just use a more neutral term.

9 years agoFix bad tabbing
Stephan Mühlstrasser [Fri, 13 Mar 2015 23:06:00 +0000 (00:06 +0100)]
Fix bad tabbing

9 years agoFixed uninitialized use of low byte of address "load".
Stephan Mühlstrasser [Fri, 13 Mar 2015 23:01:12 +0000 (00:01 +0100)]
Fixed uninitialized use of low byte of address "load".

9 years agoCatch fastcall pointers to variadic functions.
Greg King [Fri, 13 Mar 2015 16:18:43 +0000 (12:18 -0400)]
Catch fastcall pointers to variadic functions.

9 years agoMade _afailed() and uncompress() be fastcall functions.
Greg King [Fri, 13 Mar 2015 11:35:47 +0000 (07:35 -0400)]
Made _afailed() and uncompress() be fastcall functions.

9 years agoMade cbm_load() be a fastcall function.
Greg King [Fri, 13 Mar 2015 09:46:40 +0000 (05:46 -0400)]
Made cbm_load() be a fastcall function.

9 years agoChanged the documentation to reflect the new fastcall/cdecl reality.
Greg King [Fri, 13 Mar 2015 09:40:55 +0000 (05:40 -0400)]
Changed the documentation to reflect the new fastcall/cdecl reality.

9 years agoMade __fastcall__ be the default calling convention for non-variadic functions.
Greg King [Tue, 10 Mar 2015 09:53:52 +0000 (05:53 -0400)]
Made __fastcall__ be the default calling convention for non-variadic functions.

9 years agoCompleted the cc65 code that recognizes __CDECL__ as a calling convention qualifier.
Greg King [Mon, 9 Mar 2015 22:53:45 +0000 (18:53 -0400)]
Completed the cc65 code that recognizes __CDECL__ as a calling convention qualifier.

9 years agoMerge pull request #150 from greg-king5/osi-boot
Oliver Schmidt [Mon, 9 Mar 2015 14:35:26 +0000 (15:35 +0100)]
Merge pull request #150 from greg-king5/osi-boot

A second OSI C1P program file format.

9 years agoChanged a comment in the osic1p configure files. 150/head
Greg King [Mon, 9 Mar 2015 10:17:28 +0000 (06:17 -0400)]
Changed a comment in the osic1p configure files.

9 years agoMentioned in the documentation how we can make the new format be the default.
Greg King [Sun, 8 Mar 2015 14:43:03 +0000 (10:43 -0400)]
Mentioned in the documentation how we can make the new format be the default.

9 years agoDescribed how to change the boot loader's actions.
Greg King [Sun, 8 Mar 2015 14:06:00 +0000 (10:06 -0400)]
Described how to change the boot loader's actions.

9 years agoAdded a second OSI C1P program file format.
Greg King [Sat, 7 Mar 2015 21:37:58 +0000 (16:37 -0500)]
Added a second OSI C1P program file format.

Unlike the first format, the new format is already loadable; it doesn't need to be converted.

9 years agoMerge pull request #149 from greg-king5/osi-font
Oliver Schmidt [Thu, 5 Mar 2015 19:29:45 +0000 (20:29 +0100)]
Merge pull request #149 from greg-king5/osi-font

osic1p character translations

9 years agoAdded a font translation table because Ohio Scientific machines have three misplaced... 149/head
Greg King [Thu, 5 Mar 2015 17:44:08 +0000 (12:44 -0500)]
Added a font translation table because Ohio Scientific machines have three misplaced characters.

9 years agoMerge pull request #148 from smuehlst/c1p
Oliver Schmidt [Mon, 2 Mar 2015 12:02:17 +0000 (13:02 +0100)]
Merge pull request #148 from smuehlst/c1p

kbhit() implementation, fixed C data stack pointer initialization

9 years agoReplaced magic numbers with symbolic constants. 148/head
Stephan Mühlstrasser [Sun, 1 Mar 2015 19:53:57 +0000 (20:53 +0100)]
Replaced magic numbers with symbolic constants.

9 years agoOptimization by replacing absolute with relative jump.
Stephan Mühlstrasser [Sat, 28 Feb 2015 19:29:08 +0000 (20:29 +0100)]
Optimization by replacing absolute with relative jump.

9 years agoMerge pull request #147 from greg-king5/basic-stub
Oliver Schmidt [Sat, 28 Feb 2015 12:41:56 +0000 (13:41 +0100)]
Merge pull request #147 from greg-king5/basic-stub

Atmos introduction update

9 years agoUpdated the introduction to the Atmos target because I changed how its programs are... 147/head
Greg King [Sat, 28 Feb 2015 05:17:07 +0000 (00:17 -0500)]
Updated the introduction to the Atmos target because I changed how its programs are started.

9 years agoTemporarily undo the 25 line change.
Stephan Mühlstrasser [Wed, 25 Feb 2015 22:50:02 +0000 (23:50 +0100)]
Temporarily undo the 25 line change.

This is not yet consistent with the first visible character on
the screen.

9 years agoFix wrong expression for top of C stack.
Stephan Mühlstrasser [Wed, 25 Feb 2015 22:48:57 +0000 (23:48 +0100)]
Fix wrong expression for top of C stack.

Thanks to Greg King for this fix.

9 years agoMatch screen dimensions as in BASIC.
Stephan Mühlstrasser [Mon, 23 Feb 2015 22:07:00 +0000 (23:07 +0100)]
Match screen dimensions as in BASIC.

Experiments show that under BASIC by default
25 rows by 24 columns are used. 24 columns is
also the width that is fully displayed on a real
C1P on the monitor. conio now matches that now.

9 years agokbhit implemented, note about limitation removed.
Stephan Mühlstrasser [Mon, 23 Feb 2015 19:28:05 +0000 (20:28 +0100)]
kbhit implemented, note about limitation removed.

9 years agoMerge branch 'c1p_scrsize' into c1p
Stephan Mühlstrasser [Mon, 23 Feb 2015 19:13:55 +0000 (20:13 +0100)]
Merge branch 'c1p_scrsize' into c1p

9 years agoMerge branch 'c1p_kbhit' into c1p_scrsize
Stephan Mühlstrasser [Mon, 23 Feb 2015 18:17:54 +0000 (19:17 +0100)]
Merge branch 'c1p_kbhit' into c1p_scrsize

9 years agoLoading A once before the loop is sufficient.
Stephan Mühlstrasser [Mon, 23 Feb 2015 18:17:27 +0000 (19:17 +0100)]
Loading A once before the loop is sufficient.

9 years agoMerge branch 'c1p_kbhit' into c1p_scrsize
Stephan Mühlstrasser [Mon, 23 Feb 2015 18:08:33 +0000 (19:08 +0100)]
Merge branch 'c1p_kbhit' into c1p_scrsize

9 years agoClear bottom line when scrolling.
Stephan Mühlstrasser [Mon, 23 Feb 2015 18:06:22 +0000 (19:06 +0100)]
Clear bottom line when scrolling.

Fix provided by Jeff Tranter.

9 years agoMerge branch 'c1p_scrsize' into c1p
Stephan Mühlstrasser [Sun, 22 Feb 2015 18:56:01 +0000 (19:56 +0100)]
Merge branch 'c1p_scrsize' into c1p

9 years agoConsistent naming for screen dimension constants.
Stephan Mühlstrasser [Sun, 22 Feb 2015 18:55:19 +0000 (19:55 +0100)]
Consistent naming for screen dimension constants.

9 years agoDefine the screen dimension defines in a more meaningful way.
Stephan Mühlstrasser [Sun, 22 Feb 2015 15:27:13 +0000 (16:27 +0100)]
Define the screen dimension defines in a more meaningful way.

9 years agoMerge branch 'c1p_kbhit' into c1p
Stephan Mühlstrasser [Sun, 22 Feb 2015 10:45:02 +0000 (11:45 +0100)]
Merge branch 'c1p_kbhit' into c1p

9 years agoMask control keys from first keyboard scan row.
Stephan Mühlstrasser [Sat, 21 Feb 2015 21:52:01 +0000 (22:52 +0100)]
Mask control keys from first keyboard scan row.

9 years agoMerge branch 'c1p_charconsts' into c1p
Stephan Mühlstrasser [Sat, 21 Feb 2015 20:30:56 +0000 (21:30 +0100)]
Merge branch 'c1p_charconsts' into c1p

9 years agoUse character constants where appropriate.
Stephan Mühlstrasser [Sat, 21 Feb 2015 19:53:16 +0000 (20:53 +0100)]
Use character constants where appropriate.

9 years agoImplemented a one-character buffer for kbhit() and cgetc().
Stephan Mühlstrasser [Sat, 21 Feb 2015 19:24:58 +0000 (20:24 +0100)]
Implemented a one-character buffer for kbhit() and cgetc().

If kbhit() detects that a key is pressed, it fetches and
buffers the character. If cgetc() detects a buffered character,
this one is returned instead of fetching one with the PROM
routine.

9 years agokbhit() function and scrolling.
Stephan Mühlstrasser [Thu, 19 Feb 2015 21:19:21 +0000 (22:19 +0100)]
kbhit() function and scrolling.

Patch provided by Jeff Tranter.

9 years agoMerge pull request #146 from smuehlst/c1p
Oliver Schmidt [Wed, 18 Feb 2015 19:17:03 +0000 (20:17 +0100)]
Merge pull request #146 from smuehlst/c1p

Add target "osic1p" for Ohio Scientific Challenger 1P

9 years agoIncorporated another round of feedback for pull request. 146/head
Stephan Mühlstrasser [Wed, 18 Feb 2015 17:38:42 +0000 (18:38 +0100)]
Incorporated another round of feedback for pull request.

Adjusted comment formatting in several assembler files.
Removed dummy kbhit() function, as it's better to get a linker
error than an implementation that does the wrong thing.

9 years agoMoved interrupt enabling to the interrupt constructor.
Oliver Schmidt [Mon, 16 Feb 2015 14:43:08 +0000 (15:43 +0100)]
Moved interrupt enabling to the interrupt constructor.

9 years agoFix high byte of return value, optimized.
Stephan Mühlstrasser [Fri, 13 Feb 2015 18:53:02 +0000 (19:53 +0100)]
Fix high byte of return value, optimized.

9 years agoAdd dummy kbhit(), remove redundant documentation for cgetc().
Stephan Mühlstrasser [Thu, 12 Feb 2015 21:54:21 +0000 (22:54 +0100)]
Add dummy kbhit(), remove redundant documentation for cgetc().

9 years agoInclude "extzp.inc" instead of using direct imports of symbols.
Stephan Mühlstrasser [Thu, 12 Feb 2015 21:12:51 +0000 (22:12 +0100)]
Include "extzp.inc" instead of using direct imports of symbols.

9 years agoDon't use .byte in BSS segments, as value is lost anyway.
Stephan Mühlstrasser [Thu, 12 Feb 2015 20:44:00 +0000 (21:44 +0100)]
Don't use .byte in BSS segments, as value is lost anyway.

9 years agoReplace zeropage variable with standard tmp variable.
Stephan Mühlstrasser [Thu, 12 Feb 2015 20:29:19 +0000 (21:29 +0100)]
Replace zeropage variable with standard tmp variable.

9 years agoRemove unneeded commented code.
Stephan Mühlstrasser [Thu, 12 Feb 2015 20:12:24 +0000 (21:12 +0100)]
Remove unneeded commented code.

9 years agoUse constants for screen width and height.
Stephan Mühlstrasser [Thu, 12 Feb 2015 19:54:47 +0000 (20:54 +0100)]
Use constants for screen width and height.

9 years agoIncorporated feedback for initial pull request.
Stephan Mühlstrasser [Wed, 11 Feb 2015 18:18:24 +0000 (19:18 +0100)]
Incorporated feedback for initial pull request.

9 years agoAdded Challenger 1P to list of supported machines.
Stephan Mühlstrasser [Wed, 11 Feb 2015 18:14:13 +0000 (19:14 +0100)]
Added Challenger 1P to list of supported machines.

9 years agoFix formatting, replace tabs with spaces.
Stephan Mühlstrasser [Sun, 8 Feb 2015 16:35:40 +0000 (17:35 +0100)]
Fix formatting, replace tabs with spaces.

9 years agoRemove tabs, fixed accidental insertion of stdio.h.
Stephan Mühlstrasser [Sun, 8 Feb 2015 16:21:23 +0000 (17:21 +0100)]
Remove tabs, fixed accidental insertion of stdio.h.

9 years agoAdd missing newline
Stephan Mühlstrasser [Sun, 8 Feb 2015 16:12:54 +0000 (17:12 +0100)]
Add missing newline

9 years agoMerge branch 'master' of https://github.com/cc65/cc65 into c1p
Stephan Mühlstrasser [Sun, 8 Feb 2015 14:58:42 +0000 (15:58 +0100)]
Merge branch 'master' of https://github.com/cc65/cc65 into c1p

9 years agoMinor corrections.
Stephan Mühlstrasser [Sun, 8 Feb 2015 14:46:33 +0000 (15:46 +0100)]
Minor corrections.

9 years agoCompleting OSI documentation.
Stephan Mühlstrasser [Sun, 8 Feb 2015 14:06:55 +0000 (15:06 +0100)]
Completing OSI documentation.

9 years agoFixed URL for SRecord.
Stephan Mühlstrasser [Sat, 7 Feb 2015 00:19:03 +0000 (01:19 +0100)]
Fixed URL for SRecord.

9 years agoMinor corrections to documentation.
Stephan Mühlstrasser [Fri, 6 Feb 2015 23:20:38 +0000 (00:20 +0100)]
Minor corrections to documentation.

9 years agoStart documentation for Ohio Scientific targets.
Stephan Mühlstrasser [Fri, 6 Feb 2015 21:53:36 +0000 (22:53 +0100)]
Start documentation for Ohio Scientific targets.