1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-13 14:29:23 +00:00
6502bench/SourceGen/AsmGen
Andy McFadden 4981c3cdbb Fix ACME code gen "overflow"
ACME has a "real" PC and a "pseudo" PC.  The "real" PC determines the
initial position in a 64KB buffer used to hold assembler output.  If
the amount of code generated runs off the end, the assembler fails
with "produced too much code".

The source code generator in SourceGen was outputting a "real" PC
for the first address range and "psuedo" PCs for any address ranges
that followed.  This produced nice results for code with a single
range, but caused problems for multi-range sources if the initial
range was high in memory and a later range was lower in memory.
While the assembler isn't actually generating more than 64KB of code,
ACME's buffer management was detecting an overflow.

Now, if a source file has multiple address ranges, we set the "real"
PC to $0000 and use a "pseudo" PC for all ranges.  Output for projects
with a single address range is unmodified.
2020-05-14 16:37:33 -07:00
..
WpfGui Add a progress bar to HTML export 2020-03-15 14:07:05 -07:00
AsmAcme.cs Fix ACME code gen "overflow" 2020-05-14 16:37:33 -07:00
AsmCc65.cs Set initial focus to appropriate field for project properties 2020-04-23 11:01:07 -07:00
AsmMerlin32.cs Work around Merlin assembler bug 2020-03-18 17:45:06 -07:00
AsmTass64.cs Two changes to "dense hex" bulk data formatting 2019-12-10 17:41:00 -08:00
AssemblerConfig.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
AssemblerInfo.cs First pass at ACME support 2019-08-03 20:54:07 -07:00
AssemblerVersion.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GenCommon.cs Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00
IAssembler.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
IGenerator.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
LabelLocalizer.cs Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00