05-07-2016, 04:46 PM
File "test.bas":
Trying to compile it:
Compiling it without "-O3" works just fine.
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.