fork/training-mode-ce
git clone https://git.julia.blue/fork/training-mode-ce
2c08d3a
master
1# To be inserted at 80226acc 2.include "../../Globals.s" 3 4.set entity , 31 5.set playerdata , 28 6.set player , 29 7 8# Get Animation Data Pointer 9mr r3 , playerdata 10lwz r4 , 0x14 ( playerdata ) 11branchl r12 , 0x80085fd4 12 13# Get Move Name String 14lwz r3 , 0x0 ( r3 ) 15 16# Get Start of Move Name 17StringSearchLoop : 18lbzu r4 , 0x1 ( r3 ) 19cmpwi r4 , 0x4E # Check For "N" 20bne StringSearchLoop 21lbzu r4 , 0x1 ( r3 ) 22cmpwi r4 , 0x5F # Check for Underscore 23bne StringSearchLoop 24addi r3 , r3 , 0x1 # Start of Move Name in r3 25 26# Copy Move Name To Cut Off "fiagtree" Text 27bl StringSpace 28mflr r5 29subi r4 , r5 , 0x1 30subi r3 , r3 , 0x1 31 32StringCopyLoop : 33lbzu r6 , 0x1 ( r3 ) 34cmpwi r6 , 0x5F # Check for Underscore 35beq ExitCopyLoop 36stbu r6 , 0x1 ( r4 ) 37b StringCopyLoop 38 39ExitCopyLoop : 40li r3 , 0x0 41stbu r3 , 0x1 ( r4 ) 42mr r4 , r5 43b exit 44 45StringSpace : 46blrl 47.long 0x00000000 48.long 0x00000000 49.long 0x00000000 50.long 0x00000000 51.long 0x00000000 52.long 0x00000000 53.long 0x00000000 54 55exit : 56mr r3 , r31 57crclr 6