]> git.sur5r.net Git - cc65/log
cc65
12 years agoFix typo
karri [Tue, 23 Oct 2012 11:54:31 +0000 (11:54 +0000)]
Fix typo

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

12 years agoCammys optimized Lynx palette
karri [Tue, 23 Oct 2012 10:07:41 +0000 (10:07 +0000)]
Cammys optimized Lynx palette

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

12 years agoCammys optimized Lynx palette
karri [Tue, 23 Oct 2012 10:07:17 +0000 (10:07 +0000)]
Cammys optimized Lynx palette

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

12 years agoOn Cywin with its (too) expensive fork() this change cuts down minimal re-build times...
ol.sc [Mon, 22 Oct 2012 17:37:10 +0000 (17:37 +0000)]
On Cywin with its (too) expensive fork() this change cuts down minimal re-build times from nearly 2 minutes to approx. 6 seconds. Additionally it looks in all directories in the first list for "override" files, not just in one.

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

12 years agoMade use of recently introduced getcurrentdevice().
ol.sc [Sun, 21 Oct 2012 14:36:05 +0000 (14:36 +0000)]
Made use of recently introduced getcurrentdevice().

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

12 years agoIntroduced getcurrentdevice() and implemented it for CBM and Apple.
ol.sc [Sun, 21 Oct 2012 14:35:17 +0000 (14:35 +0000)]
Introduced getcurrentdevice() and implemented it for CBM and Apple.

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

12 years agoThe 128+x character codes were very likely intended to be interpreted by cputs and...
ol.sc [Fri, 19 Oct 2012 07:19:08 +0000 (07:19 +0000)]
The 128+x character codes were very likely intended to be interpreted by cputs and translated into explicit drawing of short lines. However there was no code to do so at all. Given that the emulation of a characterbased API on a graphics system isn't the premier choice for a sophisticated UI it doesn't seem appropriate to invest into actually implementing the approach described above. Therefore I just replaced the character codes with a '+'.

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

12 years agoRemoved revers as it doesn't influence clrscr, cclear, chline, cvline and does look...
ol.sc [Fri, 19 Oct 2012 07:11:04 +0000 (07:11 +0000)]
Removed revers as it doesn't influence clrscr, cclear, chline, cvline and  does look pretty ugly on cputs because there's no opaque background.

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

12 years agoRemoved cpputs/cpputsxy as they don't work and as there's really very little use...
ol.sc [Fri, 19 Oct 2012 06:53:55 +0000 (06:53 +0000)]
Removed cpputs/cpputsxy as they don't work and as there's really very little use for proprietary extensions of a character API emulated on a graphics systems.

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

12 years agoAdded check for disk in drive on chdir().
ol.sc [Wed, 17 Oct 2012 20:24:43 +0000 (20:24 +0000)]
Added check for disk in drive on chdir().

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

12 years agoMinor updates.
ol.sc [Wed, 17 Oct 2012 20:22:28 +0000 (20:22 +0000)]
Minor updates.

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

12 years agoImplemented __syschdir on CBM. As getcwd returns a cached directory any direct access...
ol.sc [Tue, 16 Oct 2012 21:39:40 +0000 (21:39 +0000)]
Implemented __syschdir on CBM. As getcwd returns a cached directory any direct access to __curunit would cause inconsistencies. Therefore __curunit was renamed to curunit to prohibit user access.

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

12 years agoMinimal formatting adjustment.
ol.sc [Tue, 16 Oct 2012 21:29:14 +0000 (21:29 +0000)]
Minimal formatting adjustment.

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

12 years agoFix eol
karri [Tue, 16 Oct 2012 08:10:50 +0000 (08:10 +0000)]
Fix eol

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

12 years agoAdd Lynx hardware chip access
karri [Tue, 16 Oct 2012 08:03:36 +0000 (08:03 +0000)]
Add Lynx hardware chip access

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

12 years agoI wasn't aware that the unit numbers in the ProDOS device list contain device type...
ol.sc [Tue, 16 Oct 2012 06:34:38 +0000 (06:34 +0000)]
I wasn't aware that the unit numbers in the ProDOS device list contain device type identifiers in the low nibble. So if we can't use the device list entries as-is we can as well present the high nibble as low nibble to the user thus providing more meaningful device numbers.

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

12 years agoI wasn't aware that the unit numbers in the ProDOS device list contain device type...
ol.sc [Mon, 15 Oct 2012 21:59:51 +0000 (21:59 +0000)]
I wasn't aware that the unit numbers in the ProDOS device list contain device type identifiers in the low nibble. So if we can't use the device list entries as-is we can as well present the high nibble as low nibble to the user thus providing more meaningful device numbers.

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

12 years agoAdded enumdevdir showcasing the recently introduced device functions (together with...
ol.sc [Mon, 15 Oct 2012 18:52:40 +0000 (18:52 +0000)]
Added enumdevdir showcasing the recently introduced device functions (together with directory access).

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

12 years agoMinor style adjustment.
ol.sc [Sun, 14 Oct 2012 19:34:20 +0000 (19:34 +0000)]
Minor style adjustment.

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

12 years agoRemoved TABs.
ol.sc [Sun, 14 Oct 2012 12:51:02 +0000 (12:51 +0000)]
Removed TABs.

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

12 years agoRemoved TABs.
ol.sc [Sun, 14 Oct 2012 12:43:27 +0000 (12:43 +0000)]
Removed TABs.

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

12 years agoRemoved DIO specific typedefs which were just aliases to basic types and replaced...
ol.sc [Thu, 11 Oct 2012 18:22:49 +0000 (18:22 +0000)]
Removed DIO specific typedefs which were just aliases to basic types and replaced the term 'drive' with 'device' in order to harmonize with the recently added device.h.

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

12 years agoReplaced Apple II specific solution with implementation of recently introduced device...
ol.sc [Wed, 10 Oct 2012 20:55:56 +0000 (20:55 +0000)]
Replaced Apple II specific solution with implementation of recently introduced devicedir().

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

12 years agoBetter stick to the "high level" errno helpers as done everywhere else.
ol.sc [Wed, 10 Oct 2012 20:51:10 +0000 (20:51 +0000)]
Better stick to the "high level" errno helpers as done everywhere else.

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

12 years agoinitcwd will be called from the upcoming __syschdir so it has to be moved out of...
ol.sc [Wed, 10 Oct 2012 19:32:30 +0000 (19:32 +0000)]
initcwd will be called from the upcoming __syschdir so it has to be moved out of the INIT segment - and so it doesn't make sense anymore to keep devicestr as separate module anymore as the integration with initcwd allows to omit the jmp from the latter to the former.

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

12 years ago__syschdir calls initcwd so the latter must not be placed in the INIT segment.
ol.sc [Wed, 10 Oct 2012 19:18:09 +0000 (19:18 +0000)]
__syschdir calls initcwd so the latter must not be placed in the INIT segment.

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

12 years agoRemoved TAB.
ol.sc [Wed, 10 Oct 2012 19:12:29 +0000 (19:12 +0000)]
Removed TAB.

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

12 years agoClear _oserror on success.
ol.sc [Sun, 7 Oct 2012 20:20:54 +0000 (20:20 +0000)]
Clear _oserror on success.

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

12 years agoIntroduced getdevicedir() - with implementation for the CBMs.
ol.sc [Sun, 7 Oct 2012 19:18:56 +0000 (19:18 +0000)]
Introduced getdevicedir() - with implementation for the CBMs.

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

12 years agoNeed to import ST since it is no longer declared in plus4.inc.
uz [Tue, 2 Oct 2012 19:22:19 +0000 (19:22 +0000)]
Need to import ST since it is no longer declared in plus4.inc.

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

12 years agoReverted r5835 because of Olivers changes to the asm includes.
uz [Tue, 2 Oct 2012 18:15:39 +0000 (18:15 +0000)]
Reverted r5835 because of Olivers changes to the asm includes.

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

12 years agoTurned the 'ST' status byte into a symbol resolved by the linker in order to allow...
ol.sc [Tue, 2 Oct 2012 16:41:40 +0000 (16:41 +0000)]
Turned the 'ST' status byte into a symbol resolved by the linker in order to allow to use it from code living in the 'cbm' directory.
Moved getdevice.s from 'c64'/'c128' to 'cbm' making use of the new 'ST' setup.

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

12 years agoApplied changes by Daniel Pralle, adding stuff that is compiled but not
uz [Mon, 1 Oct 2012 20:01:15 +0000 (20:01 +0000)]
Applied changes by Daniel Pralle, adding stuff that is compiled but not
installed by the current HEAD version.

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

12 years agoST is already imported in plus4.inc, no need to import it separately.
uz [Mon, 1 Oct 2012 09:29:23 +0000 (09:29 +0000)]
ST is already imported in plus4.inc, no need to import it separately.

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

12 years agoTurned the 'ST' status byte into a symbol resolved by the linker in order to allow...
ol.sc [Sun, 30 Sep 2012 18:20:15 +0000 (18:20 +0000)]
Turned the 'ST' status byte into a symbol resolved by the linker in order to allow to use it from code living in the 'cbm' directory.
Moved getdevice.s from 'c64'/'c128' to 'cbm' making use of the new 'ST' setup.

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

12 years agoUpdated to include the C128 and the Atari as targets for the multidemo sample.
ol.sc [Sun, 30 Sep 2012 15:00:25 +0000 (15:00 +0000)]
Updated to include the C128 and the Atari as targets for the multidemo sample.

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

12 years agoAdjusted according to the recently updated readdir() doc that now says:
ol.sc [Sun, 30 Sep 2012 14:58:31 +0000 (14:58 +0000)]
Adjusted according to the recently updated readdir() doc that now says:

"On several platforms, namely the CBMs and the Atari, the disk drives get confused when opening/closing files between directory reads. So for example a program that reads the list of files on a disk, and after each call to readdir, opens the file to process it, will fail.
Possible solutions are reading the directory into memory before processing the file list, or to reset the directory by seeking to the correct position after opening/closing a file:
        seekdir (DIR, telldir (DIR));
Platforms known to work without problems are: Apple."

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

12 years agoAdded C128 overlay linker config.
ol.sc [Sun, 30 Sep 2012 14:53:12 +0000 (14:53 +0000)]
Added C128 overlay linker config.

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

12 years agoMinimal formatting adjustment.
ol.sc [Sun, 30 Sep 2012 14:18:47 +0000 (14:18 +0000)]
Minimal formatting adjustment.

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

12 years agoFix calculation of text width for bitmap fonts.
uz [Thu, 20 Sep 2012 21:14:46 +0000 (21:14 +0000)]
Fix calculation of text width for bitmap fonts.

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

12 years agoAdded a note about errors in disk drives on some platforms that lead to
uz [Thu, 20 Sep 2012 20:25:22 +0000 (20:25 +0000)]
Added a note about errors in disk drives on some platforms that lead to
failures if files are opened/closed while reading the directory.

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

12 years agoFixed a bug reported by thefox: The .CHARMAP command must not accept indices
uz [Mon, 17 Sep 2012 15:09:39 +0000 (15:09 +0000)]
Fixed a bug reported by thefox: The .CHARMAP command must not accept indices
or character codes with a value of zero. The assembler runs into a CHECK in
tgttrans anyway if the index is zero.

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

12 years agoChange address of sec loader
karri [Sat, 15 Sep 2012 12:57:37 +0000 (12:57 +0000)]
Change address of sec loader

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

12 years agoShring the bootloader by 20 bytes and remove restrictions on file size
karri [Tue, 11 Sep 2012 13:01:39 +0000 (13:01 +0000)]
Shring the bootloader by 20 bytes and remove restrictions on file size

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

12 years agoAdded a "fillval" attribute to the segment definition. When given, it
uz [Sun, 9 Sep 2012 19:00:43 +0000 (19:00 +0000)]
Added a "fillval" attribute to the segment definition. When given, it
overrides the value from the memory area for all space that lies within the
segment itself.

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

12 years agoReplaced Apple II specific solution with implementation of recently introduced mass...
ol.sc [Sun, 9 Sep 2012 16:16:08 +0000 (16:16 +0000)]
Replaced Apple II specific solution with implementation of recently introduced mass-storage device enumaration.

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

12 years agoReplaced Apple II specific solution with implementation of recently introduced mass...
ol.sc [Sun, 9 Sep 2012 13:38:32 +0000 (13:38 +0000)]
Replaced Apple II specific solution with implementation of recently introduced mass-storage device enumaration.

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

12 years agoIntroduced mass-storage device enumaration - with implementation for C64 and C128.
ol.sc [Sun, 9 Sep 2012 12:14:45 +0000 (12:14 +0000)]
Introduced mass-storage device enumaration - with implementation for C64 and C128.

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

12 years agoFixed problems reported by Greg King.
uz [Thu, 6 Sep 2012 20:36:35 +0000 (20:36 +0000)]
Fixed problems reported by Greg King.

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

12 years agoHave the internal function 'isdisk' set the carry for device 31. As the device id...
ol.sc [Wed, 5 Sep 2012 19:07:34 +0000 (19:07 +0000)]
Have the internal function 'isdisk' set the carry for device 31. As the device id 31 doesn't really exist it is for sure no disk.

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

12 years agoGenerate and package a matching emd binary of the new driver for the target
uz [Wed, 5 Sep 2012 13:45:17 +0000 (13:45 +0000)]
Generate and package a matching emd binary of the new driver for the target
platform.

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

12 years agoAdded the first EMD driver for the atari, written and contributed by Shawn
uz [Wed, 5 Sep 2012 11:25:28 +0000 (11:25 +0000)]
Added the first EMD driver for the atari, written and contributed by Shawn
Jefferson <sjefferson@shaw.ca>.

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

12 years agoMinor change.
ol.sc [Tue, 4 Sep 2012 09:00:43 +0000 (09:00 +0000)]
Minor change.

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

12 years agoSome documentation fixes. Errors reported by Michael Bazzinotti
uz [Sun, 2 Sep 2012 20:09:39 +0000 (20:09 +0000)]
Some documentation fixes. Errors reported by Michael Bazzinotti
<mbazzinotti@gmail.com>.

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

12 years agoFix by Greg King.
ol.sc [Sun, 26 Aug 2012 19:25:56 +0000 (19:25 +0000)]
Fix by Greg King.

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

12 years agoDo not try to dump an expression that has errors (circular references in this
uz [Wed, 22 Aug 2012 21:24:54 +0000 (21:24 +0000)]
Do not try to dump an expression that has errors (circular references in this
case) because the dump routine doesn't detect this and runs into an endless
recursion.

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

12 years agoNew option --relax-checks that disable the check for a match beween size oif
uz [Mon, 20 Aug 2012 20:07:05 +0000 (20:07 +0000)]
New option --relax-checks that disable the check for a match beween size oif
an expression and the address size. Will allow short branches between segments
among other things. Suggested by Spiro Trikaliotis.

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

12 years agoFix by Spiro Trikaliotis.
ol.sc [Sun, 19 Aug 2012 10:28:12 +0000 (10:28 +0000)]
Fix by Spiro Trikaliotis.

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

12 years agoMinor changes.
ol.sc [Thu, 16 Aug 2012 19:29:29 +0000 (19:29 +0000)]
Minor changes.

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

12 years agoAdded 'multidemo' to the samples README.
ol.sc [Thu, 16 Aug 2012 19:20:53 +0000 (19:20 +0000)]
Added 'multidemo' to the samples README.

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

12 years agoAdded somewhat more complex demo. It looks for emdrivers in the current directory...
ol.sc [Wed, 8 Aug 2012 21:23:18 +0000 (21:23 +0000)]
Added somewhat more complex demo. It looks for emdrivers in the current directory and tries to load them until one loads successfully. In that case it "streams" its overlay files into extended memory. Finally it loads its overlays from extended memory (or disk) and calls into them.

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

12 years agoChoose another way to fix the issue from r5804: When parsing the directory
uz [Mon, 6 Aug 2012 18:45:26 +0000 (18:45 +0000)]
Choose another way to fix the issue from r5804: When parsing the directory
name, add a file mask, so the result is "$0:*" or similar. When specified like
this, the drive accepts the r/o specifier ",R" so we don't have to complicate
the code in open().

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

12 years agoFixed a bug: The floppies do not like ,R (for read mode) when opening the
uz [Sun, 5 Aug 2012 21:32:40 +0000 (21:32 +0000)]
Fixed a bug: The floppies do not like ,R (for read mode) when opening the
directory.

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

12 years agoDon't add the current directory to the list of search paths. If the main file
uz [Wed, 1 Aug 2012 21:44:36 +0000 (21:44 +0000)]
Don't add the current directory to the list of search paths. If the main file
is located there, it is added anyway. If the main file is located elsewhere,
we don't want to search in the current directory.

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

12 years agoDon't add the current directory to the list of search paths. If the main file
uz [Wed, 1 Aug 2012 21:42:26 +0000 (21:42 +0000)]
Don't add the current directory to the list of search paths. If the main file
is located there, it is added anyway. If the main file is located elsewhere,
we don't want to search in the current directory.

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

12 years agoDocument that scopes don't have an effect on unnamed labels.
uz [Wed, 1 Aug 2012 19:32:38 +0000 (19:32 +0000)]
Document that scopes don't have an effect on unnamed labels.

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

12 years agoFix invalid header offset (has been changed in opendir.c but checkin of
uz [Wed, 1 Aug 2012 08:49:09 +0000 (08:49 +0000)]
Fix invalid header offset (has been changed in opendir.c but checkin of
readdir.c was missing).

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

12 years agoHave _em_load_driver exported here now that it is an asm function.
ol.sc [Tue, 31 Jul 2012 21:37:07 +0000 (21:37 +0000)]
Have _em_load_driver exported here now that it is an asm function.

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

12 years agoFixed a comment.
uz [Mon, 30 Jul 2012 19:02:07 +0000 (19:02 +0000)]
Fixed a comment.

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

12 years agoInclude the CBM disk label in the returned directory entries.
uz [Mon, 30 Jul 2012 19:01:45 +0000 (19:01 +0000)]
Include the CBM disk label in the returned directory entries.

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

12 years agoFixed a problem with a memcpy optimization (source and target have been
uz [Sat, 28 Jul 2012 12:26:57 +0000 (12:26 +0000)]
Fixed a problem with a memcpy optimization (source and target have been
swapped).

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

12 years agoForgot to add the new module that contains em_load_driver.
uz [Mon, 23 Jul 2012 06:18:58 +0000 (06:18 +0000)]
Forgot to add the new module that contains em_load_driver.

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

12 years agoAn already loaded driver is an error in ser_load_driver, because the library
uz [Sun, 22 Jul 2012 19:54:04 +0000 (19:54 +0000)]
An already loaded driver is an error in ser_load_driver, because the library
cannot know if it was dynamically loaded or statically linked.

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

12 years agoRewrote em_load_driver in assembler fixing a possible memory leak.
uz [Sun, 22 Jul 2012 11:36:09 +0000 (11:36 +0000)]
Rewrote em_load_driver in assembler fixing a possible memory leak.

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

12 years agoMore comment fixes.
uz [Sun, 22 Jul 2012 11:20:45 +0000 (11:20 +0000)]
More comment fixes.

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

12 years agoFixed a few comments.
uz [Sun, 22 Jul 2012 11:18:36 +0000 (11:18 +0000)]
Fixed a few comments.

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

12 years agoRewrote tgi_load_driver in assembler and fixed a possible memory leak when
uz [Sun, 22 Jul 2012 11:07:46 +0000 (11:07 +0000)]
Rewrote tgi_load_driver in assembler and fixed a possible memory leak when
doing so. Changed the behaviour in case a driver is already loaded: Since the
library cannot know if this driver was linked statically or loaded
dynamically, an already installed driver is considered an error. It must be
removed before calling tgi_load_driver.

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

12 years agoRetrofitted comments from GEOS overlay demo to regular overlay demo.
ol.sc [Thu, 19 Jul 2012 12:25:04 +0000 (12:25 +0000)]
Retrofitted comments from GEOS overlay demo to regular overlay demo.

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

12 years agoFixed an error in the macro package that prevented the macros to work
uz [Tue, 17 Jul 2012 18:30:05 +0000 (18:30 +0000)]
Fixed an error in the macro package that prevented the macros to work
correctly. The short forms of the jumps were never choosen. The error was
introduced with release 3176 in 2004(!) and reported by thefox.

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

12 years agoPermit the .string builtin function to work with scoped identifiers.
uz [Tue, 17 Jul 2012 18:28:07 +0000 (18:28 +0000)]
Permit the .string builtin function to work with scoped identifiers.

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

12 years agoMove the _filetype variable into its own module, so people who want to change
uz [Sun, 15 Jul 2012 12:34:35 +0000 (12:34 +0000)]
Move the _filetype variable into its own module, so people who want to change
the default can replace exactly this module without interfering with other
stuff.

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

12 years agoDo not add the file type to the name when using append mode. It causes more
uz [Sun, 15 Jul 2012 12:30:43 +0000 (12:30 +0000)]
Do not add the file type to the name when using append mode. It causes more
problems than it helps.

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

12 years agoFixed a problem with the optimizations for shifts.
uz [Thu, 12 Jul 2012 21:12:50 +0000 (21:12 +0000)]
Fixed a problem with the optimizations for shifts.

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

12 years agoAdded a test program to test the 16 bit shift ops.
uz [Thu, 12 Jul 2012 21:11:21 +0000 (21:11 +0000)]
Added a test program to test the 16 bit shift ops.

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

12 years agoAdded an option to output the assembly after each transformation step of the
uz [Thu, 12 Jul 2012 20:30:01 +0000 (20:30 +0000)]
Added an option to output the assembly after each transformation step of the
optimizer.

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

12 years agoEnable optimization for arithmetic right shift. NOTE: There's a bug lingering
uz [Wed, 11 Jul 2012 20:58:29 +0000 (20:58 +0000)]
Enable optimization for arithmetic right shift. NOTE: There's a bug lingering
in the shift code optimization which needs fixing.

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

12 years agoRewrite code for arithmetic right shift.
uz [Wed, 11 Jul 2012 20:57:02 +0000 (20:57 +0000)]
Rewrite code for arithmetic right shift.

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

12 years agoAdd another form of duplicate load removal.
uz [Tue, 10 Jul 2012 20:46:21 +0000 (20:46 +0000)]
Add another form of duplicate load removal.

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

12 years agoModifications for smaller code size.
uz [Tue, 10 Jul 2012 20:45:16 +0000 (20:45 +0000)]
Modifications for smaller code size.

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

12 years agoAdedd a few cross-references for the new cbm_k_ function descriptions.
uz [Mon, 9 Jul 2012 19:44:40 +0000 (19:44 +0000)]
Adedd a few cross-references for the new cbm_k_ function descriptions.

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

12 years agocbm_k_ functions documented
silverdr [Mon, 9 Jul 2012 19:23:52 +0000 (19:23 +0000)]
cbm_k_ functions documented

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

12 years agoRearrange order of opt steps for better efficiency.
uz [Sun, 8 Jul 2012 21:56:01 +0000 (21:56 +0000)]
Rearrange order of opt steps for better efficiency.

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

12 years agoReplacement in OptShift3 is even possible, when X is used later.
uz [Sun, 8 Jul 2012 13:05:57 +0000 (13:05 +0000)]
Replacement in OptShift3 is even possible, when X is used later.

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

12 years agoFixed an error.
uz [Sat, 7 Jul 2012 22:22:59 +0000 (22:22 +0000)]
Fixed an error.

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

12 years agoAdded optimization for complax.
uz [Sat, 7 Jul 2012 19:54:24 +0000 (19:54 +0000)]
Added optimization for complax.

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

12 years agoMore shift optimizations.
uz [Sat, 7 Jul 2012 19:24:17 +0000 (19:24 +0000)]
More shift optimizations.

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

12 years agoAdded a comment.
uz [Sat, 7 Jul 2012 19:09:23 +0000 (19:09 +0000)]
Added a comment.

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

12 years agoStart adding stuff that optimizes the new shift functions.
uz [Sat, 7 Jul 2012 17:56:39 +0000 (17:56 +0000)]
Start adding stuff that optimizes the new shift functions.

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

12 years agoIgnore a few more "harmless" functions when optimizing.
uz [Sat, 7 Jul 2012 17:36:15 +0000 (17:36 +0000)]
Ignore a few more "harmless" functions when optimizing.

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

12 years agoMove the optimization routines for shifts into a separate module.
uz [Sat, 7 Jul 2012 15:21:12 +0000 (15:21 +0000)]
Move the optimization routines for shifts into a separate module.

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