Commit graph

22 commits

Author SHA1 Message Date
9f24408a0b Added pragma to control number of steps in scripts and macros. Now that we support file loading some scripts might need more steps to process images or whatnot. 2026-06-12 15:12:34 +02:00
d4f1213c06 Added meaningful error messages for Starlark code 2026-06-11 02:16:38 +02:00
1abad8bb92 Add experimental peephole optimizer with 5 passes, CLI flags, pragmas, and I/O region protection. 2026-06-04 01:21:10 +02:00
28723878b1 Optimizer removed redundant lda's 2026-06-04 00:05:24 +02:00
89bd30bfbd Fixed optimizer bugs 2026-06-03 23:23:54 +02:00
037d232c55 First naive version of optimizer 2026-06-03 21:51:29 +02:00
b6fce2a7f9 Fix pragma auto-removal for multi-FUNC groups sharing one FEND 2026-05-17 16:23:14 +02:00
411106ea36 Added pragma _P_ASM_AFTER_VARS to control is ASM blocks should be generated after everything else (vars and string constants) 2026-04-17 23:01:42 +02:00
bc6fdaf8f2 Also removing all function vars, consts and labels when a function is removed on pragma _P_REMOVE_UNUSED 2026-04-13 21:28:16 +02:00
652e147298 Added functionality to cull unused functions (by pragma _P_REMOVE_UNUSED) 2026-04-13 19:57:16 +02:00
4660b54d70 Added unused function warning. 2026-04-13 16:59:45 +02:00
0bfbfcdde5 Now unused vars seem to work 2026-04-13 12:57:27 +02:00
4acd8f2e87 Local variable expansion and macro expansion in ASM block now takes into account comments and ommits those. 2026-02-13 09:29:40 +01:00
83a0a20393 Added SCRIPT MACRO blocks 2026-02-11 13:56:21 +01:00
c6b67f8044 Added SCRIPT LIBRARY block for reusable StarLark code. 2026-02-11 13:25:07 +01:00
275f4782c8 Made error messages display the source and some context. 2026-01-03 12:05:02 +01:00
ebad3c2e16 Added call graph functionality and analysis/warning of absolute address variable reuse overlap 2026-01-02 15:15:57 +01:00
af315647bd Added Starlark scripting language for SCRIPT blocks. 2025-11-06 06:57:06 +01:00
d09a039697 Generate ASM, ENDASM and SCRIPT, ENDSCRIPT asm comments in output 2025-11-06 05:35:27 +01:00
bacd4851ef Added incr and decr and also local variable expansion in asm blocks. 2025-11-05 18:49:54 +01:00
ac40f67ec0 Added ADD command 2025-11-02 00:43:23 +01:00
89d8493192 Added compiler, command and the BYTE command for a first iteration. 2025-11-01 18:50:01 +01:00