1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 22:50:35 +00:00
6502bench/SourceGen
Andy McFadden 03a0fc13fd Expand max local variable width to 257
Code generated by one of the C compilers sets up the stack frame and
then maps the direct page on top of it.  If the value at the top of
the stack is 16 bits, it will be referenced via address $ff.  The
local variable editor was regarding this as illegal, because lvars are
currently only defined for direct page data, and the value doesn't
entirely fit there (unless you're doing an indirect JMP on an NMOS
6502, in which case it wraps around to $00... but let's ignore that).

The actual max width of a local variable is 257 because of the
possibility of a 16-bit access at $ff.

Older versions of SourceGen don't seem to have an issue when they
encounter this situation, as worrying about (start+width) is really
just an editor affectation.  The access itself is still a direct-page
operation.  You won't be able to edit the entry without reducing the
length, but otherwise everything works.  I don't think there's a need
to bump the file version.
2021-07-20 13:08:19 -07:00
..
AsmGen Change Merlin 32 output suffix 2020-10-18 15:47:11 -07:00
Examples
Properties
Res Refine handling of C64 PRG header 2020-10-18 13:22:24 -07:00
RuntimeData Expand max local variable width to 257 2021-07-20 13:08:19 -07:00
Sandbox
SGTestData Expand max local variable width to 257 2021-07-20 13:08:19 -07:00
Tests Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
Tools
WpfGui Expand max local variable width to 257 2021-07-20 13:08:19 -07:00
Anattrib.cs
App.config
App.xaml
App.xaml.cs Version 1.7.5-dev1 2021-07-04 09:40:47 -07:00
AppSettings.cs
AutoLabel.cs
ChangeSet.cs
CodeAnalysis.cs
DataAnalysis.cs
DefSymbol.cs
DisasmProject.cs Refine handling of C64 PRG header 2020-10-18 13:22:24 -07:00
DisplayList.cs
DisplayListSelection.cs
Exporter.cs Change bookmark link element 2021-05-23 15:28:30 -07:00
ExternalFile.cs
FormatDescriptor.cs
FormattedOperandCache.cs
HelpAccess.cs
LineListGen.cs Refine handling of C64 PRG header 2020-10-18 13:22:24 -07:00
LocalVariableLookup.cs
LocalVariableTable.cs
MainController.cs Expand 20152-local-variables test 2021-07-20 11:28:26 -07:00
MessageList.cs
MultiLineComment.cs
NavStack.cs
PlatformSymbols.cs Expand 20152-local-variables test 2021-07-20 11:28:26 -07:00
ProjectFile.cs
ProjectProperties.cs
PseudoOp.cs
RuntimeDataAccess.cs
Sgec.cs
SourceGen.csproj
Symbol.cs
SymbolTable.cs
SystemDefaults.cs
SystemDefs.cs
UndoableChange.cs
VisBitmapAnimation.cs
Visualization.cs
VisualizationSet.cs
VisWireframeAnimation.cs
WeakSymbolRef.cs
WireframeObject.cs
XrefSet.cs