; GPU/CPU communication
;

.include 'gpu.inc'

.macro		GO_GPU	addr
		move.l	\addr,GPU_PC
		move.l	#GPU_GO|SINGLE_GO,GPU_CTRL
.endm

.macro		STOP_GPU
		move.l	#SINGLE_STEP,GPU_CTRL
.endm

.macro		GO_DSP	addr
		move.l	\addr,DSP_PC
		move.l	#DSP_GO|SINGLE_GO,DSP_CTRL
.endm

.macro		STOP_DSP
		move.l	#SINGLE_STEP,DSP_CTRL
.endm

.macro		WAIT_GPU
.wait_gpu\~:	tst.l	GPUBUF
		bne	.wait_gpu\~
.endm
