![]() |
|
Forgotten JP - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: Forgotten JP (/showthread.php?tid=700) |
Forgotten JP - einar - 2015-09-08 NIRVANA demo code ends like this: Code: DO
...
FOR sprite = 0 TO 7
...
NEXT sprite
LOOP
btiles:
asm
incbin "nirvana.btile"
end asmPrevious versions of ZX BASIC compiled it correctly. Latest version 1.4.0s1964 now compiles it incorrectly, as follows: Code: __LABEL47:
ld a, 7
ld hl, (_sprite - 1)
cp h
jp c, __LABEL2
__LABEL__btiles:
#line 132
incbin "nirvana.btile"
#line 133It's now forgetting to generate the last JP corresponding to the DO..LOOP statement! If you would like to compile it yourself, source code is available here: https://www.dropbox.com/sh/bgtoq6tdwropzzr/AAAknv_0PeJGhn36dLJZfGASa Re: Forgotten JP - boriel - 2015-09-11 This is another serious bug based on the optimizer change after version s1935. Can you download ZXBasic Version 1.4.0s1967 and tell me if it works now, plz? :roll: |