Advertisement
Guest User

FE7 Magic Sword Hextator Disassembly Notes

a guest
May 13th, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. Rune Sword half strength (display only):
  2.  
  3. 08028520 2811 cmp r0, #0x11 (0x11 = Runesword ID in FE7's ROM)
  4. 08028522 d10f bne $08028544
  5. 08028524 1c22 add r2, r4, #0x0
  6. 08028526 325a add r2, #0x5a
  7. 08028528 2014 mov r0, #0x14
  8. 0802852a 5620 ldrh r0, [r4, r0]
  9. 0802852c 0fc1 lsr r1, r0, #0x1f
  10. 0802852e 1840 add r0, r0, r1
  11. 08028530 1040 asr r0, r0, #0x01
  12. 08028532 8811 ldrh r1, [r2, #0x0]
  13. 08028534 1a08 sub r0, r1, r0
  14.  
  15. Rune Sword null crit (display only):
  16.  
  17. 08028536 2100 mov r1, #0x0
  18. 08028538 8010 strh r0, [r2, #0x0]
  19. 0802853a 1c20 add r0, r4, #0x0
  20. 0802853c 3066 add r0, #0x66
  21. 0802853e 8001 strh r1, [r0, #0x0]
  22. 08028540 3004 add r0, #0x4
  23. 08028542 8001 strh r1, [r0, #0x0]
  24.  
  25. Some other compare function (seems to do nothing):
  26. (My edit: 0x10 = Light Brand, 0x11 = Runesword, 0x99 = Wind Sword)
  27.  
  28. 080288e6 2811 cmp r0, #0x11
  29. 080288e8 d018 beq $0802891c
  30. 080288ea 2811 cmp r0, #0x11
  31. 080288ec dc04 bgt $080288f8
  32. 080288ee 2810 cmp r0, #0x10
  33. 080288f0 d009 beq $08028906
  34.  
  35. 080288f8 2899 cmp r0, #0x99
  36. 080288fa d111 bne $08028920
  37.  
  38. Half damage check:
  39.  
  40. 08028f06 2810 cmp r0, #0x10
  41. 08028f08 db38 blt $08028f7c
  42. 08028f0a 2811 cmp r0, #0x11
  43. 08028f0c dd01 ble $08028f12
  44. 08028f0e 2899 cmp r0, #0x99
  45. 08028f10 d134 bne $08028f7c
  46.  
  47. Ranged animation at close range check:
  48.  
  49. 08052d58 2811 cmp r0, #0x11
  50. 08052d5a d104 bne $08052d66
  51.  
  52. Legendary weapons have special BGM and white flash:
  53.  
  54. 080533be 2884 cmp r0, #0x84
  55. 080533c0 d010 beq $080533e4
  56. 080533c2 1c20 add r0, r4, #0x0
  57. 080533c4 f7c3 bl $080171b4
  58. 080533c8 2885 cmp r0, #0x85
  59. 080533ca d00b beq $080533e4
  60. 080533cc 1c20 add r0, r4, #0x0
  61. 080533ce f7c3 bl $080171b4
  62. 080533d2 2886 cmp r0, #0x86
  63. 080533d4 d006 beq $080533e4
  64. 080533d6 1c28 add r0, r5, #0x0
  65. 080533d8 f7c3 bl $080171b4
  66. 080533dc 283c cmp r0, #0x3c
  67. 080533de d001 beq $080533e4
  68. 080533e0 2000 mov r0, #0x0 ;This 0 means no special BGM
  69. 080533e2 e000 b $080533e6
  70. 080533e4 2001 mov r0, #0x1 ;This 1 means there is a special BGM
  71. 080533e6 bc30 pop {r4,r5}
  72. 080533e8 bc02 pop {r1}
  73. 080533ea 4708 bx r1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement