home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
changeicon-1.0.lha
/
ChangeIcon
/
inc
/
private
/
macros.i
< prev
next >
Wrap
Text File
|
1993-08-16
|
738b
|
61 lines
IFND PRIVATE_MACROS_I
PRIVATE_MACROS_I=1
IFND PRIVATE_EXEC_LIB_I
INCLUDE "private/exec_lib.i"
ENDC
IFND EXEC_EXECBASE_I
INCLUDE "exec/execbase.i"
ENDC
exec MACRO
IF NARG
MOVE.L 4.W,\1
ELSE
MOVE.L 4.W,A6
ENDC
ENDM
slib MACRO
IF NARG-1
MOVE.L gl_\1Base(A5),\2
ELSE
MOVE.L gl_\1Base(A5),A6
ENDC
ENDM
fjsr MACRO
JSR _LVO\1(A6)
ENDM
fjmp MACRO
JMP _LVO\1(A6)
ENDM
push MACRO
IF NARG
MOVEM.L \1,-(A7)
ELSE
MOVEM.L D0-D7/A0-A6,-(A7)
ENDC
ENDM
pull MACRO
IF NARG
MOVEM.L (A7)+,\1
ELSE
MOVEM.L (A7)+,D0-D7/A0-A6
ENDC
ENDM
lpush MACRO
MOVE.L \1,-(A7)
ENDM
lpull MACRO
MOVE.L (A7)+,\1
ENDM
rsword MACRO
.W RS.B 0
RS.B .W&1
ENDM
rslong MACRO
.L RS.B 0
RS.B -.L&3
ENDM
lb EQUR A6
gl EQUR A5
lo EQUR A4
ENDC