Advertisement
imbued

Drop/Throw Pot SRM Explanation

Mar 8th, 2020
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. SeedBornToday at 5:38 PM
  2. Because people had wondered about this -- your ability to place or drop a held actor is determined by 80 bit at actor + 5 (or rather held actor pointer + 5). When that bit is set you lose the ability to place what you're holding. So if people have issues related to this with deku srm, check what's there.
  3.  
  4.  
  5. The 0x80-bit is set in a byte when the first hex digit of the byte has the 8-bit set.
  6.  
  7. 0 = 0000
  8. 1 = 0001
  9. 2 = 0010
  10. 3 = 0011
  11. 4 = 0100
  12. 5 = 0101
  13. 6 = 0110
  14. 7 = 0111
  15. 8 = 1000
  16. 9 = 1001
  17. A = 1010
  18. B = 1011
  19. C = 1100
  20. D = 1101
  21. E = 1110
  22. F = 1111
  23.  
  24. The 8-bit is obviously set in any digit >= 8.
  25.  
  26.  
  27. In current heap manip, the pot's address is 0x410F80 (assuming you break the sign at the start)
  28.  
  29. 40FE70:000010 LINK
  30. 40FE80:000EF0 AF 017A:
  31. 410D70:000010 LINK
  32. 410D80:000290 AI 017A: ########################################################### this guard
  33. 411010:000010 LINK
  34. 411120:000010 LINK
  35. 411130:00014C AI 0018:
  36. 411280:000010 LINK
  37. 411290:000290 AI 017A:
  38. 411520:000010 LINK
  39. 411530:000290 AI 017A:
  40. 4117C0:000010 LINK
  41. 4117D0:000290 AI 017A:
  42. 411A60:000010 LINK
  43. 411A70:000290 AI 017A:
  44.  
  45.  
  46.  
  47. pot - guard = 0x200 and we care about the 0x80-bit at pot + 5 which is the 0x80-bit of the byte at guard + 0x205 which is 0x410F85 in this case.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement