#AllocMem quest.
Ok heres the info you should need:
AllocMem:
memoryBlock = AllocMem(byteSize, attributes)
D0 D0 D1
INPUT:
D0 = Byte size of requested memory
D1 = Attributes (see below)
OUTPUT:
Returns memoryblock address in D0
Attributes:
MEMF_CHIP: Only allocate Chipmem
MEMF_FAST: Can ya guess what it is yet ? (Rolf Harris Voice)
MEMF_PUBLIC: Memory that is always addressable (eg not Virtual)
MEMF_LOCAL: You don't really need to know this one
MEMF_CLEAR: The memory will be initialized to all zeros.
MEMF_REVERSE: Allocates from top of memory downwards
if you need to know the values for these, well you must not be using the
includes, your better off using them, include exec.i and you'll be ok.
The attributes are individual BITS so you can make up the appropriate
number in D1 by repeatedly adding attributes to D1(initialised to 0
ofcourse..) or depending on your assembler you may be able to load them
all into the register with a single move instruction (try using the |
character between attributes in your assembler, it might work <g>)
BTW What assembler are you using?
Have fun and if you need any help give me a shout….
P.S If you REALLY need the bit values i'll dig them out for ya 🙁
Rob.
D&D Famous last words: "I throw my beer at the wizard"