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
IF Nesting problem and +D Emulation (*solved*)
#1
Code:
while (a band 16)=0 h=a band 5 v=a band 10 if oldh=4 then if h=5 then newx=x+1 elseif h=0 then newx=x-1 end If else if oldh=5 then if h=1 then newx=x+1 elseif h=4 then newx=x-1 end If else if oldh=1 then if h=0 then newx=x+1 elseif h=5 then newx=x-1 end If else if oldh=0 then if h=4 then newx=x+1 elseif h=1 then newx=x-1 end If end If wend
The compiler does not like this, and revolts against WEND (should it not work?), but after removing some IFs this works:
Code:
while (a band 16)=0 h=a band 5 v=a band 10 if oldh=4 then if h=5 then newx=x+1 elseif h=0 then newx=x-1 end If end If wend

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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)