Advertisement
Guest User

Exception Recovery [Star]

a guest
Aug 17th, 2019
116
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. Code:
  12. #============================================================#
  13. #                           Source                           #
  14. #============================================================#
  15.  
  16. mtsprg0   r3          # Preserve r3 in SPRG0
  17.  
  18. mfsrr0    r3
  19. addi      r3, r3, 4   # Move on to the next instruction
  20. mtsrr0    r3
  21.  
  22. mfsprg0   r3          # Restore r3
  23. rfi                   # Return to the program
  24.  
  25. #============================================================#
  26.  
  27. Code Creator: Star
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement