Commit Graph

4084 Commits

Author SHA1 Message Date
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
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
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
mrdudz
8615c244d9 add initial target for mega65, also added c65 where missing. reworked from #1792 2025-06-22 21:07:38 +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
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
12e40f4aff fix some codestyle 2025-06-21 22:05:30 +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
mrdudz
9344d87b05 part of #1792 - 48GS02 assembler support 2025-06-21 00:56:34 +02:00
Bob Andrews
d333627081 Merge pull request #2707 from mrdudz/m740
m740 Support
2025-06-20 19:39:32 +02:00
Bob Andrews
64c936317d Merge pull request #2720 from GorillaSapiens/issue_2714
fixes #2714
2025-06-20 18:00:50 +02:00
Bob Andrews
fa4d704ee8 Update main.c - codestyle 2025-06-20 17:53:52 +02:00
Gorilla Sapiens
de844d48c4 fixes #2714 2025-06-19 22:36:16 +00:00
Bob Andrews
b630dac728 Merge pull request #2718 from kugelfuhr/kugelfuhr/fix-505
Fix the behavior of variable symbols in regard to cheap locals
2025-06-19 23:44:38 +02:00
Bob Andrews
3989ce1185 Merge pull request #2715 from kugelfuhr/kugelfuhr/fix-2527
Added a few simple optimizations
2025-06-19 23:39:04 +02:00
mrdudz
02e79d35d7 no need to fix the assembler, but making da65 produce the same mnemonics ans ca65 uses seems like a good idea :) 2025-06-19 21:44:14 +02:00
Bob Andrews
1f23fc6ba8 Merge pull request #2716 from kugelfuhr/kugelfuhr/fix-2649
Fix an internal error in da65 when there are certain labels in a skipped section
2025-06-19 19:33:17 +02:00
Kugel Fuhr
54f63a0cdc Fix the behavior of variable symbols in regard to cheap locals. Previously
every assignment to a variable symbol opened the same scope for cheap locals.
So when redefining a variable symbol, an old cheap local scope was reopened
which was unexpected and confusing. The change fixes this so that only the
first definition of a variable symbol opens a new scope for cheap locals, but
redefinitions of the same symbol do not.
2025-06-19 09:11:30 +02:00
Kugel Fuhr
8d407c7b17 Fix #2649. When generating labels for "skip" sections, GetGranularity() is
called which wouldn't handle this type.
2025-06-18 21:54:19 +02:00
Kugel Fuhr
2ceaa3fabb Added a few simple optimizations that resolve most of #2527. 2025-06-18 10:34:13 +02:00
Gorilla Sapiens
8cb0578447 changes suggested by mrdudz 2025-06-18 06:38:38 +00:00
Gorilla Sapiens
06a77abc68 Merge branch 'master' into sane_makefile_output 2025-06-18 06:26:58 +00:00
mrdudz
00de49a46d codestyle 2025-06-18 02:43:40 +02:00
mrdudz
05506ede2a comments 2025-06-18 02:41:22 +02:00
mrdudz
157ddf2c5b codestyle 2025-06-18 02:41:15 +02:00
mrdudz
499fcbdb5f we dont use the table in the custom jsr 2025-06-18 02:38:34 +02:00
mrdudz
80b4ea304b fix table for added address modes 2025-06-18 02:24:59 +02:00
mrdudz
9eecd794b1 less hacky way to get the addr mode 2025-06-18 02:03:52 +02:00
mrdudz
ff1e5b3351 minimize diff 2025-06-18 01:14:31 +02:00
mrdudz
5a3aa1fd51 fix/add missing .ifp02x and .p02x pseudo ops, update test 2025-06-17 23:34:23 +02:00
mrdudz
5e4f811ddf remove commented out code 2025-06-17 22:52:42 +02:00
mrdudz
f45d25cfaf merge master 2025-06-17 22:51:25 +02:00
Bob Andrews
f04c25a233 Merge pull request #2709 from GorillaSapiens/gps4bugs
added reporting of fatal/error/warning/note location generation with …
2025-06-17 19:51:02 +02:00
Bob Andrews
f16eced6fc Merge pull request #2698 from kugelfuhr/kugelfuhr/fix-1640
Implement -dD, -dM and -dN command line switches to output macro definitions
2025-06-17 19:44:19 +02:00
Gorilla Sapiens
c90c61f08f rename functions 2025-06-16 23:30:46 +00:00
mrdudz
2e27ee1702 added .IFM740 and .PM470, and while at it also .IFP02X and .P02X. Updated regression test to use these 2025-06-16 22:55:58 +02:00
mrdudz
0b74ae8c2d add m740 to macpack cpu, add .ifpm740, add regression test for those 2025-06-16 21:59:38 +02:00
mrdudz
20e7c54fa3 more m740 fixes, makes the regression test work 2025-06-16 20:32:54 +02:00
mrdudz
2184ba80c7 make <bit> part of the instruction, like in the huc6280 2025-06-16 17:39:23 +02:00
Kugel Fuhr
e4b610994c Fix #2694. Also reformatting of long comments and refactoring of a small piece
of code.
2025-06-16 16:01:56 +02:00
Kugel Fuhr
adc9ddc280 Change the available options to -dM and -dP. The former prints user macros,
the latter predefined macros. Can be combined by using -dMP or -dPM.
2025-06-16 11:30:25 +02:00