Commit Graph

244 Commits

Author SHA1 Message Date
Irmen de Jong
c0887b5f08 removed 'continue' statement to be able to generate more optimized loop assembly code. started with for loop optimizations 2020-08-17 19:22:29 +02:00
Irmen de Jong
fbe3ce008b slight expression rewrite in case of certain in-place assignments, to try to get the in-place variable operand to the leftmost position 2020-07-30 01:30:21 +02:00
Irmen de Jong
cd651aa416 use repeat 2020-07-26 13:50:14 +02:00
Irmen de Jong
c38508c262 introduced repeat loop. repeat-until changed to do-util.
forever loop is gone (use repeat without iteration count).
struct literal is now same as array literal [...] to avoid parsing ambiguity with scope blocks.
2020-07-25 16:56:34 +02:00
Irmen de Jong
0c461ffe2e removed Register expression (directly accessing cpu register) 2020-07-25 14:14:24 +02:00
Irmen de Jong
71e678b382 fixed possible register subroutine arg clobbering 2020-07-04 17:05:36 +02:00
Irmen de Jong
3050156325 reverted subroutine inlining, it was a mistake 2020-07-04 01:02:36 +02:00
Irmen de Jong
d89f5b0df8 todo about fixing argclobbering 2020-07-03 23:49:17 +02:00
Irmen de Jong
76cda82e23 v2.2 2020-06-16 01:43:44 +02:00
Irmen de Jong
ceb2c9e4f8 added string value assignment, leftstr, rightstr, substr functions 2020-06-06 00:05:39 +02:00
Irmen de Jong
6408cc46a8 cmdrx16 github ref 2020-05-15 00:32:45 +02:00
Irmen de Jong
f5e6db9d66 big compiler speedup due to optimized scope lookups 2020-05-14 23:59:02 +02:00
Irmen de Jong
5ebd9b54e4 added some more optimized array assignments 2020-04-10 23:30:19 +02:00
Irmen de Jong
cc4e272526 the new assignment code (once complete) really is a big enough change to bump the version to 2.0 2020-04-09 00:24:37 +02:00
Irmen de Jong
d22780ee44 implemented asm for lsl array values 2020-04-03 21:45:52 +02:00
Irmen de Jong
267adb4612 doc 2020-03-29 03:06:51 +02:00
Irmen de Jong
bed34378be doc 2020-03-28 14:24:00 +01:00
Irmen de Jong
4108a528e1 proepr compiler error when there's no main module 2020-03-26 23:22:01 +01:00
Irmen de Jong
5f3a9e189a doc 2020-03-26 01:20:04 +01:00
Irmen de Jong
2f05ebb966 bitmap lines and circles 2020-03-25 01:07:42 +01:00
Irmen de Jong
a335ba519a fix warnings about unreachable code 2020-03-24 22:37:42 +01:00
Irmen de Jong
f2bb238e9b cleaned up various ast checks/mutations 2020-03-24 19:37:54 +01:00
Irmen de Jong
6dd44aaf0d compiler main cleanup 2020-03-23 02:54:04 +01:00
Irmen de Jong
f89457ba68 fixed var initialization bug in anonymous scopes 2020-03-23 02:09:30 +01:00
Irmen de Jong
efef205fcf doc 2020-03-23 01:24:54 +01:00
Irmen de Jong
0c561d8528 fixed subroutine parameter value issue 2020-03-23 00:13:46 +01:00
Irmen de Jong
3a99115070 Initial variable values semantics changed: now always sets value at program (re)start (except strings/arrays).
This may change later by introducing a compiler option to choose a strategy, perhaps.
2020-03-22 15:12:26 +01:00
Irmen de Jong
63c073c93f got rid of the Simulator / AST VM 2020-03-22 02:50:34 +01:00
Irmen de Jong
4929c198ba tweak error reporting, expanded lines and circles example 2020-03-22 00:43:46 +01:00
Irmen de Jong
21dbc6da97 doc 2020-03-21 12:51:32 +01:00
Irmen de Jong
f265199fbe replaced typecastsAdder with version based on astwalker 2020-03-20 22:28:18 +01:00
Irmen de Jong
a326ffa00a added warning about sgn() of unsigned type 2020-03-14 21:09:34 +01:00
Irmen de Jong
1de328b2e8 added forever-loop and optimizer 2020-03-14 18:11:04 +01:00
Irmen de Jong
4fd14f1366 doc updates 2020-03-14 15:20:04 +01:00
Irmen de Jong
64d682bfde todo 2020-03-13 02:33:02 +01:00
Irmen de Jong
b182f7e693 optimizer removes unreachable code following call to exit() 2020-03-13 02:31:53 +01:00
Irmen de Jong
e6be428589 compiler warning for unreachable code following a call to exit() 2020-03-13 02:21:37 +01:00
Irmen de Jong
85c7f8314b added exit(rc) builtin function to immediately exit the program with a return code in A register 2020-03-13 02:08:18 +01:00
Irmen de Jong
796d07a7f8 fix crash in asm code generated for bitshift operation with memory address operand 2020-03-13 01:26:53 +01:00
Irmen de Jong
2af86a10b2 remove stack error comments 2020-03-13 00:52:52 +01:00
Irmen de Jong
7fbe486dff fix eval stack register X error in print_uw 2020-03-13 00:50:30 +01:00
Irmen de Jong
fbecedaf41 added error for unsupported sort(floatarray) 2020-03-11 23:33:06 +01:00
Irmen de Jong
8d1a4588d3 added 'downto' range expression 2020-03-11 20:59:14 +01:00
Irmen de Jong
66d2af4453 added '@' alternative string/char encoding 2020-03-11 00:41:58 +01:00
Irmen de Jong
ef6c731bb3 added '@' alternative string/char encoding 2020-03-11 00:32:50 +01:00
Irmen de Jong
98a638a2f3 split asmsub and romsub declarations 2020-03-10 23:09:31 +01:00
Irmen de Jong
e2cb031386 added 'void' keyword to explicitly ignore subroutine return values (and no longer get a warning) 2020-02-09 01:29:09 +01:00
Irmen de Jong
a0bc97b90c fix byte array iteration for bb in [1,2,3]
improved array literal datatype detection
2020-02-09 00:45:53 +01:00
Irmen de Jong
885b22df40 fixed while and repeat warning messages line number
fixed invalid while and repeat asm label names
fixed boolean checking of numbers
2020-02-08 19:45:30 +01:00
Irmen de Jong
b8816a0e2f got rid of separate str_s datatype 2020-02-07 20:47:38 +01:00