mirror of
https://github.com/cc65/cc65.git
synced 2025-01-14 16:33:00 +00:00
Oliver Schmidt
912b0d9e93
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.
cc65 is a complete cross development package for 65(C)02 systems, including a powerful macro assembler, a C compiler, linker, librarian and several other tools. cc65 has C and runtime library support for many of the old 6502 machines, including - the following Commodore machines: VIC20 C16/C116 and Plus/4 C64 C128 CBM 510 (aka P500) the 600/700 family newer PET machines (not 2001). - the Apple ][+ and successors. - the Atari 8 bit machines. - GEOS for the C64 and C128. - the Nintendo Entertainment System (NES). - the Supervision console. - the Oric Atmos. - the Lynx console. The libraries are fairly portable, so creating a version for other 6502s shouldn't be too much work.
Languages
C
62.4%
Assembly
35.6%
PHP
0.7%
Makefile
0.6%
Perl
0.3%
Other
0.3%