view packages/hal/h8300/h8max/current/src/delay_us.S @ 1777:c16341b1bac6 default tip

* Added execute permissions to files missed in conversion from CVS
author alexs
date Mon, 12 Oct 2009 02:26:09 +0100
parents f58b62f3c85d
children
line wrap: on
line source

;;delay_us

#include <pkgconf/hal.h>	

#include <cyg/hal/arch.inc>	
#include <cyg/hal/basetype.h>
#include <cyg/hal/mod_regs_tmr.h>
	
//	.file	"delay_us.S"
	.h8300h
	.text

	.global	CYG_LABEL_DEFN(hal_delay_us)
CYG_LABEL_DEFN(hal_delay_us):
	shlr.l	er0
	shlr.l	er0
	shlr.l	er0
	mov.l	er0,er0
1:	
	ble	4f
	dec.l	#1,er0
	bra	1b
4:	
	rts