Advertisement
Guest User

Exception Recovery [Star]

a guest
Aug 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Exception Recovery [Star]
  2.  
  3. This code allows program execution to continue if a DSI Exception occurs.
  4.  
  5. (Region Free)
  6. 06000300 00000018
  7. 7C7043A6 7C7A02A6
  8. 38630004 7C7A03A6
  9. 7C7042A6 4C000064
  10.  
  11. #============================================================#
  12. #                           Source                           #
  13. #============================================================#
  14.  
  15. mtsprg0   r3          # Preserve r3 in SPRG0
  16.  
  17. mfsrr0    r3
  18. addi      r3, r3, 4   # Move on to the next instruction
  19. mtsrr0    r3
  20.  
  21. mfsprg0   r3          # Restore r3
  22. rfi                   # Return to the program
  23.  
  24. #============================================================#
  25.  
  26. Code Creator: Star
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement