Commit Graph

11642 Commits

Author SHA1 Message Date
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
54a2410b5a Merge pull request #2674 from GorillaSapiens/c_sp
rename "sp" to "c_sp", avoid conflict with 4510 opcodes
2025-06-24 17:44:13 +02:00
Bob Andrews
cd96ce96a1 Merge pull request #2733 from Russell-S-Harper/update-docn-with-cscanf
Updated documentation with cscanf
2025-06-24 17:27:08 +02:00
Russell-S-Harper
450898513c Updated doc'n with cscanf 2025-06-23 22:07:09 -04:00
Gorilla Sapiens
b2e5d3cd25 insipid formatting whack-a-mole 2025-06-23 17:51:44 +00:00
Bob Andrews
4863a3e29b Merge pull request #2705 from Russell-S-Harper/add-conio-cgets
Implement conio cgets
2025-06-23 16:10:51 +02:00
Bob Andrews
a0c6c64826 Merge pull request #2723 from kugelfuhr/kugelfuhr/fix-2717
Allow multiple passes for da65 to resolve labels
2025-06-23 15:14:01 +02:00
Kugel Fuhr
4c81eacefe Added -d/--debug and -m/--multi-pass switches to the disassembler. The latter
will make the disassembler run multiple preparation passes to find all
addresses where labels must be placed. Without -m some label addresses are
found in the final pass, where the disassembler cannot make use of them.
2025-06-23 14:50:40 +02:00
Bob Andrews
c520455b2b Merge pull request #2729 from kugelfuhr/kugelfuhr/fix-2208
When studying a symbol expression use its address size if its smaller than that of the symbol
2025-06-23 14:22:22 +02:00
Bob Andrews
c20461d213 Merge pull request #2722 from kugelfuhr/kugelfuhr/da65-cleanup
Small cleanup for da65
2025-06-23 14:18:18 +02:00
Bob Andrews
c832af8a71 Merge pull request #2710 from kugelfuhr/kugelfuhr/fix-2694
Fix wrong file offset handling for a memory area with only run segments written to a file
2025-06-23 14:17:55 +02:00
Kugel Fuhr
96bb1e4336 Fix coding style. 2025-06-23 14:02:56 +02:00
Kugel Fuhr
49713f73e0 Output relative branch targets as "*-30" instead of "* + (-30)". 2025-06-23 14:01:29 +02:00
Bob Andrews
540a6a7658 Merge pull request #2728 from kugelfuhr/kugelfuhr/da65-improvements
Cleanup for the da65 code base
2025-06-23 13:47:23 +02:00
Bob Andrews
2e7ee0f105 Merge pull request #2711 from mrdudz/plus4tgi
TGI Documentation and Comments fix
2025-06-23 13:40:41 +02:00
Bob Andrews
46be7778cd Merge pull request #2730 from mrdudz/mega65target
Mega65 target
2025-06-23 13:34:47 +02:00
mrdudz
034fc93c75 enable 4510/45GS02 in the compiler - however, the resulting asm files cant be assembled because of sp vs c_sp clash 2025-06-23 13:23:23 +02:00
Gorilla Sapiens
0489098517 restore comment alignment 2025-06-22 21:34:41 +00:00
mrdudz
44672e6281 prepared lib makefile. skip building the library while compiler support is not there 2025-06-22 21:43:21 +02:00
mrdudz
f6a3f66f0b asm configs 2025-06-22 21:42:36 +02:00
mrdudz
715d9c00a2 initial (identical) minimal "library" for assembly support for c65 and mega65. taken from #1792 2025-06-22 21:09:40 +02:00
mrdudz
6d7f37c4f2 update list of targets in the docs 2025-06-22 21:08:13 +02:00
mrdudz
8615c244d9 add initial target for mega65, also added c65 where missing. reworked from #1792 2025-06-22 21:07:38 +02:00
Gorilla Sapiens
a7af49a763 Merge branch 'master' into c_sp 2025-06-22 19:02:24 +00:00
Kugel Fuhr
e949fbdbbf Unify CPU list in the docs. 2025-06-22 20:36:30 +02:00
Kugel Fuhr
7d231d60a6 Minor corrections after looking at the diff. 2025-06-22 20:36:26 +02:00
Kugel Fuhr
b9a703749c Replace all tables by hash tables. This allows to remove the ugly special
casing of "long addresses" and prepares the code base for use with the full
address range of the 65816.
Use fixed size data types for addresses and target data words of known size.
Many other minor improvements.
2025-06-22 20:36:26 +02:00
Bob Andrews
7573272836 Merge pull request #2724 from mrdudz/mega65asm
part of #1792 - 48GS02 assembler support
2025-06-22 17:36:36 +02:00
Kugel Fuhr
7854a53434 When studying expressions and recalculating the address size for a symbol
expression, use the symbol address size only if it is smaller than the one
that was calculated.
2025-06-22 16:12:07 +02:00
mrdudz
1d7bc938f2 add roundtrip disasm tests for all cpus 2025-06-22 01:18:41 +02:00
mrdudz
233c784c03 fix aslq in the disassembler 2025-06-22 01:16:03 +02:00
mrdudz
2ae30b5b50 cleanup 2025-06-22 01:15:40 +02:00
mrdudz
c3b75f0ac1 comment 2025-06-22 01:15:10 +02:00
mrdudz
4a11fa791a more codestyle 2025-06-21 22:33:43 +02:00
mrdudz
6b554362a5 codestyle/comment 2025-06-21 22:23:19 +02:00
mrdudz
4820b716c7 use sect2 for cpu subsections 2025-06-21 22:12:53 +02:00
mrdudz
12e40f4aff fix some codestyle 2025-06-21 22:05:30 +02:00
mrdudz
698045c7c2 updated the docs 2025-06-21 21:55:21 +02:00
mrdudz
c35405f14b add new sourcefile(s) 2025-06-21 20:52:03 +02:00
mrdudz
5e414edb50 are we more pedantic than local make? 2025-06-21 20:47:57 +02:00
mrdudz
2244a5ab0a include header :) 2025-06-21 20:44:37 +02:00
mrdudz
3321910848 implement 45GS02 compound instrictions in the disassembler 2025-06-21 20:37:31 +02:00
mrdudz
37144ed014 fix akkumulator addressing for some compound instructions 2025-06-21 20:35:25 +02:00
Russell-S-Harper
7f40affb59 Adding documentation and some minor reformatting to ensure consistency 2025-06-21 08:48:41 -04:00
Russell-S-Harper
8bfaaa60ba Revising to align with stdio fgets 2025-06-21 06:01:13 -04:00
mrdudz
76c8f0d860 fix test, add 45GS02 instructions 2025-06-21 01:39:33 +02:00
mrdudz
9344d87b05 part of #1792 - 48GS02 assembler support 2025-06-21 00:56:34 +02:00
Russell-S-Harper
00bb9d5376 Edits to more closely match standard cgets 2025-06-20 18:48:51 -04:00
Bob Andrews
d333627081 Merge pull request #2707 from mrdudz/m740
m740 Support
2025-06-20 19:39:32 +02:00