[comp.sys.atari.st] MALLOC from assembler

ian@olympic.oz (Ian Barnett) (09/18/89)

HELP! 

Has anyone out there had trouble with calling the MALLOC function
from assembly language programs ?

I am using the GEMDOS call to allocate memory and I receive no error,
but the pointer returned appears to be very suspect. To be exact, I
allocate 32K (size of a LO-RES screen) +256 bytes, make a copy of
the returned pointer and align it on a 256 byte boundary. I then set
the physical screen base to this pointer so I can see what the memory,
I allocated, looks like. This memory is definitely not free, in fact
it is being used as I watch it!

Naturally I require memory that is not being used.

If anyone can help me out it would be most appreciated.

Wow ! (Excuse me, this is my first NET posting }:-)

Thanks in advance.

			Ian Barnett
			ian@olympic.oz