_PoY

[Plat Research] Marsh code interpretation

May 9th, 2018
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Test : August 10th, 2082 / 14:23
  2.  
  3. Main menu init : 0xD091BB5C / 0x22AE9EF6
  4. After game start : 0xEFC2E487 / 0x8CD573FA
  5. IRNG seed : 0x9E0E3646
  6. > Unchanged Marsh and Swarm Numbers
  7. > So they are both generated when the game starts, i.e. after Giratina fadout
  8.  
  9. Dig Function_2055ac0
  10. > Get VariableAreaAdresses
  11. >
  12. > Function_202b3d8
  13. if(r1 <= 0)
  14. r7 = 1
  15. r0 += 44
  16. if(r7 <= 6)
  17. r4 = 0
  18.  
  19.  
  20.  
  21.  
  22. RTC_ConvertDateToDay :
  23. [r0] : € [0-100] r3
  24. [r0 + 0x4] : € [1-12] r2
  25. [r0 + 0x8] : € [1-31] r1
  26. [r0 + 0xC] : € [1-7] r0
  27.  
  28. r0 = 0x210144c
  29. decrease day
  30. r0 = [0x210144c + month*4]
  31. compare month with 3
  32. r2 = day + r0
  33. branch if month >= 3
  34. otherwise test if r3 % 4 = 3
  35. if not r2++
  36. r0 = 0x16d
  37. r1 = year%100 + 3
  38. r0 = year%100 * 0x16d + (day + r0)
  39. r0 = r0 + r1/4
Add Comment
Please, Sign In to add comment