Classic (old) 6502 codegen now uses absolute addressing (lda/sta/inc/dec addr)
instead of building a zero-page pointer for direct single struct instances and
memory-mapped instances. Covers byte/word/float reads, writes, and byte inc/dec.
Taking the address of a direct struct instance in static initializer data
(pointer arrays and pointer-typed struct fields) worked on 6502 only. The
typed `&&` operator already provides the needed type, but the IR path broke
on targets without symbol prefixes:
- The virtual target skips symbol prefixing, so address-of symbols kept
their plain scoped names (`main.p1`) while the struct instance storage is
registered as `prog8_struct_instances.main_p1`. IRUnusedCodeRemover then
crashed with "no chunk with label 'main.p1'" (only when optimizing).
StConvert now resolves both the plain scoped form and the p8i_->p8v_
prefixed form used on 6502 and m68k targets.
- Both symbol prefixers rebuilt PtAddressOf nodes for static initializer
elements without their typed/msb flags; the flags are now preserved.
Allow `Point p` declarations with direct field access, initialization and
whole-struct copy on the 6502-based targets as well. Remove the checker
rejection and the corresponding doc/table restrictions.
Direct instances are emitted in a prog8_struct_instances block (or its
_bss variant when uninitialized or a union); references get a consistent
label via the new structInstanceLabel mapping, which rewrites the 'v'
declaration prefix to the 'i' reference prefix of the symbol prefixer.
Pointer-deref chains load the instance's storage address as the start
pointer, so field reads, writes and address-of work as expected.
Allow `Point p` declarations with direct field access, initialization and
whole-struct copy (`q = p` lowers to sys.memcopy) on 32-bit and virtual
targets. 6502 targets reject with a clear error and keep using pointers or
arrays of struct instances.
Direct variables are represented as StStructInstance nodes with static
storage; field access resolves via PtrDereference and address-of/field
addresses use the struct-instances symbol labels. Adds array-literal-to-
struct-initializer lowering and avoids false frame-address-escape warnings.