testrescue.S 369 B

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