Irmen de Jong
3e1386a987
remove the -dontsplitarrays compiler option
...
it was still there for backward compatibility reasons with really old prog8 code. If you need a word array to be not split, just use @nosplit on the array.
2025-10-05 14:44:29 +02:00
Irmen de Jong
71ffbe2ba7
document the long type
2025-10-04 22:33:43 +02:00
Irmen de Jong
2c7256a443
support assignment to indexed pointer targets
2025-09-27 14:52:04 +02:00
Irmen de Jong
54fa72fa98
added sys.waitrasterline() routine like sys.waitvsync() but wait for a given raster line
...
optimize uword <= $xx00 into msb(uword)<$xx
2025-09-23 01:09:54 +02:00
Irmen de Jong
19f19f3880
doc and opening borders
2025-09-20 21:44:48 +02:00
Irmen de Jong
ad0c767ea8
%breakpoint! introduced to place after an assignment to make it parse correctly
2025-09-20 00:46:15 +02:00
Irmen de Jong
a8bede17b2
fix defer() with the arena allocator ("return values are evaluated before the defer is executed")
2025-09-17 23:59:32 +02:00
Irmen de Jong
9461e4088c
fixed the hashtable example and workarounds for misbehaving defer in allocators
2025-09-17 22:53:01 +02:00
Irmen de Jong
633d6c34e2
add support for struct pointers and short-form initializers in arrays and assignments
2025-09-16 20:37:50 +02:00
Irmen de Jong
6de95f7a3b
new static struct initializer syntax ^^Node : [1,2,3]
...
avoids confusion with function calls
2025-09-10 13:47:12 +02:00
Irmen de Jong
3a0392df8a
there's a problem with the struct initializer syntax
2025-09-05 00:18:42 +02:00
Irmen de Jong
5999110e3f
avoid using temporary pointer to access struct fields if a simple Y indexed cpu instruction can be used
2025-09-03 18:37:56 +02:00
Irmen de Jong
3ef09d7d9a
use LOADFIELD instruction more instead of an extra explicit ADD
...
add implicit @zp to pointer variables if they don't have a preference
2025-08-31 15:53:44 +02:00
Irmen de Jong
2ca1820d4e
Merge branch 'master' into structs6502
2025-08-28 21:55:46 +02:00
Irmen de Jong
b52cee3154
use RST chapter notation to attempt to fix PDF chapters
2025-08-28 21:19:16 +02:00
Irmen de Jong
fad17cc094
support a few other simple cases of struct instance assignment
2025-08-21 00:04:30 +02:00
Irmen de Jong
826fb3e9c2
implemented assign indexed ptr byte
2025-08-17 13:21:31 +02:00
Irmen de Jong
324fb7dbf7
more basic pointer inplace operations (float)
...
basic pointers unit test now passes
2025-08-06 22:26:23 +02:00
Irmen de Jong
ea8935a346
doc
2025-08-02 00:02:29 +02:00
Irmen de Jong
dee761a99e
fix compiler crash on certain pointer assignments
2025-08-01 22:22:43 +02:00
Irmen de Jong
4ccd7f9f3a
improve docs about recursion
2025-07-29 22:49:24 +02:00
Irmen de Jong
1c9c5aeef7
todos
2025-07-28 23:29:18 +02:00
Irmen de Jong
08810c2749
proper error message for unsupported &&subroutine
2025-07-27 23:44:24 +02:00
Irmen de Jong
842b11ed9e
struct docs
2025-07-27 00:00:40 +02:00
Irmen de Jong
b0981a5fae
pointers no longer implicitly converted to boolean in expressions, to be consistent with how integers are handled in conditionals
...
adding particles fountain examples
2025-07-18 01:43:35 +02:00
Irmen de Jong
9f6106452e
revert & to untyped pointer, added && for typed pointer address-of
2025-07-07 16:17:07 +02:00
Irmen de Jong
b6c0bac96f
identified problems with pointer array as parameter
2025-07-06 20:33:20 +02:00
Irmen de Jong
8ede098154
fix pointer array initialization
2025-07-06 19:42:54 +02:00
Irmen de Jong
a68cf3c812
fix animalgame node reuse
2025-06-18 23:34:47 +02:00
Irmen de Jong
c2bf9024f8
start writing docs about structs and pointers, update syntax files with ^^
2025-06-18 19:00:18 +02:00