z80rabbit.asm
bitfixer_bitfixer/dg/z88dk/libsrc/debug/z80rabbit.asm
; *
; *	General Z80 debugging functions
; *
; *	Stefano 25/6/2009
; *
; *	TRUE if we're running on a rabbit.
; *	extern int  __LIB__ z80rabbit(void);
; *
; *	$Id: z80rabbit.asm,v 1.2 2015/01/19 01:32:42 pauloscustodio Exp $
; *

	PUBLIC	z80rabbit

z80rabbit:
	ld	hl,0
	ld	de,1
	push	de
	defb	$ed
	defb	$54	; ex (sp),hl ONLY IF we're on a Rabbic Control Module
	nop	; this could help z80 clones not to hurt too much
	nop
	pop	de
	ret
