Advertisement
SciresM

Splatoon 2 "Cmn::Def::isSupportedAmiibo"

Jul 21st, 2017
1,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ; Cmn::Def::isSupportedAmiibo(nn::nfp::ModelInfo const&)
  2. LDRH W8, [X0]
  3. REV W8, W8
  4. UBFM W8, W8, #0x10, #0x1F ; Get Amiibo Character ID
  5. SUB W9, W8, #0x801 ; Compare to 0x801 (Callie)
  6. CMP W9, #2
  7. B.CS NOT_CALLIE_MARIE ; ID != 0x801 && ID != 0x802 (Marie)
  8. MOV W0, #1
  9. RET
  10.  
  11. NOT_CALLIE_MARIE:
  12. CMP W8, #0x800
  13. B.NE NOT_SQUID_AMIIBO ; ID != 0x800 (Generic Squid)
  14. LDRB W8, [X0,#2]
  15. SUB W8, W8, #1
  16. CMP W8, #3 ; Is Variation 1, 2, 3 (Boy, Girl, Squid)
  17. CSET W0, CC
  18. RET
  19.  
  20. NOT_SQUID_AMIIBO:
  21. MOV W0, WZR
  22. RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement