- CtrlC(), CtrlD(), CtrlE(), CtrlF()
There functions checks if ctrl+c etc. key combination is pressed. If yes
TRUE else 0 is returned.
- Long(a), Word(a), Byte(a)
Returns byte/word/long value what is on address specified by <a>.
(Byte() function requires atleast 020)
- ULong(a), UWord(a), UByte(a)
Returns unsigned byte/word/long value what is on address specified by
<a>. ULong() equals to Long() (both returns the same).
- PutLong(a,b), PutWord(a,b), PutByte(a,b)
Writes byte/word/long value specified by <b> to address specified
by <a>.
- KickVersion(required)
Returns TRUE if <required> is lower or equal to your system version,
else returns FALSE.
- Rnd(top)
Returns a pseudo random number from range 0 to <top>-1. If the
<top> value is lower then zero, new seed is set. <top> must
be a 16bit number.
- RndQ(seed)
This is quite faster than Rnd(), but it returns a pseudo random 32bit
number. Use the result of this function for next <seed> of this
function to get random numbers.
PPC-note: following functions differs for 68k and ppc mode. 68k use the
exec's function AllocVec() while ppc use the powerpc's AllocVecPPC(), so
in ppc mode, You can extend the flags of the NewM() function with ppc
only flags.
- New(size)
This functions allocates a piece of memory for you. This memory can be
freed by Dispose() function. All allocations will be freed on program exit.
See also Dispose(). This memory is cleared.
- NewR(size)
This functions allocates a piece of memory for you. This memory can be
freed by Dispose() function. All allocations will be freed on program exit.
See also Dispose(). This memory is cleared. If the memory can't be allocated,
the exception "MEM" is raised.
- NewM(size,flags)
This functions allocates a piece of memory for you. This memory can be
freed by Dispose() function. All allocations will be freed on program exit.
See also Dispose(). This memory is cleared. This function can allocate a memory
with given flags (eg.: MEMF_CLEAR, take a look at module 'exec/memory.m').
If the memory can't be allocated, the exception "MEM" is raised.
- Dispose(mem)
Free a piece of memory allocated by New() or NewR() or NewM() functions.
PPC-note: following functions also differs in the 68k and ppc mode. Functions
AllocVecPooledPPC() and FreeVecPooledPPC() use the powerpc's AllocPooledPPC()
and the FreePooledPPC(). These two functions are for ppc mode only and aren't
defined for the 68k.
Functions AllocVecPooled() and FreeVecPooled() are compatible for 68k and ppc
modes, but in the ppc case, it use the exec's pool functions, so it does one
context switch per call.
- AllocVecPooled(pool,size)
- AllocVecPooledPPC(pool,size)
This functions calls exec's AllocPooled() and stores also it's <size>,
it is possible to free such chunk of memory if You don't know it's length.
See also FreeVecPooled().
- FreeVecPooled(pool,mem)
- FreeVecPooledPPC(pool,mem)
This function frees memory allocated by AllocVecPooled().
- SizePooled(mem)
This function returns size of memory chunk allocated by AllocVecPooled().