Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification about HEAP
#3
Thanks Boriel!
Good to know the heap is used also for the printed strings!
Anyway... i tried to reduce further the heap to 64 and all works perfectly!...

Just for study purposes, here's an excerpt highlighting the strings printed in my Basic menu:
Code:
...
FOR n=2 TO 19: PAUSE 2: PRINT AT n,0;"pppppppppppppppppppppppppppppppp": NEXT: RETURN
PRINT AT 10,5; INK 7; "PRESSpKEYpFORp"; INK 5;"@p"; INK 6; "RIGHT" ...
PRINT AT 10,21; INK 6; "LEFTp" ...
PRINT AT 10,21; INK 6; "DOWN" ...
PRINT AT 10,21; INK 6; "UPpp" ...
PRINT AT 10,21; INK 6; "LASER" ...
PRINT AT 10,21; INK 6; "BOMBp" ...
PRINT AT 10,5; "pppppppppppppppppppp" ...
...
PRINT AT m,11; FLASH 0; OVER 1; INK 8; "pppppppppp" ...        
...
PRINT AT m,11; FLASH 1; OVER 1; INK 8; "pppppppppp" ...
That's all ("p" represents a space)... So, it seems a very low value is good for the heap... thoughts?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)