1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 07:50:37 +00:00
6502bench/SourceGen
Andy McFadden fdd2bcf847 Fix some 65816 code generation issues
Two basic problems:

(1) cc65, being a one-pass assembler, can't tell if a forward-referenced
label is 16-bit or 24-bit.  If the operand is potentially ambiguous,
such as "LDA label", we need to add an operand width disambiguator.
(The existing tests managed to only do backward references.)

(2) 64tass wants the labels on JMP/JSR absolute operands to have 24-bit
values that match the current program bank.  This is the opposite of
cc65, which requires 16-bit values.  We need to distinguish PBR vs.
DBR instructions (i.e. "LDA abs" vs. "JMP abs") and handle them
differently when formatting for "Common".

Merlin32 doesn't care, and ACME doesn't work at all, so neither of
those needed updating.

The 20052-branches-and-banks test was expanded to cover the problematic
cases.
2020-07-01 17:59:12 -07:00
..
AsmGen Fix some 65816 code generation issues 2020-07-01 17:59:12 -07:00
Examples Fix tutorial 2020-01-27 13:23:05 -08:00
Properties
Res Tweak OMF converter 2020-06-30 11:48:11 -07:00
RuntimeData Remove "Atari Arcade Cabinet" system definition 2020-07-01 11:06:23 -07:00
Sandbox Add VisParamDescr default value type check 2020-01-21 11:02:36 -08:00
SGTestData Fix some 65816 code generation issues 2020-07-01 17:59:12 -07:00
Tests Add Navigate > Jump to Operand 2020-06-07 16:37:41 -07:00
Tools Rewrite OMF jump table segments 2020-06-30 15:17:39 -07:00
WpfGui Remove "Atari Arcade Cabinet" system definition 2020-07-01 11:06:23 -07:00
Anattrib.cs Fix bug in inline JSR/JSL no-continue handling 2020-05-08 17:41:26 -07:00
App.config
App.xaml
App.xaml.cs Version 1.7.0-dev1 2020-05-15 11:26:14 -07:00
AppSettings.cs Improve CPU instruction chart 2020-02-18 13:25:20 -08:00
AutoLabel.cs
ChangeSet.cs
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 Progress toward OMF file handling 2020-06-30 08:20:12 -07:00
DisplayList.cs Various minor changes 2020-03-30 16:50:52 -07:00
DisplayListSelection.cs
Exporter.cs Updated some comments 2020-04-12 15:54:36 -07:00
ExternalFile.cs
FormatDescriptor.cs
FormattedOperandCache.cs
HelpAccess.cs
LineListGen.cs Fix some 65816 code generation issues 2020-07-01 17:59:12 -07: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 Fix some 65816 code generation issues 2020-07-01 17:59:12 -07:00
MessageList.cs
MultiLineComment.cs
NavStack.cs
PlatformSymbols.cs
ProjectFile.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
ProjectProperties.cs
PseudoOp.cs Fix some 65816 code generation issues 2020-07-01 17:59:12 -07:00
RuntimeDataAccess.cs
SourceGen.csproj Progress toward OMF file handling 2020-06-30 08:20:12 -07:00
Symbol.cs
SymbolTable.cs Prefer narrower project/platform symbols 2020-01-23 10:49:22 -08:00
SystemDefaults.cs
SystemDefs.cs Progress toward OMF file handling 2020-06-30 08:20:12 -07:00
UndoableChange.cs
VisBitmapAnimation.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
Visualization.cs Add Export feature to visualization editor 2020-06-20 17:32:57 -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
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