The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One more optimizer bug (*solved*)
#1
File "test.bas":

Code:
sub test() asm ld hl, 56469 ld de, 5 ld (hl), e inc l ld (hl), d ; ret end asm end sub test()

Trying to compile it:

Code:
>zxb.exe -t -O3 test.bas -o test.tap Traceback (most recent call last): File "zxb.py", line 348, in <module> File "zxb.py", line 301, in main File "optimizer.pyc", line 2290, in optimize File "optimizer.pyc", line 1949, in optimize File "optimizer.pyc", line 680, in op File "optimizer.pyc", line 538, in inc File "optimizer.pyc", line 432, in set TypeError: unsupported operand type(s) for <<: 'NoneType' and 'int'

Compiling it without "-O3" works just fine.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)