]> git.sur5r.net Git - cc65/log
cc65
11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 24 Jun 2013 06:45:21 +0000 (08:45 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoFixed comment.
Oliver Schmidt [Fri, 21 Jun 2013 10:36:37 +0000 (12:36 +0200)]
Fixed comment.

11 years agoFixed comment.
Oliver Schmidt [Fri, 21 Jun 2013 10:35:35 +0000 (13:35 +0300)]
Fixed comment.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Fri, 21 Jun 2013 09:53:56 +0000 (11:53 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMerge pull request #15 from groessler/something_to_pull
Oliver Schmidt [Fri, 21 Jun 2013 09:39:20 +0000 (02:39 -0700)]
Merge pull request #15 from groessler/something_to_pull

Fix writing one byte beyond screen buffer.

11 years agoFix writing one byte beyond screen buffer. 15/head
Christian Groessler [Thu, 20 Jun 2013 23:53:13 +0000 (01:53 +0200)]
Fix writing one byte beyond screen buffer.

11 years agoFix writing one byte beyond screen buffer.
Christian Groessler [Thu, 20 Jun 2013 23:53:13 +0000 (01:53 +0200)]
Fix writing one byte beyond screen buffer.

11 years agocleanups and add more comments
Christian Groessler [Thu, 20 Jun 2013 22:01:07 +0000 (00:01 +0200)]
cleanups and add more comments

11 years agoFix check whether there is enough memory btw. MEMLO and the program
Christian Groessler [Thu, 20 Jun 2013 21:31:41 +0000 (23:31 +0200)]
Fix check whether there is enough memory btw. MEMLO and the program
load address to move screen buffer there.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Wed, 19 Jun 2013 09:06:17 +0000 (11:06 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agosome cleanups
Christian Groessler [Wed, 19 Jun 2013 09:05:03 +0000 (11:05 +0200)]
some cleanups

11 years agoSimply define CH_DEL exactly then when there none yet.
Oliver Schmidt [Tue, 18 Jun 2013 17:06:46 +0000 (19:06 +0200)]
Simply define CH_DEL exactly then when there none yet.

11 years agoAdd indication on the screen of occurring IRQs and NMIs (only for debug version).
Christian Groessler [Tue, 18 Jun 2013 11:00:51 +0000 (13:00 +0200)]
Add indication on the screen of occurring IRQs and NMIs (only for debug version).
NMI handler: set I status bit to original value before interrupt before chaining
to ROM NMI handler.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 17 Jun 2013 21:54:49 +0000 (23:54 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAvoid macro redefinition of CH_DEL for apple2enh.
Oliver Schmidt [Mon, 17 Jun 2013 19:41:25 +0000 (21:41 +0200)]
Avoid macro redefinition of CH_DEL for apple2enh.

I'm wondering why MS VC++ didn't complain about this...

11 years agoHave __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__.
Oliver Schmidt [Mon, 17 Jun 2013 19:34:08 +0000 (21:34 +0200)]
Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__.

11 years agomake one more debug message ".ifdef DEBUG"
Christian Groessler [Mon, 17 Jun 2013 16:56:28 +0000 (18:56 +0200)]
make one more debug message ".ifdef DEBUG"

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Thu, 13 Jun 2013 20:59:14 +0000 (22:59 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAvoid GCC "unconst" warning.
Oliver Schmidt [Thu, 13 Jun 2013 13:26:17 +0000 (15:26 +0200)]
Avoid GCC "unconst" warning.

11 years agoBetter cleanup on program exit on atarixl target
Christian Groessler [Wed, 12 Jun 2013 23:17:53 +0000 (01:17 +0200)]
Better cleanup on program exit on atarixl target

11 years agoMove scrdev into it's own file. On the atarixl target it will be referenced by crt0.s.
Christian Groessler [Wed, 12 Jun 2013 23:16:35 +0000 (01:16 +0200)]
Move scrdev into it's own file. On the atarixl target it will be referenced by crt0.s.

11 years agobetter error message
Christian Groessler [Wed, 12 Jun 2013 23:16:05 +0000 (01:16 +0200)]
better error message

11 years agosome debug messages ".ifdef DEBUG"
Christian Groessler [Wed, 12 Jun 2013 23:07:40 +0000 (01:07 +0200)]
some debug messages ".ifdef DEBUG"

11 years agoAdd handling of write requests
Christian Groessler [Wed, 12 Jun 2013 22:54:03 +0000 (00:54 +0200)]
Add handling of write requests

11 years agointermediate check-in -- added handling of read requests
Christian Groessler [Wed, 12 Jun 2013 11:27:28 +0000 (13:27 +0200)]
intermediate check-in -- added handling of read requests

11 years agoadd LOWBUFS segment
Christian Groessler [Wed, 12 Jun 2013 11:26:26 +0000 (13:26 +0200)]
add LOWBUFS segment

11 years agointermediate check-in
Christian Groessler [Mon, 10 Jun 2013 12:22:30 +0000 (14:22 +0200)]
intermediate check-in

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 10 Jun 2013 11:44:52 +0000 (13:44 +0200)]
Merge remote-tracking branch 'upstream/master'

Conflicts:
asminc/atari.inc

11 years agoMerge pull request #14 from groessler/something_to_pull
Oliver Schmidt [Mon, 10 Jun 2013 11:38:10 +0000 (04:38 -0700)]
Merge pull request #14 from groessler/something_to_pull

Use symbolic names for all CIO commands.

11 years agoremove TABs 14/head
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
remove TABs

11 years agoUse symbolic names for all CIO commands.
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
Use symbolic names for all CIO commands.

11 years agoUse symbolic names for all CIO commands.
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
Use symbolic names for all CIO commands.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Fri, 7 Jun 2013 21:29:49 +0000 (23:29 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAdded support for 'prefix'.
Oliver Schmidt [Fri, 7 Jun 2013 21:13:46 +0000 (23:13 +0200)]
Added support for 'prefix'.

If the variable 'prefix' is defined then the builtin search paths are set to
$(prefix)/lib/cc65/... allowing to build binaries intended for installation.

Note that the library build still works with these binaries as it generally
overrides the builtin search paths by setting the CC65_HOME env var.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Wed, 5 Jun 2013 21:09:32 +0000 (23:09 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoUse unique variables for cc65 toolchain.
Oliver Schmidt [Tue, 4 Jun 2013 21:39:00 +0000 (23:39 +0200)]
Use unique variables for cc65 toolchain.

Originally I used the usual variables (like $(CC) and $(CFLAGS) ) but after
all this doesn't make sense as any predefined values and/or user defined
settings can only be wrong.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Tue, 4 Jun 2013 08:54:34 +0000 (10:54 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAdded library reference tgi_libref to TGI interface.
Oliver Schmidt [Sat, 1 Jun 2013 10:42:00 +0000 (12:42 +0200)]
Added library reference tgi_libref to TGI interface.

11 years agoAdded library reference ser_libref to SER interface.
Oliver Schmidt [Sat, 1 Jun 2013 09:03:14 +0000 (11:03 +0200)]
Added library reference ser_libref to SER interface.

11 years agoAdded library reference mouse_libref to MOU interface.
Oliver Schmidt [Fri, 31 May 2013 22:53:17 +0000 (00:53 +0200)]
Added library reference mouse_libref to MOU interface.

11 years agoAdded library reference joy_libref to JOY interface.
Oliver Schmidt [Fri, 31 May 2013 22:36:08 +0000 (00:36 +0200)]
Added library reference joy_libref to JOY interface.

11 years agoAdded library reference em_libref to EMD interface.
Oliver Schmidt [Fri, 31 May 2013 22:11:31 +0000 (00:11 +0200)]
Added library reference em_libref to EMD interface.

Occasionally dynamically drivers suffer from not being to refer to
content in the C library. Therefore I added a mechanism to allow
a C library for a certian target to define a symbol that will be
handed over to dynamic drivers for that target. Then the drivers
can use their refernce to that symbol to access content in the C
library.

11 years agoExplicitly set search paths for libraries build.
Oliver Schmidt [Fri, 31 May 2013 19:30:14 +0000 (21:30 +0200)]
Explicitly set search paths for libraries build.

The libraries build is prepared to work with binaries not part of the current
working tree. But in this case the default search path surely points to some
other working tree. Even the binaries in this working tree might have been
compiled with non-standard builtin search paths.

Anyway when building the libraries we want always to use the headers from
the current working tree. Therefore we want to set them explicitly. Instead
of setting all in all five paths on the command lines of ca65, cc65 and ld65 I
opted to just set the single environment variable.

11 years agosmall cleanup
Christian Groessler [Fri, 31 May 2013 12:49:46 +0000 (14:49 +0200)]
small cleanup

11 years agoTake SHADOW_RAM size into account.
Christian Groessler [Fri, 31 May 2013 12:49:25 +0000 (14:49 +0200)]
Take SHADOW_RAM size into account.

11 years agoWhen turning the ROM off and on, also change the chargen pointer.
Christian Groessler [Thu, 30 May 2013 23:50:07 +0000 (01:50 +0200)]
When turning the ROM off and on, also change the chargen pointer.

11 years agosome more changes -- atarixl target basically works now
Christian Groessler [Thu, 30 May 2013 23:47:25 +0000 (01:47 +0200)]
some more changes -- atarixl target basically works now

11 years agoHandlers which manage the banking in and out of the ROM.
Christian Groessler [Thu, 30 May 2013 23:45:53 +0000 (01:45 +0200)]
Handlers which manage the banking in and out of the ROM.

11 years agoadd more saved content
Christian Groessler [Thu, 30 May 2013 23:42:30 +0000 (01:42 +0200)]
add more saved content

11 years agomove ZPSAVE content into its own file (used by 2nd load chunk and crt0.s in atarixl...
Christian Groessler [Thu, 30 May 2013 23:40:45 +0000 (01:40 +0200)]
move ZPSAVE content into its own file (used by 2nd load chunk and crt0.s in atarixl target)

11 years agoadapt to atarixl target
Christian Groessler [Thu, 30 May 2013 23:38:16 +0000 (01:38 +0200)]
adapt to atarixl target

11 years agorename CIOV and SIOV to CIOV_org and SIOV_org for atarixl target
Christian Groessler [Thu, 30 May 2013 23:37:40 +0000 (01:37 +0200)]
rename CIOV and SIOV to CIOV_org and SIOV_org for atarixl target

11 years agomove ZPSAVE into area already saved by 2nd load chunk
Christian Groessler [Thu, 30 May 2013 23:35:19 +0000 (01:35 +0200)]
move ZPSAVE into area already saved by 2nd load chunk

11 years agoCode & data for "shadow RAM preparation" load chunk in the atarixl target.
Christian Groessler [Thu, 30 May 2013 00:34:06 +0000 (02:34 +0200)]
Code & data for "shadow RAM preparation" load chunk in the atarixl target.
Intermediate check-in, unfinished...

11 years agoCode & data for "system check" load chunk in the atarixl target.
Christian Groessler [Thu, 30 May 2013 00:33:09 +0000 (02:33 +0200)]
Code & data for "system check" load chunk in the atarixl target.

11 years ago"save area" is used to save modified system variables and ports. It's
Christian Groessler [Thu, 30 May 2013 00:31:25 +0000 (02:31 +0200)]
"save area" is used to save modified system variables and ports. It's
shared between the second and main chunk.

11 years agoSome small first changes for the 'atarixl' target.
Christian Groessler [Thu, 30 May 2013 00:30:19 +0000 (02:30 +0200)]
Some small first changes for the 'atarixl' target.

11 years agoAdd two load chunks:
Christian Groessler [Thu, 30 May 2013 00:26:15 +0000 (02:26 +0200)]
Add two load chunks:
 - First chunk checks system (if it's XL and memory is ok).
 - Second chunk contains the contents for the shadow memory beneath the
   ROM and copies the contents to their destination address.
   It also moves the screen memory to low memory in front of the program.

11 years agoUse cbm_load() to load overlays on CBMs.
Oliver Schmidt [Tue, 28 May 2013 23:12:24 +0000 (01:12 +0200)]
Use cbm_load() to load overlays on CBMs.

11 years agoFixed discrepancy between definition and declaration.
Oliver Schmidt [Tue, 28 May 2013 20:16:07 +0000 (22:16 +0200)]
Fixed discrepancy between definition and declaration.

11 years agoBrought back mouse driver source code.
Oliver Schmidt [Tue, 28 May 2013 20:07:04 +0000 (22:07 +0200)]
Brought back mouse driver source code.

The mouse driver source code in question was removed two years
ago with commit 6cbbe66c87fc19c322a0dd72a5c8ef094ea90c90.
It seems however desirable to have it around visible in the source
code tree for reference purposes.

11 years agoIntroduced target 'atarixl'.
Oliver Schmidt [Tue, 28 May 2013 19:56:37 +0000 (21:56 +0200)]
Introduced target 'atarixl'.

The target 'atarixl' is to be used for Atari XL (and better) machines.
It will disable the OS ROM and enable the Shadow RAM available on
those machine.

Note: This commit is only the inital step towards for this goal that just
replicates the target 'atari' as a starting point!

11 years agoRenamed Atari drivers.
Oliver Schmidt [Tue, 28 May 2013 19:20:37 +0000 (21:20 +0200)]
Renamed Atari drivers.

As a preparation for the introduction of the 'atarixl' target it is
necessary that all drivers have a base name...
- no longer than 7 characters
- with a common prefix

11 years agoAdjusted usage.
Oliver Schmidt [Fri, 24 May 2013 16:36:59 +0000 (18:36 +0200)]
Adjusted usage.

11 years agoAdded support for cc65 program arguments.
Oliver Schmidt [Fri, 24 May 2013 16:36:30 +0000 (18:36 +0200)]
Added support for cc65 program arguments.

11 years agoNo delimiter comment between includes and first segment.
Oliver Schmidt [Fri, 24 May 2013 16:29:31 +0000 (18:29 +0200)]
No delimiter comment between includes and first segment.

11 years agoThe paravirtualization hooks are called for JMP too so there's no need for JSR.
Oliver Schmidt [Fri, 24 May 2013 16:25:16 +0000 (18:25 +0200)]
The paravirtualization hooks are called for JMP too so there's no need for JSR.

11 years agoFixed Carry handling in SBC opcode.
Oliver Schmidt [Tue, 21 May 2013 21:47:19 +0000 (23:47 +0200)]
Fixed Carry handling in SBC opcode.

11 years agoMade lib build less verbose if run as Travis CI build.
Oliver Schmidt [Tue, 21 May 2013 19:46:03 +0000 (21:46 +0200)]
Made lib build less verbose if run as Travis CI build.

Travis CI limits the real time build output to 10000 lines. We need to be less verbose in the lib build to stay below that threshold.

11 years agoAdjusted sim65 MS VC build settings to the ones of the other binaries.
Oliver Schmidt [Tue, 21 May 2013 18:54:33 +0000 (20:54 +0200)]
Adjusted sim65 MS VC build settings to the ones of the other binaries.

11 years agoAdded 'sim6502' and 'sim65C02' targets.
Oliver Schmidt [Mon, 20 May 2013 18:35:42 +0000 (20:35 +0200)]
Added 'sim6502' and 'sim65C02' targets.

The targets allow to run cc65 programs in the sim65 exection
einvironment. As there are no "real" i/o facilities there's no
need for header files. Paravirtualized entry points are mapped
to $FFF0 ff. There's a large cc65 progam area from $0200-$FFEF.

The binary format includes a one-byte header indicating the required
execution environment: The value 0 means 6502 and the value 1
means 65C02. The load adress for the binary is fixed to $0200.

Note: Running sim65C02 programs currently doesn't work bcause
sim65 doesn't actually implement 65C02 opcodes.

11 years agoTurned sim65 into a lightweight cc65 execution environment.
Oliver Schmidt [Mon, 20 May 2013 18:20:14 +0000 (20:20 +0200)]
Turned sim65 into a lightweight cc65 execution environment.

The sim65 source code has been a construction site for over a decade.
I was looking for a simple cc65 program execution environment for
regression tests. So I decided to re-purpose sim65 for that task by
removing about everything but the 6502 emulation.

There's no memory mapped i/o emulation whatsoever. Rather exit(),
open(), close(), read() and write() calls are supported by mapping
them through a thin paravirtualization layer to the corresponding
host os functions.

Note: The sim65 6502 emulation provides means to switch between
6502 and 65C02 emulation but currently there are no actual 65C02
opcodes implemented.

11 years agoHave 'avail' not be dependent on 'all'.
Oliver Schmidt [Fri, 17 May 2013 14:21:05 +0000 (16:21 +0200)]
Have 'avail' not be dependent on 'all'.

There are two reasons for removing this dependency:
- If someone does 'make avail' on the top level Makefile he ends up with
  binaries but without libraries - not nice. Better do just "nothing" and
  have hin understand that he needs to do 'make [all]' on the top level
  Makfile first.
- If 'make avail' is done via 'sudo' it isn't desirable to do a large amount
  of work as root.
BTW: I wasn't sure if this dependency is a good thing in the first place
but I saw it in many examples ('install' depending on 'all') so I did it too.

11 years agoRenamed [un]install goals to [un]avail.
Oliver Schmidt [Wed, 15 May 2013 09:59:51 +0000 (11:59 +0200)]
Renamed [un]install goals to [un]avail.

The [un]install make goals have a rather fixed meaning for *ix users. The simple
symlinks provided here don't match the expectations users have from [un]install.
Therefore it is appropriate to rename them to "something" not tied to specific
expectations.

11 years agoBumped version to 2.14.0. V2.14
Oliver Schmidt [Sun, 12 May 2013 16:39:48 +0000 (18:39 +0200)]
Bumped version to 2.14.0.

The cmdline parameter handling as become quite incompatible to 2.13.3 so it seems
appropriate to increase the minor version.

11 years agoMade dependency handling for C sources actually work.
Oliver Schmidt [Sun, 12 May 2013 16:19:46 +0000 (18:19 +0200)]
Made dependency handling for C sources actually work.

11 years agoMerge pull request #10 from greg-king5/target-util
Oliver Schmidt [Fri, 10 May 2013 10:15:09 +0000 (03:15 -0700)]
Merge pull request #10 from greg-king5/target-util

Made geos-apple's file-converter depend on apple2enh's library.

11 years agoMade geos-apple's file-converter depend on apple2enh's library. 10/head
Greg King [Thu, 9 May 2013 18:46:04 +0000 (14:46 -0400)]
Made geos-apple's file-converter depend on apple2enh's library.

The geos-apple target will build that library if it doesn't exist.

11 years agoForce warning-free build (and added missing clean target).
Oliver Schmidt [Thu, 9 May 2013 12:25:25 +0000 (14:25 +0200)]
Force warning-free build (and added missing clean target).

11 years agoAllow for warning-free build of libraries.
Oliver Schmidt [Thu, 9 May 2013 12:24:13 +0000 (14:24 +0200)]
Allow for warning-free build of libraries.

11 years agoRemoved (pretty inconsistently used) tab chars from source code base.
Oliver Schmidt [Thu, 9 May 2013 11:56:54 +0000 (13:56 +0200)]
Removed (pretty inconsistently used) tab chars from source code base.

11 years agoAdjusted C declarations to the changed static driver names.
Oliver Schmidt [Thu, 9 May 2013 08:20:03 +0000 (10:20 +0200)]
Adjusted C declarations to the changed static driver names.

11 years agoInclude targetutil intermediates in dependency handling.
Oliver Schmidt [Thu, 9 May 2013 07:27:36 +0000 (09:27 +0200)]
Include targetutil intermediates in dependency handling.

11 years agoRemoved unintentionally committed intermediate file.
Oliver Schmidt [Thu, 9 May 2013 07:18:19 +0000 (09:18 +0200)]
Removed unintentionally committed intermediate file.

11 years agoSearch for "local" binaries only once.
Oliver Schmidt [Wed, 8 May 2013 23:37:09 +0000 (01:37 +0200)]
Search for "local" binaries only once.

11 years agoHack: Changed TARGET order to have apple2enh.lib available for convert.system.
Oliver Schmidt [Wed, 8 May 2013 23:32:48 +0000 (01:32 +0200)]
Hack: Changed TARGET order to have apple2enh.lib available for convert.system.

There's a quite special case of a targetutil for the TARGET geos-apple having to be
built as TARGET apple2enh binary. We can't just add a dependency to ../lib/apple2enhlib
because the TARGETs are built in individual make instances (because of vpath).

Doing that the "right way" would be _very_ complicated and would turn the Makefiles way
less readable. Therefore I decided to solve that by just reordering the TARGETs. Surely
this won't work if i.e. 'make geos-apple' is entered on a clean system. But still I consider
it appropriate.

I ordered the TARGETs btw so that they are more in an alphabetical order...

11 years agoAdded support for building targetutils.
Oliver Schmidt [Wed, 8 May 2013 23:12:26 +0000 (01:12 +0200)]
Added support for building targetutils.

11 years agoAdded support for building 'extra' object files.
Oliver Schmidt [Wed, 8 May 2013 21:27:58 +0000 (23:27 +0200)]
Added support for building 'extra' object files.

11 years agoNo packages here.
Oliver Schmidt [Wed, 8 May 2013 20:43:58 +0000 (22:43 +0200)]
No packages here.

11 years agoMerge pull request #8 from greg-king5/generic
Oliver Schmidt [Wed, 8 May 2013 06:55:14 +0000 (23:55 -0700)]
Merge pull request #8 from greg-king5/generic

Added two useful opcode mnemonic aliases.

11 years agoAdded two useful opcode mnemonic aliases. 8/head
Greg King [Tue, 7 May 2013 23:59:16 +0000 (19:59 -0400)]
Added two useful opcode mnemonic aliases.

bnz - jump if not zero.
bze - jump if zero.

11 years agoRemoved reference to CC65_HOME.
Oliver Schmidt [Tue, 7 May 2013 15:58:56 +0000 (17:58 +0200)]
Removed reference to CC65_HOME.

Now that we're pretty much independent from CC65_HOME
it doesn't make sense anymore to look for it in the Makefiles.

So rather dynamically check if there are "local" binaries in the
../bin directory. If there are "local" binaries use them - and
otherwise rely on "installed" binaries found in the path.

11 years agoAllow to build just the binaries or just the libraries from the top level Makefile.
Oliver Schmidt [Tue, 7 May 2013 15:49:35 +0000 (17:49 +0200)]
Allow to build just the binaries or just the libraries from the top level Makefile.

11 years agoMerge pull request #7 from greg-king5/config-buf
Oliver Schmidt [Tue, 7 May 2013 17:02:15 +0000 (10:02 -0700)]
Merge pull request #7 from greg-king5/config-buf

Removed unneeded variable and function.

11 years agoMerge pull request #6 from greg-king5/forget-path
Oliver Schmidt [Tue, 7 May 2013 15:11:39 +0000 (08:11 -0700)]
Merge pull request #6 from greg-king5/forget-path

Removed useless command-line option.

11 years agoRemoved useless command-line option. 6/head
Greg King [Tue, 7 May 2013 04:54:44 +0000 (00:54 -0400)]
Removed useless command-line option.

11 years agoRemoved unneeded variable and function. 7/head
Greg King [Tue, 7 May 2013 00:35:18 +0000 (20:35 -0400)]
Removed unneeded variable and function.
They were used with built-in configurations.
Commit 37c492b544dec2460fc2c16a3d66275cc0d4edc0 made them obsolete.

11 years agoHave cl65 run the binaries from its own directory.
Oliver Schmidt [Mon, 6 May 2013 22:47:37 +0000 (00:47 +0200)]
Have cl65 run the binaries from its own directory.

While ca65, cc65 and ld65 have built-in paths cl65 doesn't.
That means that up to now cl65 depended on the binaries
being found in the path env var. However it makes sense
to presume that the binaries are located in the very same
directory cl65 is located in. So whatever pathname was
suitable to run cl65 should be suitable to run the other
binaries too. But if for some reason there's no valid
argv[0] or if it doesn't contain at least one directory
delimiter ('/' or '\') then fall back to relying on the
path env var.

11 years agoAdded reference to unused variable to avoid GCC 4.6 warning.
Oliver Schmidt [Mon, 6 May 2013 21:31:00 +0000 (23:31 +0200)]
Added reference to unused variable to avoid GCC 4.6 warning.

11 years agoAdded search path relative to running binary on Windows.
Oliver Schmidt [Mon, 6 May 2013 21:20:56 +0000 (23:20 +0200)]
Added search path relative to running binary on Windows.

In contrast to *IX it doesn't make much sense to add compile time defined
search paths to Windows binaries: There's no standard path like /usr/local/bin
(and there are no symbolic links to link from there to another location).

On the other hand it's (again in contrast to *IX) easy for Windows binaries
to determine their own paths. Therefore it's appropriate to make use of that
to add run time defined default search paths.