🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #4161

MALLOC from assembler

#4161
From: Ian Barnett
Date: Sun, 17 Sep 1989 23:53
24 lines
1183 bytes
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
Technical Details
Message-ID: <1194@olympic.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!cit5!olympic!ian

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!ditmela!yarra!cit5!olympic!ian
From: ian@olympic.oz (Ian Barnett)
Newsgroups: comp.sys.atari.st
Subject: MALLOC from assembler
Keywords: why doesn't it work
Message-ID: <1194@olympic.oz>
Date: 17 Sep 89 23:53:20 GMT
Organization: Olympic Amusements, Melbourne, Australia.
Lines: 24