testrescue.S 430 B

1234567891011121314151617181920212223242526
  1. /* $Id: testrescue.S,v 1.1 2001/12/17 13:59:27 bjornw Exp $
  2. *
  3. * Simple testcode to download by the rescue block.
  4. * Just lits some LEDs to show it was downloaded correctly.
  5. *
  6. * Copyright (C) 1999 Axis Communications AB
  7. */
  8. #define ASSEMBLER_MACROS_ONLY
  9. #include <asm/sv_addr_ag.h>
  10. .text
  11. nop
  12. nop
  13. moveq -1, $r2
  14. move.b $r2, [R_PORT_PA_DIR]
  15. moveq 0, $r2
  16. move.b $r2, [R_PORT_PA_DATA]
  17. endless:
  18. nop
  19. ba endless
  20. nop