Guest User

Untitled

a guest
Oct 5th, 2014
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ROM:08001880 ; =============== S U B R O U T I N E =======================================
  2. ROM:08001880
  3. ROM:08001880
  4. ROM:08001880 sub_8001880 ; CODE XREF: sub_8001C1C+14p
  5. ROM:08001880 ; sub_8022A40+10p
  6. ROM:08001880 PUSH {R4-R7,LR}
  7. ROM:08001882 MOVS R5, R0
  8. ROM:08001884 MOVS R7, R1
  9. ROM:08001886 MOVS R1, #0
  10. ROM:08001888 LDR R0, [R5,#4]
  11. ROM:0800188A CMP R0, #0
  12. ROM:0800188C BNE loc_8001890
  13. ROM:0800188E MOVS R1, #1
  14. ROM:08001890
  15. ROM:08001890 loc_8001890 ; CODE XREF: sub_8001880+Cj
  16. ROM:08001890 MOVS R4, R1
  17. ROM:08001892 CMP R4, #0
  18. ROM:08001894 BNE loc_80018A6
  19. ROM:08001896 MOVS R0, #0x15
  20. ROM:08001898 STR R0, [R5,#0xC]
  21. ROM:0800189A STR R0, [R5,#8]
  22. ROM:0800189C STR R4, [R5,#4]
  23. ROM:0800189E BL sub_80465DC
  24. ROM:080018A2 LDR R0, =byte_2000015
  25. ROM:080018A4 STRB R4, [R0]
  26. ROM:080018A6
  27. ROM:080018A6 loc_80018A6 ; CODE XREF: sub_8001880+14j
  28. ROM:080018A6 MOVS R4, R5
  29. ROM:080018A8 ADDS R4, #0x58
  30. ROM:080018AA MOVS R0, R4
  31. ROM:080018AC BL sub_8044B94
  32. ROM:080018B0 MOVS R0, R5
  33. ROM:080018B2 ADDS R0, #0x94
  34. ROM:080018B4 STR R0, [R5,#0x58]
  35. ROM:080018B6 MOVS R0, #0x2000
  36. ROM:080018BA STR R0, [R5,#0x5C]
  37. ROM:080018BC MOVS R2, R5
  38. ROM:080018BE ADDS R2, #0x88
  39. ROM:080018C0 LDR R1, =dword_81CFBE8 ; Pointer to Music Table, referred to by GAX_INIT
  40. ROM:080018C2 LSLS R0, R7, #2
  41. ROM:080018C4 ADDS R0, R0, R1
  42. ROM:080018C6 LDR R0, [R0]
  43. ROM:080018C8 STR R0, [R2]
  44. ROM:080018CA MOVS R1, R5
  45. ROM:080018CC ADDS R1, #0x68
  46. ROM:080018CE MOVS R6, #0
  47. ROM:080018D0 MOVS R0, #3
  48. ROM:080018D2 STRH R0, [R1]
  49. ROM:080018D4 ADDS R1, #0x1C
  50. ROM:080018D6 LDR R0, =unk_84E2368 ; Pointer to SFX Table, referred to by GAX_INIT
  51. ROM:080018D8 STR R0, [R1]
  52. ROM:080018DA MOVS R0, R5
  53. ROM:080018DC ADDS R0, #0x90
  54. ROM:080018DE STRB R6, [R0]
  55. ROM:080018E0 MOVS R0, R4
  56. ROM:080018E2 BL sub_80450A0
  57. ROM:080018E6 LSLS R0, R0, #0x18
  58. ROM:080018E8 CMP R0, #0
  59. ROM:080018EA BEQ loc_8001904
  60. ROM:080018EC STR R7, [R5,#8]
  61. ROM:080018EE MOVS R0, R5
  62. ROM:080018F0 ADDS R0, #0x54
  63. ROM:080018F2 STRB R6, [R0]
  64. ROM:080018F4 MOVS R0, R5
  65. ROM:080018F6 BL sub_8001B9C
  66. ROM:080018FA LDR R1, =byte_2000015
  67. ROM:080018FC MOVS R0, #1
  68. ROM:080018FE STRB R0, [R1]
  69. ROM:08001900 MOVS R0, #1
  70. ROM:08001902 STR R0, [R5,#4]
  71. ROM:08001904
  72. ROM:08001904 loc_8001904 ; CODE XREF: sub_8001880+6Aj
  73. ROM:08001904 POP {R4-R7}
  74. ROM:08001906 POP {R0}
  75. ROM:08001908 BX R0
  76. ROM:08001908 ; End of function sub_8001880
  77. ROM:08001908
  78. ROM:08001908 ; ---------------------------------------------------------------------------
RAW Paste Data