Commit Graph

11991 Commits

Author SHA1 Message Date
mrdudz
3d052ea4a3 remove some braces 2025-07-26 00:21:00 +02:00
Bob Andrews
b0e10e1f9a Merge pull request #2814 from jedeoric/master
telestrat target : lseek now returns position as it should
2025-07-26 00:18:38 +02:00
Bob Andrews
0a4af6df92 Merge pull request #2808 from kugelfuhr/kugelfuhr/flowanalysis
Simple flow analysis to find unreachable code
2025-07-26 00:10:21 +02:00
Bob Andrews
5809eaf037 Update libsrc/telestrat/lseek.s
Co-authored-by: kugelfuhr <98353208+kugelfuhr@users.noreply.github.com>
2025-07-26 00:01:07 +02:00
Bob Andrews
4e0806c6be Merge pull request #2813 from colinleroy/fix-pr-2778
Fix bug in PR #2778
2025-07-24 13:21:56 +02:00
jedeoric
87ce45ba01 telestrat target : lseek now returns position as it should 2025-07-23 22:49:15 +02:00
mrdudz
2c906474eb calculate the disk blocks in the linker config 2025-07-20 19:18:24 +02:00
Colin Leroy-Mira
6d96a952fd Stricter check for incax[1-8]
Thanks to @kugelfuhr

Co-authored-by: kugelfuhr <98353208+kugelfuhr@users.noreply.github.com>
2025-07-20 18:48:58 +02:00
Colin Leroy-Mira
fa1b6ed4f7 Address issues 2025-07-20 16:39:24 +02:00
Colin Leroy-Mira
095ee0b27c Merge branch 'master' into fix-pr-2778 2025-07-20 16:28:49 +02:00
Colin Leroy-Mira
8a793796d7 Coding style 2025-07-20 16:14:35 +02:00
Colin Leroy-Mira
8ba1cef550 Merge branch 'master' into Opt-ldptr1 2025-07-20 16:08:01 +02:00
Colin Leroy-Mira
2b2c082efb Fix bug in PR #2778
Don't replace incaxy like incax[1-8].
2025-07-20 14:36:30 +02:00
Colin Leroy-Mira
17b8645360 Optimize ldax?sp/sta/stx to ldptr1?sp 2025-07-20 12:24:24 +02:00
mrdudz
e554d0ccfb mark sequential GEOS files without RECORD table as such. 2025-07-20 02:01:37 +02:00
mrdudz
3ff1a9e463 another try. still not quite right apparently 2025-07-19 23:00:28 +02:00
Bob Andrews
32313a8c56 Merge pull request #2805 from kugelfuhr/kugelfuhr/remove-grc-artifacts
Remove .s files generated from .grc files
2025-07-19 20:11:13 +02:00
Bob Andrews
053f0a1b05 Merge pull request #2809 from JimmyDansbo/w65c02_capabilities
Added correct capabilities to W65C02 and 65CE02 CPUs
2025-07-19 20:08:06 +02:00
Bob Andrews
8bbe0f6972 Merge pull request #2810 from jedeoric/master
telestrat target : manage main return code
2025-07-19 20:06:35 +02:00
jedeoric
329ec64a4b telestrat target : manage main return code 2025-07-18 00:23:44 +02:00
Kugel Fuhr
61f3e43fb6 Rewrote an outdated comment. 2025-07-17 20:52:33 +02:00
Jimmy Dansbo
3cd1672ae5 Added correct capabilities to W65C02 and 65CD02 cpus 2025-07-17 19:17:03 +02:00
Kugel Fuhr
6d45a94127 Do not output a warning about a missing "return" in a function if the function
exit is unreachable.
2025-07-17 17:07:34 +02:00
Kugel Fuhr
ed54e9b168 Added several flow control tests. 2025-07-17 16:00:59 +02:00
Kugel Fuhr
f13284d3f8 Move the warning about unreachable code out of the Test() function and into
the callers. This has the effect that the location for the warning is much
more precise than before.
2025-07-17 15:43:15 +02:00
Kugel Fuhr
93b94d314a Implement a simple flow analysis. Tracks control flow of all statements with
the exception of "switch". Outputs warnings for unreachable code. Tracks also
"return" but doesn't currently make use of this information.
2025-07-17 15:39:45 +02:00
Kugel Fuhr
1c167b1ff1 Use cl65 to generate the object file from the grc file to avoid having an
intermediate .s file lying around that "make check" complains about.
2025-07-16 21:24:25 +02:00
Kugel Fuhr
e82656d8ca Remove .s files generated from .grc files. 2025-07-16 12:31:18 +02:00
Bob Andrews
3f3dc3d145 Merge pull request #2803 from kugelfuhr/kugelfuhr/fix-1162
Add a description for --memory-model to the docs
2025-07-16 00:56:36 +02:00
Bob Andrews
89704a6e37 Merge pull request #2802 from kugelfuhr/kugelfuhr/modernize-ld65-diags
Modernize ld65 diagnostics
2025-07-16 00:55:12 +02:00
Bob Andrews
25e6b42ef3 Merge pull request #2799 from kugelfuhr/kugelfuhr/fix-atari7800-cfg
Atari 7800: Make the EXTZP segment optional
2025-07-15 23:27:06 +02:00
Bob Andrews
61072ce3c7 Merge pull request #2797 from kugelfuhr/kugelfuhr/fix-2796
For the cpudetect tests, check the binary results for all instructions
2025-07-15 21:21:31 +02:00
Bob Andrews
14a6c66997 Merge pull request #2795 from kugelfuhr/kugelfuhr/fix-sortcheck
Fix an error in the sort check scripts.
2025-07-15 21:18:22 +02:00
Bob Andrews
a4c97c7ebc Merge pull request #2804 from mrdudz/geossample
add a geos resource file to the "ascii" sample
2025-07-15 20:48:01 +02:00
mrdudz
3ea8cae0ee add a geos resource file to the "ascii" sample, removes the linker warnings (and makes the program actually work in GEOS) 2025-07-15 17:56:45 +02:00
Christian Groessler
4cbdb55fbc Merge pull request #2798 from kugelfuhr/kugelfuhr/fix-2787
Move constructors into the ONCE segment for the creativision target
2025-07-14 20:32:37 +02:00
Kugel Fuhr
9ac02f3282 Move constructors into the ONCE segment to fix linker warnings. 2025-07-14 19:52:07 +02:00
Kugel Fuhr
f86f602b9e Add a description for --memory-model to the docs. 2025-07-14 16:45:42 +02:00
Kugel Fuhr
4120f35276 Added tests for warnings or errors that now have notifications. 2025-07-14 12:59:52 +02:00
Kugel Fuhr
170ddc6e33 Add a --warnings-as-errors option to cc65 for compatibility reasons. 2025-07-14 11:35:53 +02:00
Kugel Fuhr
d54844c76b Make the EXTZP segment optional for Atari 7800. 2025-07-14 07:03:53 +02:00
Kugel Fuhr
3dfde7baef For the cpudetect tests, check the binary results for all instructions, not
just for a few selected ones.
2025-07-13 21:43:34 +02:00
Kugel Fuhr
c7096ab6d7 Fix an error that was introduced by me in a4a24280f2:
Using a pipe causes a subshell to be generated so the "exit" statements will
just leave the subshell. As a consequence, the sortedxxx.sh scripts produced
output but no error exit code. Which in turn caused an error in #2778 to slip
through undetected.
2025-07-13 17:56:31 +02:00
Kugel Fuhr
2e4c18770b Add a --warnings-as-errors to cl65. 2025-07-13 16:34:36 +02:00
Kugel Fuhr
c2f17b6f6b When initialized data is found in a segment, print the first module where this
data comes from to ease debugging.
2025-07-13 16:34:29 +02:00
Kugel Fuhr
2e3edf9b1b Some reformatting and improved diagnostics. 2025-07-13 16:34:20 +02:00
Kugel Fuhr
3e81cd6ae0 Renames CfgError -> PError, CfgWarning -> PWarning. 2025-07-13 16:33:59 +02:00
Kugel Fuhr
7d963d4490 Change the output format for .assert. Use --no-utf8 for the tests. 2025-07-13 16:33:15 +02:00
Kugel Fuhr
074a3f513e Add the --color and --no-utf8 options to cl65 which will pass it to the tools
that understand it.
2025-07-13 16:33:03 +02:00
Kugel Fuhr
79967ff01b Support colors in diagnostic output. 2025-07-13 16:32:56 +02:00