B.1.3. Interrupt polling

Example B.3 gives an example of the interrupt polling code.

Example B.3. Interrupt polling

       LDR    r0, =IntCntlBase
Loop   LDR    r1, [r0, #RawInterruptOffset]
	   CMP		  r1, #0
       BEQ    loop

       ;  Scan r1 for source of interrupt & branch to relevant routine
Copyright © 2000, 2003-2004 ARM Limited. All rights reserved.ARM DDI 0181E
Non-Confidential