home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
misc
/
amag
/
AM9512_2.lha
/
Tips&Tricks
/
Modula-Pools
< prev
next >
Wrap
Text File
|
1995-11-19
|
1KB
|
49 lines
(*$EntryExitCode:= FALSE *)
PROCEDURE AllocPooled(poolHeader{R.A0}: ADDRESS;
memSize{R.D0}: LONGCARD): ADDRESS;
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -708(A6)
MOVE.L (A7)+, A6
RTS
END);
END AllocPooled;
(*$EntryExitCode:= FALSE *)
PROCEDURE FreePooled(poolHeader{R.A0}: ADDRESS;
memory{R.A1}: ADDRESS; memSize{R.D0}: LONGCARD);
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -714(A6)
MOVE.L (A7)+, A6
RTS
END);
END FreePooled;
(*$EntryExitCode:= FALSE *)
PROCEDURE DeletePool(poolHeader{R.A0}: ADDRESS);
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -702(A6)
MOVE.L (A7)+, A6
RTS
END);
END DeletePool;
(*$EntryExitCode:= FALSE *)
PROCEDURE CreatePool(memFlags{R.D0}: ED.MemReqSet;
puddleSize{R.D1}, treshSize{R.D2}: LONGCARD): ADDRESS;
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -696(A6)
MOVE.L (A7)+, A6
RTS
END);
END CreatePool;