1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-05 06:04:36 +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
AssemblerConfig.cs
AssemblerInfo.cs
AssemblerVersion.cs
GenCommon.cs Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00
IAssembler.cs
IGenerator.cs
LabelLocalizer.cs Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00