Irmen de Jong
0d3ad80659
retain type of consts better to avoid precision loss
...
this also fixed a difference in const calculation where the result could differ if you were using optimzations or not.
2024-09-14 21:06:21 +02:00
Irmen de Jong
e35cfd4971
get rid of the redundant 'f' suffix of several funtions in floats module (breaking change!)
...
Unfortunately a few routines (minf, maxf, clampf) remain unchanged, because removing the 'f' would make them clash with a builtin function.
floats.rndf -> floats.rnd
floats.parse_f -> floats.parse
floats.rndseedf -> floats.rndseed
floats.print_f -> floats.print
floats.str_f -> floats.tostr
2023-12-29 03:12:44 +01:00
Irmen de Jong
9314c346da
-target option is now required; c64 no longer the default
2023-06-03 19:14:45 +02:00
Irmen de Jong
4274296cf3
api change: new 'cbm' module that now contains the common CBM kernal variables and routines.
2023-05-02 01:19:53 +02:00
Irmen de Jong
f0930d8a18
added c64.RDTIM16() utility routine to just get the lower 16 bits of the jiffy clock
2021-01-02 20:59:48 +01:00
Irmen de Jong
510ca042c9
stack tested for most example programs
2020-11-22 18:35:43 +01:00
Irmen de Jong
e8faec0932
re-introduced more aggressive binexpr splitting optimization
2020-11-10 21:17:33 +01:00
Irmen de Jong
cd99fe46fd
finished call convention change for builtin functions now no longer via stack
2020-11-10 00:43:45 +01:00
Irmen de Jong
680b2df08a
just call the asmsub
2020-09-26 19:14:06 +02:00
Irmen de Jong
d1d224b7fc
fixed print_f on cx16. Some more examples are now multi-platform.
2020-09-22 01:34:05 +02:00
Irmen de Jong
de06353194
auto select correct library to import based on target, instead of having c64- and cx16- prefix variants
...
some programs are now 100% source compatible between C64 and Cx16 targets!
import libraries have been rena;med
2020-09-21 00:50:09 +02:00
Irmen de Jong
f08fc18ab5
renamed c64scr. to txt.
2020-08-27 18:10:22 +02:00
Irmen de Jong
0c461ffe2e
removed Register expression (directly accessing cpu register)
2020-07-25 14:14:24 +02:00
Irmen de Jong
69f1ade595
gfx mandelbrot example added
2020-06-18 01:35:24 +02:00
Irmen de Jong
e4fe1d2b8d
attempts to optimize in-place assignments
2020-04-08 03:11:38 +02:00
Irmen de Jong
f89457ba68
fixed var initialization bug in anonymous scopes
2020-03-23 02:09:30 +01:00
Irmen de Jong
0c561d8528
fixed subroutine parameter value issue
2020-03-23 00:13:46 +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
bb7b063757
revert inline var declaration in for loops
2019-08-18 03:16:23 +02:00
Irmen de Jong
fba149ee28
removed the ~ before block names
2019-07-29 23:11:13 +02:00
Irmen de Jong
5ed0893d96
tweak
2019-07-02 22:27:31 +02:00
Irmen de Jong
7114d3193c
some cleanups in library asm code
2019-03-21 22:36:46 +01:00
Irmen de Jong
f2397527f1
improved text output in stackvm
2019-03-13 22:45:12 +01:00
Irmen de Jong
8684f0c8f5
clean exit mandelbrot
2019-02-12 23:24:47 +01:00
Irmen de Jong
fa8a3c997a
Expressions can now be split over multiple lines. Fixed datatype of len().
2019-01-26 17:32:26 +01:00
Irmen de Jong
5471c5211c
make %asminclude work, restructure prog8lib into separate asm file
2019-01-21 00:49:48 +01:00
Irmen de Jong
2911e357bd
restructured program init code and library imports a bit
2019-01-20 17:45:57 +01:00
Irmen de Jong
ee906ba82c
fix ubyte2float conversion
2019-01-15 22:16:03 +01:00
Irmen de Jong
de4353a93e
fix too greedy removal of loop statement bodies sometimes
2019-01-15 21:46:27 +01:00
Irmen de Jong
0146a39ebb
moved some more stuff around
2019-01-08 02:09:35 +01:00