Commit Graph

446 Commits

Author SHA1 Message Date
mrdudz
8615c244d9 add initial target for mega65, also added c65 where missing. reworked from #1792 2025-06-22 21:07:38 +02:00
mrdudz
9344d87b05 part of #1792 - 48GS02 assembler support 2025-06-21 00:56:34 +02:00
Bob Andrews
b29b50d363 Merge pull request #2701 from colinleroy/fix-tmp-files-again-again
Make sure pid and counter don't interfere
2025-06-14 18:48:39 +02:00
Colin Leroy-Mira
e3f9a5f052 Make sure pid and counter don't interfere 2025-06-14 13:02:28 +02:00
Bob Andrews
647a79bb2f Merge branch 'master' into checksorted 2025-06-14 02:16:34 +02:00
Bob Andrews
89651fd8bd Merge pull request #2699 from colinleroy/fix-temp-files-again
Fix temporary filenames again.
2025-06-13 20:44:28 +02:00
Colin Leroy-Mira
215f51a230 Fix temporary filenames again.
Outputting temp files in the output directory means we have
to distinguish source files in different source directories
that happen to have the same name.
2025-06-13 20:26:00 +02:00
Bob Andrews
b9eeec0c51 Merge pull request #2677 from sintech/agat-support
Agat support
2025-06-13 17:59:40 +02:00
Bob Andrews
f191272feb Merge branch 'master' into checksorted 2025-06-12 23:33:12 +02:00
Colin Leroy-Mira
ffd667c2c9 Fix temporary file name creation.
Use the original name as template for readability in
the map file, and use the process PID instead of platform-dependant
or deprecated random filename functions to make unique temporary
filenames. Also, create these temporary files in the output
directory.
2025-06-12 18:00:10 +02:00
mrdudz
aaa1058d32 use explicit markers (comments) for the bsearch table checking, simplifies the scripts and makes them more robust too :) 2025-06-09 21:48:20 +02:00
mrdudz
ba80de5efc fix bsearch tables that must be sorted, add comment to all tables that must be sorted 2025-06-09 17:58:58 +02:00
Konstantin
cbf1b1d5a7 Updated translation table 2025-06-07 14:00:10 +03:00
Konstantin
de524a6561 Initial Agat support 2025-06-04 22:51:17 +03:00
Gorilla Sapiens
9ae0eaafcc fixed inaccurate comment 2025-05-27 14:13:52 +00:00
Gorilla Sapiens
a1139aa6b8 removed dangling space 2025-05-27 06:31:54 +00:00
Gorilla Sapiens
ca8b072608 fixed another pedantic github build problem 2025-05-27 06:30:12 +00:00
Gorilla Sapiens
9a2f754e8d fixes problems found by github autobuild 2025-05-27 06:18:24 +00:00
Gorilla Sapiens
e451134e23 fixes issue #2446 2025-05-27 05:03:17 +00:00
Gorilla Sapiens
6a17aedd81 conform to 6.4.4.4 for hex and octal escapes
fixes problem noted in #2610
2025-05-02 05:03:55 +00:00
Bob Andrews
7297d2c8b6 Merge pull request #2310 from pm100/vs64
second try at fixing win64 build
2023-12-31 18:54:23 +01:00
paul moore
08341aae30 second try at fixing win64 build 2023-12-14 14:25:35 -08:00
mrdudz
b1c1502494 MS compiler insists on those typecasts apparently 2023-12-11 00:35:07 +01:00
mrdudz
9985ee7f61 fix %hhn and %hn in the internal xvsnprintf function 2023-12-11 00:18:40 +01:00
rumbledethumps
b17c4d3434 add rp6502 target 2023-11-16 18:46:16 -08:00
Spiro Trikaliotis
727b3288d6 Remove .exe from file output
Whenever a tool like ld65 wants to output its name into a log file, it
uses the name of command-line parameter 0. However, this parameter also
includes the .exe suffix if it is on Windows.

This patch removes the .exe suffix, so that the output is clean and
consistent across platforms.

This fixes #1990.
2023-02-17 17:22:55 +01:00
Rutger van Bergen
ae23e47eb5 Merge branch 'cc65:master' into master 2022-12-26 13:57:10 +01:00
mrdudz
15eb1c5f5e support the msvc specific I64 specifier in our sprintf 2022-11-28 06:26:14 +01:00
Silver Dream !
2dcccae036 Updated ATTR_UNUSED() for clang 2022-11-06 11:27:08 +00:00
mrdudz
5d1ad05cb8 oops 2022-11-05 20:48:53 +01:00
mrdudz
1452d8164d add ATTR_UNUSED and ATTR_NORETURN 2022-11-05 20:37:41 +01:00
Rutger van Bergen
cb8cb876ec Add documentation, make capitalization uniform 2022-09-19 19:56:57 +02:00
Dave Plummer
799aec23a6 Add KIM-1 Support 2022-06-04 13:00:48 -07:00
Greg King
93e94c8dea Fixed a multi-line comment.
The left border is thicker in cc65 than it is in VICE.
2022-05-18 05:09:48 -04:00
mrdudz
f67fb3b326 define __CC65__ as ((VER_MAJOR * 0x100) + VER_MINOR), fixes issue #1667 2022-05-10 01:12:13 +02:00
Bob Andrews
71cec58d86 Adjust comments 2022-05-05 14:24:02 +02:00
rofl0r
20dd6fd872 change GetProgPath() to return full & resolved binary path
GetProgPath() now resolves the path derived from argv[0] always
via realpath(3p) to its real location in the filesystem, and returns
the path including binary name, effectively making it work like
windows' GetModuleFileName(), so we can re-use the existing code
to strip the trailing binary name.
since symlinks are now always resolved, we no longer need the
special case code for linux to use /proc/self/exe for this purpose.
2022-05-02 08:22:21 +00:00
Bob Andrews
74f92564c3 Try reading from /proc/self first on linux, this is needed to make the edgy "make avail" work 2022-04-30 15:01:58 +02:00
rofl0r
d78672a4b4 rename AddSubSearchPathFromWinBin to AddSubSearchPathFromBin 2022-04-28 18:35:05 +00:00
rofl0r
b32c12dd83 implement AddSubSearchPathFromWinBin() counterpart for unix
this looks up paths relative to the binary used to start the
specific application.
2022-04-28 18:35:05 +00:00
rofl0r
13081e0989 remove orphaned STRINGIZE macro 2022-04-25 17:12:09 +00:00
rofl0r
bf1ef6157c build: properly quote strings passed as cpp macros
until now, the strings intended to be hardcoded into the binary,
such as directory names and build id, were passed unquoted, which
means they're interpreted by the preprocessor as C tokens, rather
than strings, which can result in all sorts of "interesting"
behaviour such as interpreting paths starting with // as C++-style
comment.
this was then worked around using a stringize macro which turned
the tokens into a string (if they happened to be in a compatible
format).

adresses #1726
2022-04-25 16:52:46 +00:00
mrdudz
3c1bb85b8e remove dangling spaces 2022-04-17 16:07:09 +02:00
Bob Andrews
4cf7db1ef5 Merge pull request #1692 from karrika/atari7800
#805 Atari7800 target
2022-03-20 20:39:36 +01:00
nyanpasu64
9cb81f1410 Replace #include "inttypes.h" with <inttypes.h> 2022-03-06 14:48:51 -08:00
nyanpasu64
2feba69622 Remove broken inttypes.h
src/common/inttypes.h is a shim to fix building cc65 on
non-C99-compliant compilers missing inttypes.h (like VS2012 and
earlier). The shim is actually incomplete and does not define the PRI...
macros supplied by the actual compiler headers. Since we're planning to
use those macros, delete this header so cc65's source files instead use
host-supplied inttypes.h containing macro definitions.
2022-03-06 14:47:58 -08:00
Karri Kaksonen
3266e70de4 Add target atari7800 2022-03-01 06:44:55 +02:00
Jeff Tranter
2bf8be5b3b Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05:00
Wayne Parham
044a0838a3 Changes to existing cc65 source to support Synertek Systems Sym-1 2021-05-09 16:52:48 -05:00
Oliver Schmidt
5d84a4ba13 Removed non-ASCII chars. 2021-04-19 16:06:10 +02:00