The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script need help reading this effect asm

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 29th, 2020 (6:29 PM).
Black_Fragrant's Avatar
Black_Fragrant Black_Fragrant is offline
Finishing up my Firegold
 
Join Date: Feb 2019
Location: eternal paradise
Age: 24
Gender: Male
Posts: 101
i ve just learned how to compile, now that i can, i tried putting this in my rom, but simply following it gives me a freeze.
how do i adjust it to fit my own rom?

.text
.align 2
.thumb
.thumb_func
.global freezedry1

Main:

cmp r4, #0xB
bne RegularChart
ldr r1, .currMove
ldrh r1, [r1]
ldrh r0, .freezeDryIndex
cmp r0, r1
bne RegularChart
mov r0, #0x14
b Exit

RegularChart:
add r0, r3, #0x2
add r0, r0, r5
ldrb r0, [r0, #0x0]
str r2, [sp, #0x0]

Exit:
ldr r1, =0x0801E979
bx r1

.align 2
.currMove: .word 0x02023D4A
.freezeDryIndex: .hword 0x00B5

@1E970: 00 49 08 47 XX+1 XX XX 08
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 13th, 2020 (1:24 PM).
Dr. Seuss's Avatar
Dr. Seuss Dr. Seuss is offline
Navegando en mi automóvil, hablando con la nena por el móvil 😎...
 
Join Date: Feb 2014
Location: Guatemala City
Age: 27
Gender: Male
Nature: Brave
Posts: 521
If I remember clearly, the routine for Freeze Dry effect requires you to change the value 0x00B5 from the routine to the move index of Freeze Dry move on your hack and then compile and insert the routine to an aligned free space offset (Ends with 0 4 8 or C) and insert the hook at 0x1E970 (The XX+1 means you need to add 1 to the offset where you put the compiled routine)
__________________
Graphic design is my passion...

Click on the picture to see the best hack ever created (?
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.