Commit graph

78 commits

Author SHA1 Message Date
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
b54183aab4 Added claude code docker setup for project. Added language guide. 2025-12-19 19:26:56 +01:00
5f01282df5 Fixed so functions can do type conversion between in/out params and arguments. Lossy conversions give a warning now. 2025-12-12 14:11:31 +01:00
b830a41b5f Slight fix memlib_demo.c65 2025-12-12 13:32:17 +01:00
b382732e1c Updated poke and peek command info 2025-12-07 08:47:09 +01:00
22e6759409 Minor optimization on FOR when assignment and loop var is the same 2025-11-27 16:25:33 +01:00
23a721217d Fixed up memlib.c65 and added errors to POKEW and PEEKW if using the same variable for pointer and value. 2025-11-22 11:26:19 +01:00
4971da9978 Added sublime syntax files for c65gm and acme 2025-11-22 11:23:34 +01:00
ec2ba65881 Yet another fix 2025-11-21 17:05:21 +01:00
062c909017 Updated #DEFINE doc to reflect current behavior. 2025-11-21 17:04:11 +01:00
6a63a77c0c Fixed memlib #DEFINE syntax (restored to c65cm syntax). memlib.c65 still borked. 2025-11-21 16:38:11 +01:00
8f947f7149 Fixed func calls with string literal arguments and $-replacements in #DEFINE. memlib.c65 is still borked. 2025-11-21 16:27:57 +01:00
312f724971 Added old lib and two examples 2025-11-21 12:01:54 +01:00
040c03467b Fixed to function without params can be called as myfunction() with empty parens 2025-11-21 10:59:51 +01:00
834548d7b9 Doc fixes 2025-11-21 09:34:41 +01:00
c6b3e619c3 Added xor (^) operator to constant expressions 2025-11-20 22:01:23 +01:00
364b08531b Fixed doc example 2025-11-20 21:52:07 +01:00
fe3d122258 Added initial documentation 2025-11-20 21:43:34 +01:00
1617297067 New syntax to PEEK and added tests 2025-11-20 20:19:45 +01:00
4aa6641583 Merge pull request 'for_loops' (#1) from for_loops into main
Reviewed-on: #1
2025-11-18 23:24:14 +01:00
315be292bf Added sensible handling for byte iterators 2025-11-18 23:23:05 +01:00
4f51572477 Changed for to not implement DOWNTO. 2025-11-17 23:58:51 +01:00
ee74135839 Fixed up comparision operator for FOR 2025-11-17 22:58:58 +01:00
c647ff6ba9 Added FOR and NEXT to main.go 2025-11-17 22:48:31 +01:00
37296cf627 First non-working version of FOR/NEXT loops. (tests failing) 2025-11-17 22:19:20 +01:00
4b5f8b30b7 Renamed loop stacks to prepare for FOR loop 2025-11-17 21:20:29 +01:00
c8c1d7e705 Added support for absolute variable declarations in func declarations. 2025-11-17 20:40:24 +01:00
1f0bb1fcff Added c65gm executable to .gitignore 2025-11-15 17:13:29 +01:00
c543dde600 Changed binary prefix from ! to % (as acme) 2025-11-09 12:15:50 +01:00
d57a40a7cf Improved funchandler.go HandleFuncCall to handle consts and expressions better 2025-11-08 13:46:41 +01:00
2dc591f40d Optimized equality and non equality tests with zero in comparison.go 2025-11-06 07:09:19 +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
6085bccad3 Added all peeks, pokes, pointer, gosub and subend 2025-11-05 23:23:56 +01:00
5b3e5737b8 Added label and origin commands. 2025-11-05 19:29:35 +01:00
aedc605445 Added goto 2025-11-05 19:14:26 +01:00
bacd4851ef Added incr and decr and also local variable expansion in asm blocks. 2025-11-05 18:49:54 +01:00
7ac90260af Added function handling using FuncHandler 2025-11-05 18:08:25 +01:00
afc340d52d IF and WHILE now take single operator 2025-11-04 20:47:04 +01:00
3d6f786949 Updated while_test.go to new code generation. Added new versions of IF, ELSE, ENDIF based on comparison.go 2025-11-04 20:01:52 +01:00