[<<][am335x][>>][..]
Mon May 21 09:34:40 EDT 2018

Delay

; Generic delay loop macro
; Also includes a post-finish op
DELAY	.macro Rx, op
	SUB	R0, Rx, 2
	QBEQ	$E?, R0, 0
$M?:	SUB	R0, R0, 1
	QBNE	$M?, R0, 0
$E?:	op
	.endm


DELAY R14 is then:

      SUB R0, R14, 2
      QBEQ done, R0, 0   ;; why this?
loop: SUB R0, R0, 1
      QBNE loop, R0, 0
done:


I can use a simpler one.  That QBEQ is not necessary.



[Reply][About]
[<<][am335x][>>][..]