Picomite/PicoMiteVGA V5.07.05 release candidates


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10953
Posted: 08:21am 03 Oct 2022      

  Quote  Any guide for the heap limits ? It currently gives 6700 (hex).


It will give an error message if full. Try

Print factorial(100)
Function factorial(n%)
Local a%(1500)
Print n%,Hex$(MM.Info(stack)),MM.Info(heap)
If n%=1 Then
factorial=1
Else
factorial=factorial(n%-1)
EndIf
End Function