![]() |
IF Nesting problem and +D Emulation (*solved*) - 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: IF Nesting problem and +D Emulation (*solved*) (/showthread.php?tid=347) |
IF Nesting problem and +D Emulation (*solved*) - LCD - 04-19-2011 Code: while (a band 16)=0 Code: while (a band 16)=0 And I also noticed that one of my games crahes the Spectrum if ZX Spin is started with enabled +D emulation. Boriel, could you check all your compiler tests with ZX Spin and enabled +D? The game preview of QFJ I sent to you some time ago: If I try to play, the gems cannot be swaped. Without +D Emulation anything works okay. Re: IF Nesting problem and +D Emulation. - boriel - 04-20-2011 LCD Wrote:The syntax above is not right. The right one is: Code: while (a band 16)=0 Try this and tell me. LCD Wrote:And I also noticed that one of my games crahes the Spectrum if ZX Spin is started with enabled +D emulation. Boriel, could you check all your compiler tests with ZX Spin and enabled +D? The game preview of QFJ I sent to you some time ago: If I try to play, the gems cannot be swaped. Without +D Emulation anything works okay.What does +D do? At this 1st stage the compiler is supposed to be used only in 48K Speccy. I was astounded to hear the BG music in your chess game :!: Re: IF Nesting problem and +D Emulation. - LCD - 04-20-2011 boriel Wrote:I introduce ELSEIF to reduce the IF-nesting complexity. If you use ELSE IF (separately) you'll need an extra END IF at the end for every ELSE IF instance.You are right, the code was very old and I wanted to reuse it for my new project. Sorry, forgot to remove the spaces. boriel Wrote:What does +D do? At this 1st stage the compiler is supposed to be used only in 48K Speccy. I was astounded to hear the BG music in your chess game :!:+D is a very common Disc interface with parallel port, and very compatible because it does not use any extra RAM from Spectrum. It has syntax like LOAD d1"file" which rely on RST #08. 8 KB ROM and 8 KB RAM are build in. <!-- m --><a class="postlink" href="http://www.worldofspectrum.org/infoseekid.cgi?id=1000246">http://www.worldofspectrum.org/infoseek ... id=1000246</a><!-- m --> The Soundtracker BG Music was possible with my Interrupt Maker. All the Interrupt and Music code was linked to my game after it was compiled. BorIDE should include a Interrupt maker later. |