1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 22:50:35 +00:00
6502bench/SourceGen/RuntimeData/Help
Andy McFadden 99cd0d3ac1 Improve handling of C64 PRG header
C64 PRG files are pretty common.  Their salient feature is that they
start with a 16-bit value that is used as the load address.  The
value is commonly generated by the assembler itself, rather than
explicitly added to the source file.

Not all assemblers know what a PRG file is, and some of them handle
it in ways that are difficult to guarantee in SourceGen.  ACME adds
the 16-bit header when the output file name ends in ".prg", cc65
uses a modified config file, 64tass uses a different command-line
option, and Merlin 32 has no idea what they are.

This change adds PRG file detection and handling to the 64tass code
generator.  Doing so required making a few changes to the gen/asm
interfaces, because we now need to have the generator pass additional
flags to the assembler, and sometimes we need code generation to
start somewhere other than offset zero.  Overall the changes were
pretty minor.

The 20042-address-changes test needed a 6502-only variant.  A new test
(20040-address-changes) has been added and given a PRG header.  As
part of this change the 65816 variant was changed to use addresses
in bank 2, which uncovered a code generation bug that this change
also fixes.

The 64tass --long-address flag doesn't appear to be necessary for
files <= 65536 bytes long, so we no longer emit it for those.

(issue #90)
2020-10-17 16:45:13 -07:00
..
advanced.html Expand "apply platform symbols" feature 2020-07-28 10:56:07 -07:00
analysis.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
codegen.html Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
editors.html Add W65C02S support, part 3 2020-10-11 14:35:17 -07:00
end-notes.html Add "Go to Last Change" feature 2019-11-01 19:11:48 -07:00
index.html Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
intro.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
main.css Initial file commit 2018-09-28 10:05:11 -07:00
mainwin.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
settings.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
tools.html Add Apple II screen memory chart 2020-08-20 17:24:28 -07:00
tutorials.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
visualization.html Add Export feature to visualization editor 2020-06-20 17:32:57 -07:00