1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 02:17:07 +00:00
Commit Graph

11964 Commits

Author SHA1 Message Date
Joshua Bell 873361ba83 Show used values in listing 2025-08-22 09:49:04 -07:00
Joshua Bell f18de5bc73 Remove accidentally included file 2025-08-22 09:37:23 -07:00
Joshua Bell 939276669f Tests for scopes and issue #479 / PR #1358 2025-08-21 10:07:54 -07:00
Daniel Serpell 2454ab831c When creating a new scope for a forwarded symbol, do not open it.
This fixes las example in the PR.
2025-08-17 20:24:08 -04:00
Daniel Serpell acc26c0e7b When the scope is not found on ancestors, create on current scope.
This solves comment https://github.com/cc65/cc65/pull/1358#issuecomment-3193961949
2025-08-16 22:28:32 -04:00
Daniel Serpell 2323f46a54 Only search a symbol in parent scopes if not already scoped.
This fixes the case at: https://github.com/cc65/cc65/pull/1358#issuecomment-747194906
2025-08-16 17:29:12 -04:00
Daniel Serpell 76e31e5b75 Document usage of scope before definitions.
Note that before the last commit, the example did not assemble.
2025-08-16 11:17:43 -04:00
Daniel Serpell 5b70654289 Allows referencing a scope not yet created.
Use the "::" syntax at the start of the symbol to force creating
a scope if it does not exists yet.

Fixes issue #479.
2025-08-16 11:17:35 -04:00
mrdudz 6efe447d14 add some strategic git ignores, should satisfy #2818 2025-07-27 17:29:59 +02:00
Bob Andrews 5197c56c7c Merge pull request #2794 from mrdudz/fixgrc
Fixgrc
2025-07-27 00:23:02 +02:00
Bob Andrews d06e0d9a16 Merge pull request #2812 from colinleroy/Opt-ldptr1
Optimize ldax?sp/sta/stx to ldptr1?sp
2025-07-27 00:22:21 +02:00
Bob Andrews 17c8e2154b Merge pull request #2811 from colinleroy/OptTosLoadPop
Optimize jsr ldax0sp/incsp2
2025-07-27 00:21:50 +02:00
Colin Leroy-Mira 1f6cca2140 Coding style 2025-07-27 00:02:48 +02:00
Colin Leroy-Mira a0b705fd41 Remove code after inserting new one 2025-07-27 00:02:48 +02:00
Colin Leroy-Mira 0647cb1112 Merge jsr pushax/j?? popax into nothing or RTS 2025-07-27 00:02:48 +02:00
Colin Leroy-Mira 4c2cc24e77 Optimize jsr ldax0sp/incsp2 2025-07-27 00:02:18 +02:00
Colin Leroy-Mira aa936b6d12 Fix copyright 2025-07-26 23:59:02 +02:00
mrdudz cb39da2fba Use spaces instead of tabs in the output files 2025-07-26 23:52:14 +02:00
Bob Andrews 4c6c8b2430 Merge pull request #2819 from kugelfuhr/kugelfuhr/improved-flowanalysis
Improved flowanalysis for cc65
2025-07-26 23:37:49 +02:00
Kugel Fuhr 228671b7c4 Added another test. 2025-07-26 10:17:32 +02:00
Kugel Fuhr 8f4a4040d6 Complete unreachable checking for switch statements. 2025-07-26 09:03:27 +02:00
Kugel Fuhr 70c1bd5e3c Improved flow analysis in general and especially for "for" loops. Added more
tests.
2025-07-26 09:03:04 +02:00
Kugel Fuhr 8ac25376a0 Fix the "double semicolon" problem where a double semicolon after a statement
that makes the following code unreachable led to an "unreachable code" warning.
2025-07-26 09:02:54 +02:00
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