Advertisement
Guest User

Untitled

a guest
Oct 7th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. -- Caller --
  2. **************************************************************
  3. * FUNCTION *
  4. **************************************************************
  5. undefined __stdcall rom_copy_to_ram_maybe(int param_1)
  6. undefined r0:1 <RETURN>
  7. int r4:4 param_1
  8. undefined4 Stack[-0x4]:4 local_4 XREF[1]: 80018e70(*)
  9. undefined4 Stack[-0x8]:4 local_8 XREF[2]: 80018e72(*),
  10. 80018e88(*)
  11. rom_copy_to_ram_maybe
  12. 80018e70 2f e6 mov.l r14,@-r15=>local_4
  13. 80018e72 4f 22 sts.l pr,@-r15=>local_8
  14. 80018e74 24 48 tst param_1,param_1
  15. 80018e76 d5 06 mov.l @(DAT_80018e90,pc),r5=>DAT_a0400000 = A0400000h
  16. 80018e78 8f 01 bf/s LAB_80018e7e
  17. 80018e7a 6e f3 _mov r15,r14
  18. 80018e7c d5 05 mov.l @(DAT_80018e94,pc),r5=>SUB_a0000000 = A0000000h
  19. LAB_80018e7e XREF[1]: 80018e78(j)
  20. 80018e7e d0 06 mov.l @(->FUN_8c010d20,pc),r0 = 8c010d20
  21. 80018e80 d4 06 mov.l @(PTR_DAT_80018e9c,pc),param_1=>DAT_8d800000 = 8d800000
  22. 80018e82 40 0b jsr @r0=>FUN_8c010d20 TODO: this makes no sense... it'
  23. 80018e84 00 09 _nop
  24. 80018e86 6f e3 mov r14,r15
  25. 80018e88 4f 26 lds.l @r15=>local_8+,pr
  26. 80018e8a 00 0b rts
  27. 80018e8c 6e f6 _mov.l @r15+,r14
  28. 80018e8e 00 09 nop
  29. DAT_80018e90 XREF[2]: rom_copy_to_ram_maybe:80018e76(R
  30. rom_copy_to_ram_maybe:80018e76(R
  31. 80018e90 a0 40 00 00 undefined4 A0400000h
  32. DAT_80018e94 XREF[2]: rom_copy_to_ram_maybe:80018e7c(R
  33. rom_copy_to_ram_maybe:80018e7c(R
  34. 80018e94 a0 00 00 00 undefined4 A0000000h
  35. PTR_FUN_80018e98 XREF[2]: rom_copy_to_ram_maybe:80018e7e(R
  36. rom_copy_to_ram_maybe:80018e7e(R
  37. 80018e98 8c 01 0d 20 addr FUN_8c010d20
  38. PTR_DAT_80018e9c XREF[2]: rom_copy_to_ram_maybe:80018e80(R
  39. rom_copy_to_ram_maybe:80018e80(R
  40. 80018e9c 8d 80 00 00 addr DAT_8d800000
  41.  
  42. -- Callee --
  43. **************************************************************
  44. * FUNCTION *
  45. **************************************************************
  46. uint __stdcall FUN_8c010d10(char param_1)
  47. uint r0:4 <RETURN>
  48. char r4:1 param_1
  49. undefined4 Stack[-0x4]:4 local_4 XREF[1]: 8c010d10(*)
  50. FUN_8c010d10 XREF[4]: 8c010a82(c), 8c010b14(*),
  51. 8c010cec(c), 8c010d08(*)
  52. 8c010d10 2f e6 mov.l r14,@-r15=>local_4
  53. 8c010d12 74 bf add -0x41,param_1
  54. 8c010d14 64 4c extu.b param_1,param_1
  55. 8c010d16 e1 19 mov #0x19,r1
  56. 8c010d18 34 16 cmp/hi r1,param_1
  57. 8c010d1a 8f 02 bf/s LAB_8c010d22
  58. 8c010d1c 6e f3 _mov r15,r14
  59. 8c010d1e a0 01 bra LAB_8c010d24
  60. **************************************************************
  61. * FUNCTION *
  62. **************************************************************
  63. undefined FUN_8c010d20()
  64. undefined r0:1 <RETURN>
  65. FUN_8c010d20 XREF[2]: rom_copy_to_ram_maybe:80018e82(c
  66. 80018e98(*)
  67. 8c010d20 e0 00 _mov #0x0,r0
  68. LAB_8c010d22 XREF[1]: FUN_8c010d10:8c010d1a(j)
  69. 8c010d22 e0 01 mov #0x1,r0
  70. LAB_8c010d24 XREF[1]: FUN_8c010d10:8c010d1e(j)
  71. 8c010d24 6f e3 mov r14,r15
  72. 8c010d26 00 0b rts
  73. 8c010d28 6e f6 _mov.l @r15+,r14
  74. 8c010d2a 00 09 nop
  75. 8c010d2c 00 09 nop
  76. 8c010d2e 00 09 nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement