.iif	ndf	l$$ist,	.nlist
.iif	ndf	l$$ist,	.dsabl	crf
.nlist	ttm
.list	toc,meb,bex
.dsabl	gbl
.enabl	lc
; CAMP.MAC	Common prefix file for CAM 'macro's
;
;		Extracted from LB:COMMON.MAC by NMDS, Jan '83

; General macros

.macro	return	reg=pc
	 rts	reg
.endm	return

.macro	jmpx	label
	 jmp	@#label
.dsabl	crf
.globl	label
.enabl	crf
.endm	jmpx

.macro	call	subr,reg=pc,list
	 jsr	reg,subr
.if	nb	<list>
	  .word	list
.endc
.endm	call

.macro	callr	subr
	 jmp	subr
.endm	callr

.macro	callx	subr,reg=pc,list
	call	@#subr,reg,<list>
.dsabl	crf
.globl	subr
.enabl	crf
.endm	callx

.macro	push	list
.if b	<list>
	 clr	-(sp)
.iff
.irp	loc,<list>
	 mov	loc,-(sp)
.endm	;.irp
.endc	;.if b <list>
.endm	push

.macro	pop	list
.if b	<list>
	 tst	(sp)+
.iff
.irp	loc,<list>
	 mov	 (sp)+,loc
.endm	;.irp
.endc	;.if b <list>
.endm	pop

.iif	ndf	l$$ist,	.enabl	crf
.iif	ndf	l$$ist,	.list

