Irmen de Jong
|
23058b51a1
|
started changing libs to typed pointers
|
2025-07-21 20:50:33 +02:00 |
|
Irmen de Jong
|
c3be7ab4b3
|
fix if expression type problems with pointers
|
2025-07-18 23:44:55 +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
|
9c63ef39c7
|
fix pointer test
|
2025-07-07 23:09:45 +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
|
f9fbfe30e3
|
fix &x +/- offset pointer arithmetic expression
|
2025-07-07 13:11:57 +02:00 |
|
Irmen de Jong
|
b6c0bac96f
|
identified problems with pointer array as parameter
|
2025-07-06 20:33:20 +02:00 |
|
Irmen de Jong
|
2a4a3b786e
|
cleanup error message for currently unsupported deref'd pointer assignments
|
2025-07-06 14:59:42 +02:00 |
|
Irmen de Jong
|
b4e0a2019e
|
fixed assignment to a[i]^^
|
2025-07-06 13:38:22 +02:00 |
|
Irmen de Jong
|
54d41b7f6f
|
fixed a[i]^^
|
2025-07-05 23:54:08 +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 |
|
Irmen de Jong
|
b137164fe6
|
allow str assigned to ^^ubyte without an explicit cast
|
2025-06-17 18:29:48 +02:00 |
|
Irmen de Jong
|
67d4ad50e1
|
add new animals example (that uses a pointer tree)
|
2025-06-17 01:08:36 +02:00 |
|
Irmen de Jong
|
c71066af4c
|
fixing name lookup issue
|
2025-06-16 22:15:51 +02:00 |
|
Irmen de Jong
|
6f0a0981bd
|
fixing name lookup issue
|
2025-06-16 00:21:54 +02:00 |
|
Irmen de Jong
|
49a4d9ba37
|
allow str as struct field type (^^ubyte) and strings in struct initializers
|
2025-06-15 00:29:59 +02:00 |
|
Irmen de Jong
|
fcdfa741b9
|
Merge branch 'master' into structs
# Conflicts:
# compiler/src/prog8/compiler/astprocessing/AstPreprocessor.kt
|
2025-06-14 21:07:23 +02:00 |
|
Irmen de Jong
|
e3e395836d
|
fix splitting of array decl and initializer for non numeric types
|
2025-06-13 23:31:56 +02:00 |
|
Irmen de Jong
|
12abafb917
|
Merge branch 'master' into structs
# Conflicts:
# docs/source/todo.rst
# examples/test.p8
# gradle.properties
|
2025-06-12 00:11:58 +02:00 |
|
Irmen de Jong
|
0be90dedf2
|
check for split word array as argument
|
2025-06-11 21:35:36 +02:00 |
|
Irmen de Jong
|
daf7c3357c
|
better detection of missing return statement
preparing 11.4
|
2025-06-09 16:01:56 +02:00 |
|
Irmen de Jong
|
e6bab3ceeb
|
IR: adding LOADFIELD and STOREFIELD instructions
|
2025-06-09 01:41:45 +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
|
ddceec364e
|
optimized coroutines library
|
2025-06-04 21:34:32 +02:00 |
|
Irmen de Jong
|
a228908c1a
|
fix wrong address calculation for &wordarray[i] where i is a variable
|
2025-06-02 03:13:23 +02:00 |
|
Irmen de Jong
|
15fc3b6c04
|
replace old antlr2kotlin code with the new visitor-based translator
|
2025-06-02 01:56:07 +02:00 |
|
Irmen de Jong
|
0456badd02
|
creating on a new visitor-based antlr to kotlin translator
|
2025-06-02 01:18:07 +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
|
a90ef274d7
|
fix word*128 codegen.
added cx16/landscape.p8 example that draws procedurally generated landscapes.
found bug in signed byte comparisons with overflow.
|
2025-05-31 05:27:19 +02:00 |
|
Irmen de Jong
|
1c02179c5c
|
refactor loadIndexReg()
|
2025-05-30 21:39:17 +02:00 |
|
Irmen de Jong
|
77584493fd
|
support a.b.ptr[i]^^.value as expression (RHS)
|
2025-05-30 20:28:10 +02:00 |
|
Irmen de Jong
|
a36709e638
|
Merge branch 'master' into structs
# Conflicts:
# compiler/src/prog8/compiler/Compiler.kt
|
2025-05-30 12:39:23 +02:00 |
|
Irmen de Jong
|
341778ba67
|
added -timings flag
|
2025-05-30 12:38:16 +02:00 |
|
Irmen de Jong
|
8e7bbcdbe0
|
clear syntax error for yet unsupported deref after array indexing
|
2025-05-29 21:14:38 +02:00 |
|
Irmen de Jong
|
37ecdc47b3
|
allow ptr1^^ = ptr^^ (replaces it with memcopy)
|
2025-05-29 16:34:47 +02:00 |
|
Irmen de Jong
|
112ca3cc53
|
allow sizeof(&thing), add sys.SIZEOF_POINTER
|
2025-05-29 15:58:29 +02:00 |
|
Irmen de Jong
|
33b3a1664c
|
replace sizeof(list^^) with sizeof(List) to allow it to compile. Same with simple pointers.
|
2025-05-29 14:13:42 +02:00 |
|
Irmen de Jong
|
e40ace9dea
|
todo
|
2025-05-29 01:35:53 +02:00 |
|
Irmen de Jong
|
4c0e6e2640
|
fix split/nosplit pointer arrays, replace ubyteptr^^ with @(ubyteptr), fix double dereference
|
2025-05-29 00:36:55 +02:00 |
|
Irmen de Jong
|
86da9d3c7e
|
assigning to plain pointer with array indexing
|
2025-05-28 18:08:53 +02:00 |
|
Irmen de Jong
|
5097d52d99
|
IR codegen for pointer indexing expressions, -assignment
|
2025-05-27 23:41:08 +02:00 |
|
Irmen de Jong
|
09d2185bb1
|
PtArrayIndexer variable is now nullable (because it could be a ptr deref instead)
|
2025-05-25 23:04:32 +02:00 |
|
Irmen de Jong
|
5c02e2bd71
|
fix a ptr indexing case, fix address-of fields
|
2025-05-25 21:32:31 +02:00 |
|
Irmen de Jong
|
fb01389b3d
|
cleaning up pointer deref
|
2025-05-25 18:33:37 +02:00 |
|
Irmen de Jong
|
aaa81210ce
|
cleaning up pointer indexing
|
2025-05-25 02:56:32 +02:00 |
|
Irmen de Jong
|
23a853db1e
|
Merge branch 'master' into structs
# Conflicts:
# compiler/src/prog8/compiler/astprocessing/AstChecker.kt
# examples/test.p8
|
2025-05-23 19:00:59 +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
|
844b537d1e
|
cobramk3 example now draws with new monogfx doublebuffering
|
2025-05-22 23:29:49 +02:00 |
|