cc65: [bug][65sc02, 65c02, HuC6280] Compiler produces broken Assembly (129 operand for `bne`)

When compiling my game Horde, recent versions of CC65 produce an Assembly file with a broken bne with a 129 operand. I am getting this error only when building my “universal” game Cross Horde for the PCE target. I do not see it otherwise. This issue is not reproduced with a CC65 version from the end of April.

2022/11/28 -> KO 2022/08/10 -> KO

2022/04/24 -> OK

I have attached the broken Assembly file. The error is in line 1849. main.zip

I can reproduce it with my Cross-Lib framework by running from inside the src directory xl horde pce

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (29 by maintainers)

Commits related to this issue

Most upvoted comments

I find it very strange that this would only break on PCE target - that function doesnt seem to have PCE specific things in it at all (and no PCE specific code seems to be generated).

It might help to compare against the asm output compiled for a different target