mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-02 13:51:36 +00:00
03a0fc13fd
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. |
||
---|---|---|
.. | ||
advanced.html | ||
analysis.html | ||
codegen.html | ||
editors.html | ||
end-notes.html | ||
index.html | ||
intro.html | ||
main.css | ||
mainwin.html | ||
settings.html | ||
tools.html | ||
tutorials.html | ||
visualization.html |