Commit graph

117 commits

Author SHA1 Message Date
930e81573a Updated libsc.c65 and added multdivlib demo 2026-05-16 19:46:20 +02:00
a15d45a130 Add lib_mem_defrag and lib_mem_stats to memlib.c65 with demo 2026-05-16 02:11:51 +02:00
9720d00dcb Revert to previous working OpenCode 2026-05-16 01:29:33 +02:00
b095f78448 Assembler file is in the current dir not in temp 2026-05-14 21:50:30 +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
4a7a766aa8 Updated script_library_demo.c65 so it does at least something 2026-04-17 16:53:41 +02:00
ea45c9421e Simplified compile and start scripts in all examples 2026-04-17 16:30:07 +02:00
027eda5069 Added help for users to get acme installed on their system if it's missing. 2026-04-17 16:02:44 +02:00
163d6ff9c5 Added license. Docs updated to explain the command line options. 2026-04-17 15:08:53 +02:00
f4c713af7a Integrated that compiler executes acme assembler by itself, to build final executable 2026-04-17 14:42:15 +02:00
59f056734f Added c65cm stdlib as embedded into the c65gm exe so it's completely self contained, for easy distribution. 2026-04-17 11:53:20 +02:00
5e71adff2b Improved commands reference 2026-04-16 07:02:59 +02:00
aa59cf8008 Improved first func example 2026-04-15 19:22:51 +02:00
033767fb91 Fixed up shift demo and cbmiolib.c65 2026-04-15 17:43:13 +02:00
5f25d66aeb bit shift operators prefer shifting in ACC if possible 2026-04-15 07:11:56 +02:00
822326f993 Optimizations of shift operators 2026-04-15 03:03:35 +02:00
0357df9873 Added right and left shift operators 2026-04-15 01:29:38 +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
e5ee83d3dd Merge pull request 'auto_remove_unused_funcs' (#4) from auto_remove_unused_funcs into main
Reviewed-on: #4
2026-04-13 20:49:43 +02:00
bd4dc5d885 Updated tests so they work with new FuncHandler signature 2026-04-13 20:29:45 +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
51b9476a85 Fixed disabling some pragmas and test to go with them 2026-04-13 16:02:16 +02:00
2d2d665ebd Added pragma _P_IGNORE_UNUSED to suppress warnings for unused variables. 2026-04-13 15:13:21 +02:00
90caee5439 Merge pull request 'unused_variable_warnings' (#3) from unused_variable_warnings into main
Reviewed-on: #3
2026-04-13 13:39:37 +02:00
865930b161 Cleaned up bitfield handling so it's future proof (OR) 2026-04-13 13:36:59 +02:00
b400728893 Added so line numbers and source files are indicated on types declared but never used 2026-04-13 13:16:32 +02:00
0bfbfcdde5 Now unused vars seem to work 2026-04-13 12:57:27 +02:00
b25c11ae64 First commit refactoring and centralizing constant handling all over 2026-04-13 12:21:11 +02:00
4f4df41c18 Local variable expansion when calling macro 2026-03-04 22:32:53 +01:00
b614bcb043 Added the WORD <name> = @<label | variable> syntax. Initializes a WORD variable with the address of (pointer to) that symbol. 2026-02-24 23:04:58 +01:00
8398a30c97 Updated new c65gm keywords to editor syntaxes. LIBRARY and MACRO 2026-02-17 07:54:09 +01: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
8e66e95c90 Updated starlark info in docs 2026-02-11 15:54:46 +01:00
104e950d63 Updated docs to describe new SCRIPT blocks including macros 2026-02-11 14:06:09 +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
617f67ecb5 Added kate editor syntaxes to project 2026-01-26 20:37:48 +01:00
5f4b34e7c0 Made c64scr.c65 use functions. Backwards compatible with GOSUB 2026-01-11 18:41:24 +01:00
d717002b27 Updated FOR loop to do check at NEXT instead of at FOR handling edge cases 255 and 65536 better. Removed STEP 2026-01-11 14:45:15 +01:00
1185f8d265 Fixed script keyword in sublime syntax 2026-01-06 14:16:20 +01:00
1974837cdc Updated synatx file for Sublime 2026-01-04 12:13:21 +01:00
275f4782c8 Made error messages display the source and some context. 2026-01-03 12:05:02 +01:00
27a5b51a02 Fixed requirements 2026-01-03 11:45:22 +01:00
22320a3357 Added basic info about compiler. 2026-01-03 11:41:17 +01:00
ebad3c2e16 Added call graph functionality and analysis/warning of absolute address variable reuse overlap 2026-01-02 15:15:57 +01:00
35e4b77ee3 optimized xor generation somewhat. 2026-01-02 14:10:53 +01:00
25016018ac Added SWICH/CASE/DEFAULT/ENDSWITCH to docs 2025-12-22 23:48:18 +02:00
e33460d84d Added SWITCH/CASE/DEFAULT/ENDSWITCH 2025-12-19 22:56:16 +01:00
4319373828 Updated language guide slightly 2025-12-19 19:44:13 +01:00