3449 Commits
Author SHA1 Message Date
Irmen de Jong 5d555216ff amiga: add ability to customize the bitmap font in gfxtext 2026-11-25 20:07:23 +01:00
Irmen de Jong 0b3aaa513c tweak pointer informational message 2026-11-24 20:49:10 +01:00
Irmen de Jong 8ae8cd0964 fix bmx.py 16 colors bug 2026-11-23 23:41:05 +01:00
Irmen de Jong a3850d7fd9 bump version to 14.0-BETA4 2026-11-22 20:14:23 +01:00
Irmen de Jong 35de1c3289 Amiga: bare-metal IRQ handler support (general, VERTB, CIA timers, TOD)
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.
2026-11-22 20:05:04 +01:00
Irmen de Jong f8ff64ffda Docs: refresh ideas/ plans against current sources, consolidate by target 2026-11-22 17:21:41 +01:00
Irmen de Jong c9f874c557 Performance: absolute addressing for struct instance fields on classic 6502 codegen
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.
2026-11-22 16:36:22 +01:00
Irmen de Jong 5dcf746d98 Fix struct instance access on IR/new6502 backends and namespaced struct types 2026-11-22 16:21:48 +01:00
Irmen de Jong 48a826db0a fix swap() on struct instances 2026-11-21 14:04:20 +01:00
Irmen de Jong 32f82e9e16 fix subroutine-local struct types 2026-11-21 13:48:11 +01:00
Irmen de Jong c7147fe3ea struct instance todo 2026-11-21 12:41:19 +01:00
Irmen de Jong e92a79c887 Add memory-mapped single struct instances 2026-11-21 12:29:32 +01:00
Irmen de Jong 6842239900 Support typed address-of struct instances in static initializer data
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.
2026-11-20 00:52:52 +01:00
Irmen de Jong 074bc2ce91 Fix address-of references in static initializer data
`&p1` inside static initializer data (pointer arrays of struct instances
and pointer-typed struct fields) produced broken symbol references.
2026-11-19 23:35:46 +01:00
Irmen de Jong c1afe48564 Add real struct instance variables on 6502 targets
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.
2026-11-19 19:13:37 +01:00
Irmen de Jong 1829191db8 fix docs 2026-11-19 01:26:49 +01:00
Irmen de Jong e954d8b705 Add real struct instance variables on IR/m68k and virtual targets
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.
2026-11-19 00:32:50 +01:00
Irmen de Jong bcb4feebf8 amiga: add hwinfo library module 2026-11-18 02:45:55 +01:00
Irmen de Jong c883b460a8 amiga: tweak beachball sprite examples
m68k: better describe role of D7 loop counter register
2026-11-17 23:36:28 +01:00
Irmen de Jong df16719e72 promote petswirl example to generic for all CBM targets 2026-11-17 18:49:31 +01:00
Irmen de Jong 39fee2d0f3 amiga: fix aga sprites 2026-11-17 04:39:53 +01:00
Irmen de Jong 7ea43f659f amiga: attempt at aga 64 pixel wide sprites 2 2026-11-17 03:21:17 +01:00
Irmen de Jong f462a22874 amiga: attempt at aga 64 pixel wide sprites 2026-11-17 01:44:23 +01:00
Irmen de Jong a59929fa90 IR: don't truncate 32-bit pointer constants
amiga: add ECS 16-color (attached) sprite support
2026-11-17 01:35:53 +01:00
Irmen de Jong 1cd4736085 amiga: rename text -> gfxtext 2026-11-17 00:24:19 +01:00
Irmen de Jong eb0e28cc8a amiga: add sprites library (OCS only for now) 2026-11-16 23:57:37 +01:00
Irmen de Jong 8d89a41d6d amiga: fix waitvsync 2026-11-16 20:44:41 +01:00
Irmen de Jong d9fe4718d4 m68k: added draw_bob 2026-11-16 04:09:15 +01:00
Irmen de Jong 973e180108 m68k: struct defs now as RS blocks in the .asm instead of hand calculated EQUS 2026-11-15 21:57:32 +01:00
Irmen de Jong 1c4238d189 fix mob helper routines 2026-11-15 20:07:14 +01:00
Irmen de Jong 7f22c91674 amiga: add 'mobs' library for sprite/bob base structures and helper routines 2026-11-15 18:54:14 +01:00
Irmen de Jong 93bab5be7e amiga: add CIA hardware timer and TOD (time of day) helper routines 2026-11-15 17:38:18 +01:00
Irmen de Jong b757932159 6502: fix 65C02 paired-store index and slow-store lint 2026-11-15 16:39:07 +01:00
Irmen de Jong 7f743cba1c Optimize 6502 constant-base byte-indexed accesses 2026-11-15 03:46:58 +01:00
Irmen de Jong 28a7089969 fix docs on long, update skills 2026-11-15 03:29:21 +01:00
Irmen de Jong b9fae18200 strings: fix several edge cases in the string library
fixes #252
2026-11-14 22:59:32 +01:00
Irmen de Jong de17e79536 cleanup more examples 2026-11-14 18:46:37 +01:00
Irmen de Jong fd1d4378ba cleaned up amiga,c64 examples 2026-11-14 16:42:21 +01:00
Irmen de Jong e13ac65c7a amiga: fix masked blit to allow bit-shifts 2026-11-13 21:48:02 +01:00
Irmen de Jong 5bfeb173d7 m68k/Amiga: fix float docs and the single-precision EPSILON constant
Docs and messages corrected for the m68k targets, plus the shared m68k float
library EPSILON fixed for single precision.
2026-11-13 19:41:29 +01:00
Irmen de Jong 1e7d3b26f7 some deprecation notices, m68k docs fixes 2026-11-13 18:29:27 +01:00
Irmen de Jong f82c8f87a1 removed old deprecated cx16 psg library, new one psg2 renamed to psg 2026-11-13 12:07:58 +01:00
Irmen de Jong dd2d1eed5d update todo 2026-11-12 01:14:00 +01:00
Irmen de Jong 31bba51473 add /review-p8 command for agents, update skills 2026-11-11 22:27:52 +01:00
Irmen de Jong 8562414a4c doc update status of m68k backends 2026-11-11 13:00:24 +01:00
Irmen de Jong bd90c74f90 big amiga examples cleanup 2026-11-10 20:21:49 +01:00
Irmen de Jong de2788c6ac Document the floats.* codegen contract in tiers 2026-11-10 11:57:42 +01:00
Irmen de Jong ee78eb583e Reject native %asm on the virtual target at compile time 2026-11-10 11:41:05 +01:00
Irmen de Jong 224b7318ab amiga; tweak blitter helpers, enhanced bmx.py conversion script added 2026-11-10 04:22:55 +01:00
Irmen de Jong f5981a9817 enable %option verafxmuls on C64 + Vera64X 2026-11-09 20:30:48 +01:00