CompuServe Messages

#AllocMem quest.

    03-Feb-94 16:59:40
Sb: #39279-#AllocMem quest.
Fm: Peter Wade 100265,2740
To: New member 73016,27
The way they do it in the include files is a bit complicated. If you look in exec/memory.i you will find a line that says : BITDEF MEM,CLEAR,16 This is using a macro "BITDEF" which is defined in exec/types.i and if you look at the comments it says this should produce two lines as follows : MEMB_CLEAR EQU 16 ; Bit number MEMF_CLEAR EQU 1<<16 ; Bit mask The 1<<16 means 1 shifted left 16 binary places, in other words $0100. The designers of the system don't really want people to relate to it at the level of "$0100 means clear", they expect you to read the RKM Libraries manual which gives you the name MEMF_CLEAR and a description of what it does. You probably don't want to hear this, but if you are going to do any serious Amiga programming using system calls you really need either the official RKM manuals or something with the same sort of information. The books which avoid using include files are IMHO a dead end.