	.include    "const.i"   

| This macros save and restore all registers except of d0,d1,a0,a1
| which are considered scratch registers
| They are used in every assember that is a Bios Function

.macro  SAVEREGS
movem.l %d2-%d7/%a2-%a6,-(%sp)
.endm

.macro  RESTOREREGS
movem.l (%sp)+,%d2-%d7/%a2-%a6
.endm


| This macros save and restore ALL registers
| They are used in interrupt handlers

.macro  SAVEALLREGS
movem.l %d0-%d7/%a0-%a6,-(%sp)
.endm

.macro  RESTOREALLREGS
movem.l (%sp)+,%d0-%d7/%a0-%a6
.endm

| This macros are not used yet

.macro FORBID
	bclr    #TASKING,sysstat
	move.b	#0,preenable
.endm

.macro PERMIT
	bset    #TASKING,sysstat
	move.b	#1,preenable
.endm

