1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-15 11:28:56 +00:00
6502bench/SourceGen/RuntimeData/Help
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
..
advanced.html Improve OMF feature docs 2021-06-15 08:57:00 -07:00
analysis.html Refine handling of C64 PRG header 2020-10-18 13:22:24 -07:00
codegen.html Change some words 2020-10-23 10:50:36 -07:00
editors.html Expand max local variable width to 257 2021-07-20 13:08:19 -07:00
end-notes.html Add "Go to Last Change" feature 2019-11-01 19:11:48 -07:00
index.html Update docs to point to new tutorial 2021-06-07 17:55:51 -07:00
intro.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
main.css Initial file commit 2018-09-28 10:05:11 -07:00
mainwin.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
settings.html Rename "hint" in UI and documentation 2020-10-14 15:02:53 -07:00
tools.html Improve OMF feature docs 2021-06-15 08:57:00 -07:00
tutorials.html Update docs to point to new tutorial 2021-06-07 17:55:51 -07:00
visualization.html Add Export feature to visualization editor 2020-06-20 17:32:57 -07:00