12276 Commits
Author SHA1 Message Date
Bob Andrews eebf54af54 Merge pull request #3037 from polluks/patch-18
Add apple3 to supported platforms list
2026-11-08 18:59:16 +01:00
Bob Andrews 77b6484615 Merge pull request #3036 from polluks/patch-16
Fix link to cc65.html in ca65 documentation
2026-11-03 13:39:30 +01:00
Stefan e525cc2343 Add apple3 to supported platforms list 2026-11-02 15:27:08 +01:00
Stefan 18dee16d8e Fix link to cc65.html in ca65 documentation 2026-11-02 15:22:48 +01:00
Bob Andrews 52727a5b40 Merge pull request #3032 from avolkov76/imp-mode-cleanup
[ca65] Clean up Implicit addressing mode; A and Q
2026-10-30 23:55:03 +01:00
Bob Andrews 80752c6be1 Merge pull request #3031 from avolkov76/fix-3028
[ca65] Remove illegal addressing mode for some Q insns on 45GS02
2026-10-30 23:53:08 +01:00
Bob Andrews a162565eca Merge pull request #3033 from Circuit-Overtime/doc-paren-operand-indirect
ca65 doc: operands starting with '(' are parsed as indirect
2026-10-27 20:31:20 +01:00
Bob Andrews c6b10a1995 Merge pull request #3030 from polluks/patch-17
Add MEGA65 to the list of systems in README
2026-10-27 20:28:55 +01:00
Bob Andrews 9596f29138 Merge pull request #3029 from polluks/mega65
Add MEGA65 documentation for cc65 compiler
2026-10-27 20:28:17 +01:00
Circuit-Overtime 70b849ad8f ca65 doc: operands starting with '(' are parsed as indirect 2026-10-27 11:01:31 +05:30
Alex Volkov ab3e04fd65 Tests for Implicit A (all) and Implicit Q (45GS02) instruction syntax. 2026-10-25 14:51:41 -04:00
Alex Volkov 40509d95bd Cleanup Implicit addressing mode (bit 0) so that the 2-bit AM65_IMPLICIT workaround is no longer necessary. 45GS02 Implicit Q insns now use only 'aslq' and 'aslq q` syntax, but not 'aslq a'. 2026-10-25 14:50:09 -04:00
Stefan 626d9a7530 Fix HTML entity for ampersand in title 2026-10-25 17:05:55 +01:00
Stefan 3df27ce8a4 Add MEGA65 topics to index 2026-10-25 17:05:20 +01:00
Alex Volkov c3638cd5d8 Remove illegal Absolute Long,X addressing mode from six Q insns on 45GS02; fixes #3028. 2026-10-25 10:46:46 -04:00
Stefan 4bf1954336 Add MEGA65 to the list of systems in README 2026-10-25 15:20:52 +01:00
Stefan e74ae15138 Add MEGA65 documentation for cc65 compiler
This document provides comprehensive information about the MEGA65 run-time system tailored for the cc65 C compiler, including memory layout, linker configurations, and platform-specific details.
2026-10-25 14:47:27 +01:00
Alex Volkov 3324497400 Indirect Long addressing modes clarification: [dir] for 65816 and 45GS02, [ABS] for 65816 only. 2026-10-25 09:31:47 -04:00
Bob Andrews 5725066bfb Merge pull request #3018 from avolkov76/fix-3010
Fix incorrect `signed char` promotion in `parseadd()`
2026-10-24 15:48:35 +02:00
Bob Andrews 06c639efc2 Merge pull request #3023 from djupdal/geoslib_getstring
Add GetString to GEOSLib
2026-10-24 15:36:23 +02:00
Bob Andrews 9df752e3bc Merge pull request #3019 from joliverosh/ca65-bitbranch-star
ca65: Fix '*' in operands of bit branch, block transfer and LDM
2026-10-24 15:19:02 +02:00
Bob Andrews d9ae0f38f6 Merge pull request #3024 from djupdal/geoslib_headerfix
gsym.h defines now matches geossym.inc, and has been corrected
2026-10-24 15:14:11 +02:00
Bob Andrews 8d7ee4ce91 Merge pull request #3025 from polluks/patch-16
Add Apple III to the machine list in README
2026-10-24 15:12:13 +02:00
Bob Andrews c649177210 Merge pull request #3027 from avolkov76/fix-imm-bit
[ca65] Fix rare bug in BIT #imm instruction on 65C02 variants
2026-10-24 15:07:25 +02:00
Alex Volkov c629423f91 Fix a rare bug in BIT #imm instruction on 65C02 variants. The bug manifests as an extra operand byte after switching CPUs from 65816 in .a16 mode to 65C02 family. It was caused by incorrect AddrMode masks in 65C02 variant tables. 2026-10-22 22:00:03 -04:00
Stefan dab89e1423 Add Apple III to the machine list in README 2026-10-22 12:27:56 +02:00
Asbjørn Djupdal e2fd499e37 Added GetString to GEOSLib
The standard GEOS kernel GetString function was not represented in
GEOSLib.  This commit adds support for GetString.
2026-10-21 14:29:00 +02:00
Asbjørn Djupdal 2645a5d18d gsym.h defines now matches geossym.inc, and has been corrected 2026-10-21 14:28:21 +02:00
José Luis Oliveros HernándezandClaude Opus 5.5 8aa120967a ca65: Fix '*' in operands of bit branch, block transfer and LDM
PutBitBranch, PutBitBranch_m740, PutBlockTransfer and PutLDM_m740 emitted
the opcode (and the zero page byte) before reading the remaining operands.
Since '*' is evaluated while the operand is read, it pointed one or two
bytes into the instruction instead of at its start:

    bbr0 $12,*          ; was 0F 12 FF, now 0F 12 FD (loops on itself)
    tii  *,$2000,1      ; source address was off by one
    ldm  $12,#<*        ; immediate was off by two

The usual "wait for a port bit" idiom `bbr0 port,*` therefore jumped into
the middle of the next instruction. Branches to labels were not affected.

Now all operands are read first and emitted afterwards, as for every other
instruction.

In addition, the m740 accumulator form `bbs/bbc i,a,rel` is a 2 byte
instruction, but its offset was computed relative to the end of a 3 byte
one, so it was off by one even with labels. da65 had the matching error
(PC+3 instead of PC+2) in OH_AccumulatorBitBranch, which is why the
round trip test did not catch it. Both are fixed.

Reference binaries that encoded the old offsets are regenerated: the only
differences are the 16 bit branch offsets in each file. The 65C02 da65
test used `bbrN $12,*+2` meaning "next instruction"; with correct '*'
that is `*+3`.

New test: test/asm/listing/313-bitbranch-star.s, with hand-computed bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 04:41:05 +00:00
Alex Volkov 4ceb10ef98 Tests for issue #3010: missing sign extension in 'const int + signed char' code generaiton. 2026-10-18 19:38:41 -04:00
Alex Volkov 74d3b9bac3 Fix incorrect signed char promotion in parseadd(); issue #3010. Add missing sign extension to g_addlocal() and g_addstatic(). 2026-10-18 19:34:54 -04:00
Bob Andrews 8d86ca7e7e Merge pull request #3017 from avolkov76/ptrload-test
Extra tests for `OptPtrLoadX` / `OptPtrStoreX` optimizer steps
2026-10-18 22:23:28 +02:00
Alex Volkov f962339580 Extra tests for load/store through pointer, OptPtrLoadX/OptPtrStoreX optimizer steps. 2026-10-18 14:02:09 -04:00
Bob Andrews 51b8cc54fb Merge pull request #2991 from Merlin1247/master
NES Library update
2026-10-18 14:04:02 +02:00
Brandon d262a75cdc Forgot to update a label name 2026-10-17 22:36:29 -04:00
Brandon a186d3c8f2 Fixed trailing spaces for the million-and-first time 2026-10-17 21:42:26 -04:00
Brandon 61c55f90c8 Fixed dangling spaces for the millionth time 2026-10-17 21:35:32 -04:00
Brandon 39063559d9 Documentation update + random fixes 2026-10-17 21:29:12 -04:00
Bob Andrews 6bd01e8a5b Merge pull request #3014 from avolkov76/fix-shift2-x0
Fix unsafe X is zero assumption in `OptShift2` optimizer step
2026-10-17 15:47:13 +02:00
Bob Andrews 5f4c5402a6 Merge pull request #3015 from picocomputer/master
RP6502 update with SDK removal
2026-10-17 10:33:18 +02:00
rumbledethumps 75ad88ae46 Merge branch 'cc65:master' into master 2026-10-15 12:13:24 -07:00
Alex Volkov 4f04250675 Tests for OptShiftX optimizer steps; incomplete set. 2026-10-14 18:50:11 -04:00
Alex Volkov e871632e7d Check that X is zero on entry in OptShift2 instead of assuming so. The assumption is unsafe and unnecessary. 2026-10-14 18:48:14 -04:00
Bob Andrews a6530f4691 Merge pull request #3013 from polluks/apple4
Add documentation for the Apple3
2026-10-14 08:50:26 +02:00
Stefan 8476d19264 Add files via upload 2026-10-14 00:45:35 +02:00
Bob Andrews e47ac5060b Merge pull request #3009 from djupdal/geos-c-in128
C128 GEOS input driver support
2026-10-11 10:11:40 +02:00
Asbjørn Djupdal 877747c0c9 C128 GEOS input driver support
This provides support for creating input drivers for C128 GEOS.
A skeleton sample is provided.
A new target is created: geos-c-in128
2026-10-10 21:06:48 +02:00
Bob Andrews 6351002b1c Merge pull request #3008 from djupdal/geos-c-in
C64 GEOS input driver support
2026-10-10 20:35:28 +02:00
Asbjørn Djupdal 064597c0de C64 GEOS input driver support
This provides support for creating input drivers for C64 GEOS.
A skeleton sample is provided.
A new target is created: geos-c-in
2026-10-10 18:17:47 +02:00
Bob Andrews b3bf30f090 Merge pull request #3007 from djupdal/geos-c-prn
CBM GEOS printer support
2026-10-10 16:28:01 +02:00