Files
6502bench/SourceGen
Andy McFadden 4846a26c9a Treat PEA operand as imm const16
We were treating PEA's operand as an absolute address and attempting to
extend it to 24 bits.  This wasn't very successful, and was
counter-productive when the argument was actually a constant, which is
common.  Worse, if the operand appeared to reference an internal address
outside bank 0, we would output a 24-bit value, breaking 64tass and cc65.

We now treat PEA as having an immediate operand.  (It was already
classified as an "extended immediate", but the operand-address
computation was still happening.)

This will have little to no effect on projects that use OMF relocation
data, because PEA arguments are explicitly identified as symbols or
constants.

New tests were added to 20032-labels-and-symbols to exercise the code
generation failures.  A few other tests that used PEA were affected.
20152-local-variables was fixed by adding a symbolic reference, the
others remained as-is and the expected output was revised.

(issue #172)
2025-07-18 13:25:29 -07:00
..
2021-11-14 09:21:15 -08:00
2025-07-15 11:27:17 -07:00
2024-08-01 15:08:43 -07:00
2025-05-04 07:58:49 -07:00
2024-07-07 18:12:29 -07:00
2021-09-30 21:11:26 -07:00
2019-07-20 17:36:12 -07:00
2024-07-04 17:25:21 -07:00
2025-07-16 08:23:26 -07:00
2019-11-08 21:02:15 -08:00
2024-08-19 13:03:16 -07:00
2021-11-17 11:18:23 -08:00
2025-07-09 20:35:32 -07:00
2025-07-10 16:16:22 -07:00
2021-09-30 21:11:26 -07:00
2025-07-15 11:27:17 -07:00
2021-10-07 12:39:30 -07:00
2024-08-07 17:55:54 -07:00
2024-07-04 17:25:21 -07:00
2024-04-30 13:27:07 -07:00
2024-05-31 14:22:39 -07:00
2021-11-02 08:54:07 -07:00
2024-05-22 14:02:53 -07:00