Irmen de Jong
a106c88054
unit test for %output library, and docs.
2025-01-27 23:26:21 +01:00
Irmen de Jong
ee784e1ccc
fix indication for when imported modules are library modules or not.
...
This fixes a bug where syslib and such gets optimized away when it is loaded from an alternative library location using the configurable target library path property setting.
2025-01-26 21:19:29 +01:00
Irmen de Jong
d0c184c7de
remove needless 0 initializations of multi decl's
...
fix outdated text
2025-01-23 22:42:58 +01:00
Irmen de Jong
7a13f57ab0
enforce variable init values are only strings or arrays
2025-01-20 01:25:17 +01:00
Irmen de Jong
0c882836d9
support multi-value variable initialization: ubyte a,b,c = multi()
2025-01-18 22:08:31 +01:00
Irmen de Jong
228be5cd04
callgraph no longer forgets some identifier occurrences
2025-01-18 21:18:08 +01:00
Irmen de Jong
e8f3af6981
adding a configurable compilation target
2025-01-17 00:56:44 +01:00
Irmen de Jong
09a17743ad
merge IMachineDefinition into ICompilationTarget
2025-01-13 21:45:38 +01:00
Irmen de Jong
2ab2130000
renamed "intermediate AST" to "simplified AST"
2025-01-10 20:33:44 +01:00
Irmen de Jong
66558f7638
IR support for multi-value returns in normal subroutines, documentation.
2025-01-09 22:39:08 +01:00
Irmen de Jong
a6f9ed07e7
6502 codegen for multi-assigns
2025-01-09 00:38:47 +01:00
Irmen de Jong
8f6b5676d7
working on codegen for multi-value returns
2025-01-07 20:35:49 +01:00
Irmen de Jong
ca9422bbe9
be able to parse multiple return values (sub + return)
2025-01-07 01:51:54 +01:00
Irmen de Jong
e5ff3c1ff3
fix compiler crash when using strings in if-expression. Remove harmless info message.
2025-01-06 01:34:42 +01:00
Irmen de Jong
78c71bbf0e
adding file selector example
2024-12-30 00:00:31 +01:00
Irmen de Jong
37c2c1bf0b
support &, &< and &> on array elements from split word arrays, not just on the array as a whole
2024-12-30 00:00:31 +01:00
Irmen de Jong
056c0a24d9
better way of doing BIT instructions
2024-12-30 00:00:31 +01:00
Irmen de Jong
827df04b32
IR: BIT instruction added
2024-12-30 00:00:31 +01:00
Irmen de Jong
bdccffbb8e
stricter type checking in multivalue assigns, avoids possible invalid output due to missing type cast
2024-12-26 22:20:08 +01:00
Irmen de Jong
4daa909f32
fix path normalization problems,
...
allow ~ in srcdirs compiler flag
2024-12-26 17:42:20 +01:00
Irmen de Jong
529ea5bf58
added coroutines library and multitasking example. Added sys.push_returnaddress().
2024-12-26 00:57:39 +01:00
Irmen de Jong
0653d430a7
fix compiler crash related to uword array parameters type checking
2024-12-25 12:12:20 +01:00
Irmen de Jong
5071da6784
retain constants in IR
...
some IR related cleanups
2024-12-24 00:30:08 +01:00
Irmen de Jong
4c1e2f3110
refactor package nesting of ast exception classes
2024-12-23 18:14:46 +01:00
Irmen de Jong
2727a4dcb3
tweak DataType class and memsizer related to subtypes/elementtypes
2024-12-23 17:28:25 +01:00
Irmen de Jong
d70cfbb661
added sorting module and sortingbench example
2024-12-21 06:18:35 +01:00
Irmen de Jong
5482ac0302
simplify grammar of @tags, also improving their error message
2024-12-21 01:44:58 +01:00
Irmen de Jong
131d5ceb4f
avoid re-reading all source files when sourcelines are requested in the asm
2024-12-21 00:06:18 +01:00
Irmen de Jong
512ddd1694
cleanups
2024-12-20 22:59:20 +01:00
Irmen de Jong
73baaeff1f
avoid compiler crash when using char literal in str initialization
...
fix compiler crash when using str var in an expression without &
2024-12-18 15:08:45 +01:00
Irmen de Jong
7c79cdbd2f
fix symbol prefixing on goto with expression
...
added coroutines example
2024-12-17 16:16:38 +01:00
Irmen de Jong
02f3f5d0f5
@split is back to force splitting of word arrays
2024-12-16 14:51:32 +01:00
Irmen de Jong
1e85f7812f
removed anyall library module altogether. The routines weren't very optimized and didn't work on split word arrays.
2024-12-15 17:45:31 +01:00
Irmen de Jong
80d88b3c61
fix many split array issues
2024-12-15 17:08:07 +01:00
Irmen de Jong
28c721fa7d
add a split-array version for word containment check
2024-12-15 13:45:47 +01:00
Irmen de Jong
8f799567cf
make word arrays split by default (w.i.p.)
2024-12-15 08:12:34 +01:00
Irmen de Jong
697d54e10a
fix asmgen for call $3000
2024-12-13 22:33:26 +01:00
Irmen de Jong
1679ca79b4
can now use boolean params mapped to Rx register
2024-12-13 20:47:23 +01:00
Irmen de Jong
f8aaa2d13c
explicit integer type check for @R0-R15 parameters
...
avoids weird type inconsistency for boolean parameters that would get aliased as unsigned byte instead invisibly
2024-12-10 23:19:41 +01:00
Irmen de Jong
b2e821755c
optimized palette module
...
removed palette.set_monochrome(), added start color index to several color set functions
removed mcf example
update gradle wrapper
2024-12-08 15:30:42 +01:00
Irmen de Jong
2e303041c1
fix crash when using undefined variable in for loop
2024-12-06 21:50:22 +01:00
Irmen de Jong
86d4a4309f
cleanups
2024-12-05 21:56:00 +01:00
Irmen de Jong
1a1ab0dac6
changed the data type system to composite types
2024-12-05 21:48:51 +01:00
Irmen de Jong
617ea15c3a
fix failing optimization of 'not' in if statements
2024-12-04 19:03:24 +01:00
Irmen de Jong
1ebfff7c7b
add -plaintext and -ignorefootguns options
2024-12-03 19:12:30 +01:00
Irmen de Jong
50c3d809dc
fix type casting issues and unary ^ operator
...
signed numbers are no longer implicitly converted to unsigned
proper range check on bankof()
2024-12-01 17:43:53 +01:00
Irmen de Jong
6aaa0f928e
IR: fix invalid asm name matching that resulted in not removing subs with a name matching an IR asm instruction
2024-11-30 00:10:57 +01:00
Irmen de Jong
53558f5c1d
add zmskit example for zsmkit v2
2024-11-29 00:04:57 +01:00
Irmen de Jong
2eed75f602
call convention for @Rx parameters, also use cpu registers if possible, like normal parameters
2024-11-25 22:22:24 +01:00
Irmen de Jong
d58f9f56c4
tests for register args for normal subs
...
some warnings demoted into infos
2024-11-24 19:21:45 +01:00