Forum
[msx] found a bug from the compiler, i think - 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: [msx] found a bug from the compiler, i think (/showthread.php?tid=572)



[msx] found a bug from the compiler, i think - nitrofurano - 09-22-2013

the example i tried was this one
<!-- m --><a class="postlink" href="https://dl.dropboxusercontent.com/u/795795/retrocoding/msx/_example02ag_msxzxbasic_lacedpostscriptscreen7.zip">https://dl.dropboxusercontent.com/u/795 ... creen7.zip</a><!-- m -->
was about drawing vectorial drawings on laced screeen7 on msx

what appeared as error message from the terminal:
Code:
msxscreen.bas:3: warning: SUB 'msxscreen' declared as FASTCALL with 4 parameters
Traceback (most recent call last):
  File "/opt/zxbasiccompiler/zxbasiccompiler_zxspectrum/zxb.py", line 312, in <module>
    sys.exit(main(sys.argv)) # Exit
  File "/opt/zxbasiccompiler/zxbasiccompiler_zxspectrum/zxb.py", line 265, in main
    asm_output = backend.emmit(MEMORY)
  File "/mnt/sda4/opt/zxbasiccompiler/zxbasiccompiler_zxspectrum/backend/__init__.py", line 2368, in emmit
    output_join(output, QUADS[i.quad[0]][1](i))
  File "/mnt/sda4/opt/zxbasiccompiler/zxbasiccompiler_zxspectrum/backend/__16bit.py", line 413, in _modu16
    if op2[0] in ('_', '$'):
TypeError: 'int' object has no attribute '__getitem__'