Commit Graph

760 Commits

Author SHA1 Message Date
Colin Leroy-Mira
095ee0b27c Merge branch 'master' into fix-pr-2778 2025-07-20 16:28:49 +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
Bob Andrews
89704a6e37 Merge pull request #2802 from kugelfuhr/kugelfuhr/modernize-ld65-diags
Modernize ld65 diagnostics
2025-07-16 00:55:12 +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
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
7d963d4490 Change the output format for .assert. Use --no-utf8 for the tests. 2025-07-13 16:33:15 +02:00
Bob Andrews
18805b8df9 Merge pull request #2792 from mrdudz/sometests
test for #2208
2025-07-11 19:10:38 +02:00
mrdudz
907d8b26c5 simple regression test for .charmap 2025-07-11 18:38:24 +02:00
Kugel Fuhr
8c654193f7 For the assembler tests, switch off UTF-8 output so we have always the
identical diagnostics indepdendent of the console properties.
2025-07-10 17:14:50 +02:00
Kugel Fuhr
ffcff0fa61 Much improved error messages for ca65. For most errors it will now say what
was expected and what was found instead. Also improved error recovery in a few
places.
2025-07-10 17:14:47 +02:00
Bob Andrews
4afbd1104d Merge pull request #2777 from kugelfuhr/kugelfuhr/ca65-errors
Improve error handling for ca65
2025-07-10 17:05:32 +02:00
Bob Andrews
4a53a891e8 Merge pull request #2778 from colinleroy/optimise-ldaxi
Optimise ldaxi
2025-07-10 17:03:28 +02:00
Bob Andrews
9971d9fac0 Merge pull request #2776 from colinleroy/optimize-incdecsp-further
Further optimize inc/decsp
2025-07-10 17:02:32 +02:00
mrdudz
472525eecd redirect errors into file so we can see it if needed 2025-07-09 23:10:43 +02:00
mrdudz
6aad5f6c18 fix error log output 2025-07-09 18:35:05 +02:00
Colin Leroy-Mira
20a9db757d Optimize multiple incax* and incax*/ldaxi
- Group multiple calls to incax* and decax* into a single one
- Replace incaxN/jsr ldaxi with ldy #N+1/jsr ldaxidx

Fixes #2055
2025-07-06 20:37:01 +02:00
Kugel Fuhr
57283733e7 Remove unwanted duplicate reference output for the tests. 2025-07-06 20:06:48 +02:00
Colin Leroy-Mira
facf7b2a0c Add basic test for incsp optimisation 2025-07-06 18:35:21 +02:00
Kugel Fuhr
929fc94466 Added the necessary control files and reference output for the tests. 2025-07-06 16:58:58 +02:00
Kugel Fuhr
4a8498cb0a When skipping a macro definintion because of an error, apply the same handling
regarding .endmacro as when the macro is parsed regularily: A .endmacro ends
the macro only if is the first token on a line.
2025-07-06 12:45:16 +02:00
Kugel Fuhr
7b79fd1ec1 Added more tests. 2025-07-06 10:42:15 +02:00
Kugel Fuhr
bcd29de443 Much improved error messages for ca65. For most errors it will now say what
was expected and what was found instead. Also improved error recovery in a few
places.
2025-07-06 08:40:05 +02:00
Colin Leroy-Mira
fb7afcfee9 Add strndup ENOMEM test 2025-07-05 12:31:26 +02:00
Bob Andrews
fd973cd544 Merge pull request #2769 from colinleroy/add-strndup
Add strndup
2025-07-04 17:01:28 +02:00
Colin Leroy-Mira
90e1ac374b Add strndup
char* __fastcall__ strndup (const char* S, size_t maxlen);
2025-07-03 23:46:28 +02:00
Colin Leroy-Mira
fcbc253bf9 Add strlen and strnlen unit tests 2025-07-03 23:43:04 +02:00
Bob Andrews
29f7ab3809 Merge pull request #2760 from kugelfuhr/kugelfuhr/fix-2753
Add ".CAPABILITY" to ca65, remove ".MACPACK cpu"
2025-07-03 18:43:05 +02:00
Bob Andrews
dbb6ff5482 Merge pull request #2761 from kugelfuhr/kugelfuhr/fix-2231
Allow comments within _Pragma()
2025-07-03 18:36:43 +02:00
Kugel Fuhr
b65ee13e8c Fix the tests. 2025-07-01 17:46:39 +02:00
Kugel Fuhr
64d35b6a86 Allow comments within _Pragma(). Fixes #2231. 2025-07-01 17:24:24 +02:00
Kugel Fuhr
d4e57278c6 Add a new .cap pseudo function to the assembler that allows to check for
certain capabilities of the CPU or target system.
2025-06-30 21:37:43 +02:00
mrdudz
705081af34 Merge branch 'master' into quietagain 2025-06-29 23:01:47 +02:00
mrdudz
cb4cd114bf handle -s correctly when using these makefiles directly 2025-06-29 22:48:03 +02:00
mrdudz
e85339dada add sweet16 to the opcodes test as well 2025-06-29 19:51:22 +02:00
mrdudz
91c9e32e4b add sweet16 to the cpudetect test 2025-06-29 19:14:28 +02:00
mrdudz
4d73544d6c cleanup/fix test for 65816 2025-06-29 18:29:22 +02:00
mrdudz
51dc9119a9 fix test 2025-06-29 17:21:40 +02:00
mrdudz
cf8af80dce add missing pseudo(s) for HUC6280, fix cpudetect for 6280 2025-06-29 01:57:28 +02:00
mrdudz
f45471156b update test 2025-06-28 18:41:29 +02:00
mrdudz
ced83d0f47 update tests 2025-06-28 18:18:39 +02:00
mrdudz
c359cd9251 update test 2025-06-28 02:27:04 +02:00
mrdudz
b08f306fde fix test 2025-06-28 02:05:08 +02:00
mrdudz
0a5211dcaa ...and the reference for the test 2025-06-27 17:39:04 +02:00
mrdudz
0d28f6ff8c fix test 2025-06-27 17:32:20 +02:00
Bob Andrews
d909a2c285 Merge pull request #2746 from mrdudz/bequiet
Fix -s vs QUIET in the makefiles
2025-06-27 16:43:13 +02:00
Bob Andrews
270552af48 Merge pull request #2734 from mrdudz/mega65c
C65 and Mega65 initial C support
2025-06-27 16:41:28 +02:00
mrdudz
cc6813428c fix the fix 2025-06-26 21:00:20 +02:00
mrdudz
46770bbb63 another for cmd.exe 2025-06-26 20:53:10 +02:00
mrdudz
70f9723a89 dumb down for cmd.exe 2025-06-26 20:42:15 +02:00
mrdudz
7a85575158 fix handling of QUIET in the "test" directory 2025-06-26 19:48:16 +02:00