Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pascalated boriel zx basic for the spectrum (*solved*)
#4
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.
will the tap program be faster with this new Pascal or is it just an optical design for the eye?


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...
Reply


Messages In This Thread
RE: pascalated boriel zx basic for the spectrum - by zarsoft - 01-01-2025, 11:46 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)