Irmen de Jong
23058b51a1
started changing libs to typed pointers
2025-07-21 20:50:33 +02:00
Irmen de Jong
bd72eaad4c
Merge branch 'refs/heads/master' into structs
...
# Conflicts:
# examples/test.p8
2025-06-18 17:53:20 +02:00
Irmen de Jong
b5d1575823
added boolean typed versions of the cx16.r0-r15 virtual registers
2025-06-18 00:05:10 +02:00
Irmen de Jong
59387b2ae8
Merge branch 'master' into structs
...
# Conflicts:
# docs/source/todo.rst
# examples/test.p8
2025-06-07 20:28:23 +02:00
Irmen de Jong
e8795859c5
added sorting library for target virtual
...
added sorting routines that sort a values array together with the keys array
optimized gnomesort a little
2025-06-07 19:42:40 +02:00
Irmen de Jong
bebe60b687
fix compiler crash on for x in wordvar, add sys.get_as_returnaddress()
2025-06-05 16:10:40 +02:00
Irmen de Jong
f8722faa4e
Merge branch 'master' into structs
...
# Conflicts:
# examples/test.p8
2025-06-03 21:15:19 +02:00
Irmen de Jong
d067fa4b73
added strings.find_eol()
2025-06-03 21:09:44 +02:00
Irmen de Jong
d28f154f1c
Merge branch 'master' into structs
...
# Conflicts:
# examples/test.p8
# parser/src/main/antlr/Prog8ANTLR.g4
2025-06-01 17:53:41 +02:00
Irmen de Jong
a87f2640d3
fixed signed byte comparisons in case of overflowing values
2025-06-01 14:01:25 +02:00
Irmen de Jong
112ca3cc53
allow sizeof(&thing), add sys.SIZEOF_POINTER
2025-05-29 15:58:29 +02:00
Irmen de Jong
3b1b0985c1
make sizeof(float) work, so you don't have to use sys.SIZEOF_FLOAT anymore etc.
...
define sys.SIZEOF_FLOAT in terms of sizeof(float)
2025-05-29 12:38:03 +02:00
Irmen de Jong
9da430ffeb
vm: more complete V-flag handling. somd doc and todo updates.
2025-05-23 18:58:14 +02:00
Irmen de Jong
7eb079050c
fix strings.hash() on 6502 CPU's. NOTE: now takes string pointer in AY instead of R0 on all platforms
2025-05-01 22:47:43 +02:00
Irmen de Jong
532d719089
more optimal math.randrange() routines
2025-04-24 04:04:14 +02:00
Irmen de Jong
e375f6afce
fix diskio.f_read() returning 1 less than the actual size read.
...
fix diskio.f_read_all() more robust error status end of loop checking.
2025-04-21 05:02:16 +02:00
Irmen de Jong
9e694c0337
doc
2025-04-18 21:11:27 +02:00
Irmen de Jong
0ab98033b5
add rom-compatible random number routines
2025-04-14 22:04:11 +02:00
Irmen de Jong
8b08895d0f
also add strings.ncompare() to virtual lib
2025-03-09 14:33:31 +01:00
Irmen de Jong
e3e5bff7bb
add missing sprites benchmark module
2025-03-06 19:39:55 +01:00
Irmen de Jong
4db6859f3f
IR: strict register pool type assignment, 1 unique type per register + verification during IR writing
2025-01-03 04:18:16 +01:00
Irmen de Jong
10b9162dc5
improving fileselector
2024-12-30 21:34:03 +01:00
Irmen de Jong
76b29aa629
fixed register reuse and types on syscall interface
2024-12-30 00:00:31 +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
3850e1dbb5
Merge branch 'better-ir'
2024-12-24 21:23:57 +01:00
Irmen de Jong
91cde072e0
added txt.t256c() on the cx16 to turn 256 color tile mode on or off
2024-12-24 12:10:02 +01:00
Irmen de Jong
2ca4aed566
IR: prefix immediate values with '#' for human readability reasons (no technical reason)
2024-12-24 09:35:10 +01:00
Irmen de Jong
580e786952
change math.crc32 to the same algorithm as pkzip/zlib uses (ISO-HDLC). Add math.crc32_end_result(). Fix a parse error in profiler.py script.
2024-12-22 09:19:54 +01:00
Irmen de Jong
c0ae35b3a3
tweaks, bump version 11.0
2024-12-22 06:34:17 +01:00
Irmen de Jong
379d241a0d
various library modules now also use regular asm symbol prefixing rules: buffers, compression, cx16logo, test_stack.
2024-12-21 06:34:55 +01:00
Irmen de Jong
565973c520
diskio read & write routines now always reset the io channels back to the defaults before returning
...
This means you don't have to call CLRCHN yourself anymore inbetween if you want to do screen output or keyboard input while a file is open
2024-12-03 23:46:07 +01:00
Irmen de Jong
feb8aa435e
monogfx, gfx_lores, gfx_hires now all uses 8kb stack from buffers module; no more broken flood fills. fill() has an extra byte parameter now where you need to pass in the ram bank to use for the stack. (not on virtual target)
2024-11-29 21:28:34 +01:00
Irmen de Jong
857d2eefca
added floats.interpolate(), math.interpolate(), and LERP example
2024-11-24 10:00:21 +01:00
Irmen de Jong
906b137a7c
renamed 'string' module to 'strings' for consistency
2024-11-23 15:51:38 +01:00
Irmen de Jong
4958463e75
moved floats.MIN/MAX to sys.MIN_FLOAT/MAX_FLOAT
...
added txt.print_f as alias to floats.print
2024-11-22 00:46:23 +01:00
Irmen de Jong
2360625927
added min/max values for the various integer types as sys.MAX_XXX and sys.MIN_XXX
...
renamed sys.sizeof_xxx into sys.SIZEOF_XXX to be consistent with the uppercasing of the other constants
2024-11-21 23:25:02 +01:00
Irmen de Jong
8badc40883
added several float limits contants such as floats.EPSILON, E, MIN, MAX
...
fix VM float min max limits
2024-11-21 23:25:02 +01:00
Irmen de Jong
9438e996d7
Fixed math.mul16_last_upper().
...
Added math.lerpw() a LERP routine for words (to complement the existing math.lerp() for bytes)
Described the LERP routines in the library chapter in the docs.
2024-11-12 18:31:24 +01:00
Irmen de Jong
a50400b7d1
initial neo6502 target
2024-11-08 19:04:49 +01:00
Irmen de Jong
4b23b1dc86
don't always import math automatically anymore
2024-11-01 03:39:52 +01:00
Irmen de Jong
9005c7994a
added Linear Interpolation (LERP) functions: math.lerp(), floats.lerp(), floats.lerp_fast()
2024-11-01 02:05:48 +01:00
Irmen de Jong
09cbdf410a
added diskio.exists(), made f_close_w() idempotent like f_close() already was
2024-10-31 21:25:22 +01:00
Irmen de Jong
483d193ced
vm: implemented reading/writing files in diskio
2024-10-29 02:34:53 +01:00
Irmen de Jong
570b574b93
added sys.memcmp
2024-10-28 00:41:26 +01:00
Irmen de Jong
d8f1822c12
fixes
2024-10-18 20:32:46 +02:00
Irmen de Jong
65ddcf91d0
remove unused syscalls
2024-10-15 18:24:55 +02:00
Irmen de Jong
b2bdfe8482
fix ir rndseed()
2024-10-08 20:40:00 +02:00
Irmen de Jong
fea531be9a
add sys.sizeof_bool, _ubyte, _uword constants
2024-10-07 20:45:13 +02:00
Irmen de Jong
ae669af904
add sys.sizeof_byte, _word, _float constants
...
because Antlr doesn't allow the grammar to contain a sizeof(typename) rule to override the sizeof(identifier) rule
2024-10-07 19:17:37 +02:00
Irmen de Jong
df35aa7942
added (experimental) compression library
2024-09-29 18:59:53 +02:00