![]() |
pascalated boriel zx basic for the spectrum (*solved*) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: pascalated boriel zx basic for the spectrum (*solved*) (/showthread.php?tid=2591) |
pascalated boriel zx basic for the spectrum (*solved*) - funkheld - 12-31-2024 Hello, good day. will the tap program be faster with this new Pascal or is it just an optical design for the eye? https://arcalusitana.org/MuseuZX/Pascalated_ZXBASIC/ Thanks. greeting RE: pascalated boriel zx basic for the spectrum - funkheld - 12-31-2024 unfortunately pascalated doesn't work with it anymore. I've now checked this: zxbasic-v1.18.0-beta6-win32.zip 12263 Kb 2024/Dec/20 00:38:30 as there are always new changes in zxbasic. I will use zxbasic without pascalated. there are new faster ASM routines in zxbasic. thanks. greeting RE: pascalated boriel zx basic for the spectrum - boriel - 01-01-2025 What do you mean it does not work with ZXBasic anymore? There hasn't been incompatible changes in ZX Basic for a long time. It should still work as always. RE: pascalated boriel zx basic for the spectrum - zarsoft - 01-01-2025 Yes, the v1.18.0-beta6 have problems. Some Pascalated BASIC programs may not compile. I got this error: File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\ZXBC.py", line 12, in <module> sys.exit(zxbc.main()) # Exit ^^^^^^^^^^^ File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\src\zxbc\zxbc.py", line 155, in main asm_output = backend.emit(optimize=OPTIONS.optimization_level > 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\src\arch\z80\backend\main.py", line 770, in emit self._output_join(output, self._QUAD_TABLE[quad.instr].func(quad), optimize=optimize) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\src\arch\z80\backend\generic.py", line 366, in _cast output.extend(to_float(tA)) ^^^^^^^^^^^^ File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\src\arch\z80\backend\common.py", line 458, in to_float output = to_long(stype) ^^^^^^^^^^^^^^ File "P:\ZX_UTIL\_UTIL__Spectrum\ZX BASIC 118_3beta6\src\arch\z80\backend\common.py", line 401, in to_long raise NotImplementedError(f"type conversion from {stype} to long is undefined") NotImplementedError: type conversion from i32 to long is undefined funkheld Wrote:Hello, good day. Pascalated BASIC was created to simplify the appearance of the program. It's best for beginners. But in the hands of beginners the code becomes slower... RE: pascalated boriel zx basic for the spectrum - boriel - 01-02-2025 This is obviously a compiler bug for the 1.8.x series. I'll have a look into it. Thanks for reporting it! :-) EDIT: If you could provide a failing code snippet, please do. I will fix the bug much faster. RE: pascalated boriel zx basic for the spectrum - zarsoft - 01-02-2025 The following code works fine on version 17. but aborts the compiler on version 18. Code: #define PROGRAM REM RE: pascalated boriel zx basic for the spectrum - boriel - 01-02-2025 Please try this new beta version, and let me know if it works, thanks :-) http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta7.tar.gz http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta7.zip http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta7-win32.zip http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta7-linux64.tar.gz http://www.boriel.com/files/zxb/zxbasic-v1.18.0-beta7-macos.tar.gz RE: pascalated boriel zx basic for the spectrum - funkheld - 01-03-2025 hello, thanks. now the program is ok. thanks. greetings RE: pascalated boriel zx basic for the spectrum (*solved*) - funkheld - 01-04-2025 hello, thank you for your loving work with zxbasic. what has changed in: zxbasic-v1.18.0-beta8-win32 please? thank you. greetings ![]() ![]() ![]() RE: pascalated boriel zx basic for the spectrum (*solved*) - boriel - 01-04-2025 The change was this one: https://github.com/boriel-basic/zxbasic/commit/04b4227cb20fdfb52d7006ac355b71987a548c7a#diff-38c5c2b68ccc63c68ff2dcfbe3e63166866ee585c1bfea6030f6ae982ae18afeL458 It was a bugfix, as previously stated. Also, notice you can go to the issues tab and fill-in issues in a form provided there, as an alternative to this forum. RE: pascalated boriel zx basic for the spectrum (*solved*) - funkheld - 01-05-2025 hello , thanks for info. greeting |