Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New game: Earthraid
#32
boriel Wrote:
slenkar Wrote:I dont see memavail or maxavail in the library directory in program files/boriel tm/zx basic compiler/library or in the wiki
they are in the alloc.bas library.
Code:
#include <alloc.bas>
thanks

I ran a program to print memavail and it said 4764 does this mean 4764 bytes are available?

Code:
#Include <alloc.bas>

Print at 1,1,;"memavail"+STR(memavail)
Print at 3,1,;"maxavail"+STR(maxavail)

I tried allocating some memory and got the same result:

Code:
#Include <alloc.bas>


Dim myarray(40) as Integer
myarray(0)=1
myarray(1)=1
myarray(2)=1
myarray(3)=1
myarray(4)=1
myarray(5)=1
myarray(6)=1

Print at 1,1,;"memavail"+STR(memavail)
Print at 3,1,;"maxavail"+STR(maxavail)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)