Posted by Gaden 208.236.224.64 using Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) on April 06, 2000 at 14:02:33:
In Reply to: Hmmm....#Scan and #Mem....I may have found an answer.. : ) posted by Gaden on April 06, 2000 at 13:23:29:
I made a simple little disco tile shifting program to test out #Scan and #Mem before using them...There are supposed to be 10 memory spots....but..I found there is only 1 !!!
The program below works...I added #Delay(1) for testing...to make sure it was multitasking. After useing #Scan to get blue and red tiles...red is the only one saved !
The program below is supposed to finish 1 run with 4 tiles in a line (red, blue, red, blue)...instead it ends with 4 red (red,red,red,red) !!! That means that the first #Scan was forgotten...even though #Scan no.1 and #Scan no.2 are marked for 2 completely different memory locations !!!
I have no idea how to fix this...nothing seems wrong in my very simple program...so...I think that the 1-10 memory may be faulty !
#Scan(9,6,1)
*blue tile
#Scan(10,6,2)
*red tile
:animat
#Mem (8, 4, 1)
#Mem (9, 4, 2)
#Mem (10, 4, 1)
#Mem (11, 4, 2)
#Mem (8, 4, 2)
#Mem (9, 4, 1)
#Mem (10, 4, 2)
#Mem (11, 4, 1)
#Branch(:animat)