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
Error "4 Out of memory, 0:1"
#6
If possible use the function maxavail() and print the free heap memory while playing. This way you can check the free memory almost in real time.
Also, two more things: IX register is important for ZX Basic, so if you're not sure your ASM routines modifies it, better do:
Code:
ASM PUSH IX CALL YOUR_ASM_ROUTINE POP IX END ASM
on every ASM call

The other thing is that setting the ORG to low (i.e. 24000) leaves very very little stack space, and ASM calls, functions, SUBs, GOSUBS, etc might produce a silent stack overflow and the program might do those weirds things.
Perhaps this helps... :roll:

If you manage to solve, please tell us!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)