home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
util
/
misc
/
vmem
/
include
/
libraries
/
vmem.i
< prev
next >
Wrap
Text File
|
1994-08-01
|
790b
|
42 lines
IFND LIBRARIES_VMEM_I
LIBRARIES_VMEM_I SET 1
include "Exec/Types.i"
include "Exec/libraries.i"
include "Exec/Memory.i"
include "Utility/Utility.i"
VMEM_VERSION EQU 1
vmBlock MACRO ; unsigned long (32 bits)
\1 EQU SOFFSET
SOFFSET SET SOFFSET+4
ENDM
vmAllocData MACRO ; size,memflags
move.l \1,d0
move.l #1,d2
move.l \2,d3
jsr _LVOvmAllocBlock(a6)
ENDM
vmLockData MACRO ; block
move.l \1,a0
move.l #0,d0
jsr _LVOvmLock(a6)
ENDM
vmUnLockData MACRO ; block
move.l \1,a0
move.l #0,d0
jsr _LVOvmUnLock(a6)
ENDM
vmFreeData MACRO ; block
move.l \1,a0
jsr _LVOvmFreeBlock(a6)
ENDM
ENDC ;LIBRARIES_VMEM_I