1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-06 16:29:03 +00:00
6502bench/SourceGen
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
..
AsmGen Fix ACME code gen "overflow" 2020-05-14 16:37:33 -07:00
Examples Fix tutorial 2020-01-27 13:23:05 -08:00
Properties Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Res Add simple SGEC reader 2020-04-13 17:33:34 -07:00
RuntimeData Add NES visualization generator 2020-05-14 15:34:05 -07:00
Sandbox Add VisParamDescr default value type check 2020-01-21 11:02:36 -08:00
SGTestData Fix ACME code gen "overflow" 2020-05-14 16:37:33 -07:00
Tests Label rework, part 6 2019-11-18 13:36:53 -08:00
Tools Improve CPU instruction chart 2020-02-18 13:25:20 -08:00
WpfGui Change PETSCII keyboard shortcut 2020-05-05 21:40:42 -07:00
Anattrib.cs Fix bug in inline JSR/JSL no-continue handling 2020-05-08 17:41:26 -07:00
App.config Fix startup issues 2019-07-20 17:36:12 -07:00
App.xaml Improve visualization 2019-12-04 15:59:37 -08:00
App.xaml.cs Version 1.6.0 2020-03-30 16:52:53 -07:00
AppSettings.cs Improve CPU instruction chart 2020-02-18 13:25:20 -08:00
AutoLabel.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
ChangeSet.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeAnalysis.cs Fix bug in inline JSR/JSL no-continue handling 2020-05-08 17:41:26 -07:00
DataAnalysis.cs Correct handling of no-op .ORG statements 2020-02-28 14:49:18 -08:00
DefSymbol.cs Prefer narrower project/platform symbols 2020-01-23 10:49:22 -08:00
DisasmProject.cs Show "idx" for indexed accesses in References window 2020-05-02 14:09:53 -07:00
DisplayList.cs Various minor changes 2020-03-30 16:50:52 -07:00
DisplayListSelection.cs Add C64 encodings to instruction and data operand editors 2019-08-15 17:53:12 -07:00
Exporter.cs Updated some comments 2020-04-12 15:54:36 -07:00
ExternalFile.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatDescriptor.cs Fix junk alignment check 2019-10-23 13:25:50 -07:00
FormattedOperandCache.cs Add a string operand cache 2019-08-17 17:03:06 -07:00
HelpAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
LineListGen.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
LocalVariableLookup.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
LocalVariableTable.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
MainController.cs Show "idx" for indexed accesses in References window 2020-05-02 14:09:53 -07:00
MessageList.cs Check for hidden visualizations 2019-12-25 11:15:22 -08:00
MultiLineComment.cs Tweak line folding code 2019-11-01 19:47:56 -07:00
NavStack.cs Tweak navigation 2019-10-10 11:57:36 -07:00
PlatformSymbols.cs Update comments, remove unused var 2019-10-27 21:29:44 -07:00
ProjectFile.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
ProjectProperties.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
PseudoOp.cs Two changes to "dense hex" bulk data formatting 2019-12-10 17:41:00 -08:00
RuntimeDataAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGen.csproj Implement wireframe animation 2020-03-09 13:56:20 -07:00
Symbol.cs Fix symbol entry bug in operand editors 2019-12-26 11:04:37 -08:00
SymbolTable.cs Prefer narrower project/platform symbols 2020-01-23 10:49:22 -08:00
SystemDefaults.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
SystemDefs.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
UndoableChange.cs Groundwork for visualization sets 2019-11-22 20:45:57 -08:00
VisBitmapAnimation.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
Visualization.cs Consolidate wireframe data validation 2020-04-23 11:25:45 -07:00
VisualizationSet.cs Add a progress bar to HTML export 2020-03-15 14:07:05 -07:00
VisWireframeAnimation.cs Add Atari AVG visualizer 2020-04-11 17:24:21 -07:00
WeakSymbolRef.cs Add local variable uniquification 2019-08-31 14:19:50 -07:00
WireframeObject.cs Consolidate wireframe data validation 2020-04-23 11:25:45 -07:00
XrefSet.cs Show "idx" for indexed accesses in References window 2020-05-02 14:09:53 -07:00