;/*                                   */
;/*  for MB9BF618T on FRK-FM3         */
;/*                                   */
;/*   Copyright (C) by Y.Ishioka.     */
;/*                                   */

    AREA    |.text|, CODE, READONLY
    ALIGN 4

    EXPORT WaitUsec


WaitUsec
        CBZ    r0, _exit

_waitusec1
        MOV    r1, #10

_waitusec2
        NOP
        NOP
        NOP
        NOP
        NOP
        NOP
        NOP
        NOP
        SUBS   r1, r1, #1
        BNE.N  _waitusec2
        SUBS   r0, r0, #1
        BNE.N  _waitusec1
_exit
        BX     LR

        END

