Mgamerz

Untitled

Dec 16th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  ; MegaMan Battle Network 3 White: Giving Flashman More Chips
  2.  ; Makes flashman use different chips depending on the scenario.
  3.  ; By Mgamerz
  4.  ; Made for ARMIPS assembler v0.7c
  5.  
  6. input   equ input.gba   ; Put the name of your ROM here
  7. fspace  equ 0x7FE36C    ; Put the ROM free space offset here
  8.  
  9. .gba
  10. .open input,output.gba,8000000h
  11.  
  12. .org fspace+8000000h
  13. .align 2
  14.  
  15. pickNextChip:
  16. ;Selectable chips:
  17. ; PanlGrab
  18. ; Team2
  19. ; Discord
  20. ; SandStage
  21.  
  22. ;r0 level
  23. ;r1 sublevel
  24. ;r3 damage
  25.  
  26.  
  27.  
  28. loadSandStage:
  29. mov r0,=0x04 ;family
  30. mov r1,=0x04 ;sublevel
  31. ldrb r2,[r5,16h] ; ...something
  32. mov r3, 0h ;damage
  33. blt return
  34.  
  35. loadPanlGrab:
  36. mov r0,=0x00 ;family
  37. mov r1,=0x00 ;sublevel
  38. ldrb r2,[r5,16h] ; ...something
  39. mov r3, 0ah ; 10 damage
  40. blt return
  41.  
  42. loadTeam2:
  43. mov r0,=26h ;family
  44. mov r1,=1h ;sublevel
  45. ldrb r2,[r5,16h] ; ...something
  46. mov r3, 0h ;damage
  47. blt return
  48.  
  49. loadDiscord:
  50. mov r0,=3Fh ;family
  51. mov r1,=1h ;sublevel
  52. ldrb r2,[r5,16h] ; ...something
  53. mov r3, 0ah ;damage
  54. blt return
  55.  
  56. return:
  57. ldr r6,=80B672Eh
  58. bx  r6
  59.  
  60. .align 4
  61. .pool
  62.  
  63. ;Flashmans final code, which should fit 2 halfword instructions when overwriting
  64. .org 080B672Ah
  65.  
  66. repointFlashmanChipPickRoutine:
  67. ldr r6,=pickNextChip|1b
  68. bx  r6
  69.  
  70. .align 4
  71. .pool
  72.  
  73. .close
  74.  ; eof
Advertisement
Add Comment
Please, Sign In to add comment