Add a VBR-aware autovector IRQ handler mechanism to shared_amiga_custom.p8:
set_handler/restore_handler install a generic trampoline at levels 1-7
(saves D0-D7/A0-A6, derives level from SR, jsr's the user handler, rte).
restore_system() restores any installed handlers automatically. Handlers
must be integer-only (no FPU state saved).
VERTB: set_level3_handler, enable/disable/ack via INTF_* constants.
CIA timers: set_ciaa_handler/set_ciab_handler, enable/disable_ciaa/ciab,
read_ciaa_icr/read_ciab_icr (read acknowledges all pending sources).
TOD alarm uses the same mechanism (ICR bit 2, tod_alarm_set/enable).
IRQ sources use the NDK INTF_* constants instead of a custom enum.
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.