Display move power on press select [Fire Red]
when you select some move in battle to change the position will show the power of it.
here images for show what i mean.
or replacing the text completely(read the code for see how you can make this).
here the routine.
when you select some move in battle to change the position will show the power of it.
here images for show what i mean.
Spoiler:
![[PokeCommunity.com] ASM Resource Thread [PokeCommunity.com] ASM Resource Thread](https://i.imgur.com/Et3gnVB.png)
or replacing the text completely(read the code for see how you can make this).
Spoiler:
![[PokeCommunity.com] ASM Resource Thread [PokeCommunity.com] ASM Resource Thread](https://i.imgur.com/baY55Gm.png)
here the routine.
Spoiler:
.text
.align 2
.thumb
.thumb_func
.global Move_Power_On_Press_Select
/*00 48 00 47 XX+1 XX XX 08 at 2eda4*/
@if you want to edit the string Switch which?, it is located at 3FE7A8 edit this to you liking.
main:
ldr r0, =0x083fe7a0
mov r1, #0xb
ldr r2, =0x080d87bd
bl BX_r2
ldr r0, =0x02023bc4
ldrb r0, [r0]
lsl r2, r0, #0x9
ldr r1, =0x02022bc8
add r2, r1
ldr r1, =0x02023ffc
ldrb r0, [r0, r1]
lsl r0, #0x1
ldrh r0, [r0, r2]
mov r1, #0xc
mul r0, r1
ldr r1, .movedata
add r0, r1
ldrb r1, [r0, #0x1] @move power
ldr r0, =0x0202298c
mov r2, #0xca @P
strb r2, [r0]
mov r2, #0xe3 @o
strb r2, [r0, #0x1]
mov r2, #0xeb @w
strb r2, [r0, #0x2]
mov r2, #0xd9 @e
strb r2, [r0, #0x3]
mov r2, #0xe6 @r
strb r2, [r0, #0x4]
mov r2, #0xf0 @:
strb r2, [r0, #0x5]
mov r2, #0x0 @space
strb r2, [r0, #0x6]
push {r0}
cmp r1, #0x2
bhs convertpower
mov r2, #0xae @-: if it's a move with no power, show as ---
strb r2, [r0, #0x7]
strb r2, [r0, #0x8]
strb r2, [r0, #0x9]
mov r2, #0xff @end string
strb r2, [r0, #0xa]
b end
convertpower:
add r0, #0x7
mov r2, #0x0
mov r3, #0x4
ldr r4, =0x08008e79 @convert the move power to decimal string No
bl BX_r4
end:
pop {r0} @draw the string in the box
mov r1, #0x8 @change this 0x8 to 0xb if you prefers that the string Switch which? will be totaly replaced.
ldr r2, =0x080d87bd
bl BX_r2
ldr r2, =0x0802edad
BX_r2:
bx r2
BX_r4:
bx r4
.align 2
.movedata: .word 0x08250c04 @you move data table location
.align 2
.thumb
.thumb_func
.global Move_Power_On_Press_Select
/*00 48 00 47 XX+1 XX XX 08 at 2eda4*/
@if you want to edit the string Switch which?, it is located at 3FE7A8 edit this to you liking.
main:
ldr r0, =0x083fe7a0
mov r1, #0xb
ldr r2, =0x080d87bd
bl BX_r2
ldr r0, =0x02023bc4
ldrb r0, [r0]
lsl r2, r0, #0x9
ldr r1, =0x02022bc8
add r2, r1
ldr r1, =0x02023ffc
ldrb r0, [r0, r1]
lsl r0, #0x1
ldrh r0, [r0, r2]
mov r1, #0xc
mul r0, r1
ldr r1, .movedata
add r0, r1
ldrb r1, [r0, #0x1] @move power
ldr r0, =0x0202298c
mov r2, #0xca @P
strb r2, [r0]
mov r2, #0xe3 @o
strb r2, [r0, #0x1]
mov r2, #0xeb @w
strb r2, [r0, #0x2]
mov r2, #0xd9 @e
strb r2, [r0, #0x3]
mov r2, #0xe6 @r
strb r2, [r0, #0x4]
mov r2, #0xf0 @:
strb r2, [r0, #0x5]
mov r2, #0x0 @space
strb r2, [r0, #0x6]
push {r0}
cmp r1, #0x2
bhs convertpower
mov r2, #0xae @-: if it's a move with no power, show as ---
strb r2, [r0, #0x7]
strb r2, [r0, #0x8]
strb r2, [r0, #0x9]
mov r2, #0xff @end string
strb r2, [r0, #0xa]
b end
convertpower:
add r0, #0x7
mov r2, #0x0
mov r3, #0x4
ldr r4, =0x08008e79 @convert the move power to decimal string No
bl BX_r4
end:
pop {r0} @draw the string in the box
mov r1, #0x8 @change this 0x8 to 0xb if you prefers that the string Switch which? will be totaly replaced.
ldr r2, =0x080d87bd
bl BX_r2
ldr r2, =0x0802edad
BX_r2:
bx r2
BX_r4:
bx r4
.align 2
.movedata: .word 0x08250c04 @you move data table location
Last edited: