Page 25 of 39
Re: Prog8 language and compiler topic
Posted: Sun Apr 23, 2023 11:57 am
by desertfish
Those versions have been deprecated, you should use R42 at all times.
Sometimes the code will still work with R41 or older, but it is useless to try to debug any issues as R42 or newer is where we stand now.
Also make sure you're not trying to run C64 examples on the X16. The .PRG will load, but will crash or hang.
X16 example code is in examples/cx16, and should be compiled with -target cx16.
*some* examples in the examples directory itself are compatible with both machines, this will be mentioned in a comment in the code if this is the case. But you STILL have to compile it specifically for the cx16 target. PRGs cannot be reused.
I noticed that a few links in the Prog8 documentation still linked to the old emulator software, I have updated those now.
Re: Prog8 language and compiler topic
Posted: Sun Apr 23, 2023 4:27 pm
by mapifisher
Ah, needed to find R42. The git repository I was looking at only had up to R41. Found R42 and all is well. Thanks!
Re: Prog8 language and compiler topic
Posted: Sun Apr 23, 2023 11:33 pm
by mapifisher
A little disappointing that array sizes are so limited.
Compiling program stereo.p8
ERROR file:///Users/mpf/Downloads/stereo.p8:37:9: float array length must be 1-51
ERROR file:///Users/mpf/Downloads/stereo.p8:56:24: byte array length must be 1-256
Re: Prog8 language and compiler topic
Posted: Mon Apr 24, 2023 12:11 am
by desertfish
It's because the 6502 can only index over 256 bytes...
You can work around it with a uword pointer variable in combination with a memory() block , but the resulting code will not be very efficient.
Re: Prog8 language and compiler topic
Posted: Sun Apr 30, 2023 12:12 pm
by desertfish
Re: Prog8 language and compiler topic
Posted: Sun May 14, 2023 8:14 pm
by desertfish
Prog8 version 8.13 has been released
https://github.com/irmen/prog8/releases/tag/v8.13
this one contains a bunch of optimizations to the expression evaluation code generation and many programs will be smaller and faster now
I think this is the last 8.xx release before version 9 which will introduce a bunch of breaking changes.
You can start reading about those here
https://prog8.readthedocs.io/en/latest/todo.html
version 8.14 released
Posted: Mon May 29, 2023 9:07 pm
by desertfish
Prog8 version 8.14 has been released:
https://github.com/irmen/prog8/releases/tag/v8.14
It contains a few bugfixes. I hope these were the last before version 9.0 comes out.
Re: Prog8 language and compiler topic
Posted: Tue May 30, 2023 12:42 am
by ahenry3068
I'm very excited for version 9 if word array will actually be 256 elements.
I want to port the Mystify Clone to Prog8 and actually got started but I have
to store more than 128 values.
... I think it's actually going to run smoothly
in Prog8 with Integer Math. The line routine is actually pretty fast. I can't
tell what direction it draws in. LINE X1,Y1,X2,Y2 looks just like LINE X2,Y2,X1,Y1
Re: Prog8 language and compiler topic
Posted: Tue May 30, 2023 10:51 am
by desertfish
Yeah if you can declare the word arrays as "split" arrays, you will be able to extend them to a maximum of 256 elements.
Most, but not all, array operations will be implemented on "split" arrays so there is a small chance that your code triggers an unsupported operation. Just try it out once 9.0 is released!
Re: Prog8 language and compiler topic
Posted: Wed May 31, 2023 12:57 am
by ahenry3068
Any ETA on Version 9