Disculpe MrDollSteak, he estado agregado la habilidad simple pero cuando la agrego al juego hay un error cuando me bajan una estadística, cuando sube no hay problema pero cuando baja me da error se congela la pantalla, le dejo la rutina aqui abajo, haber si me puede explicar, claro si tiene tiempo, por cierto todos los pointer los puse +1.
.text
.align 2
.thumb
.thumb_func(s) Por cierto no me compilaba por que estaba esta "S" no se si tenga algo que ver
.global simplenegativestatboost
BufferAbility:
mov r2, #0x1
lsr r6, r0, #0x18
ldr r0, .Bank
ldrb r0, [r0]
mov r1, #0x58
mul r0, r1
ldr r1, .BattleData
add r0, r0, r1
ldrb r0, [r0]
SimpleCheck:
cmp r0, #0x57
bne DetermineNegativeStage
Simple:
lsl r0, r6, #0x19
lsr r6, r0, #0x18
DetermineNegativeStage:
cmp r6, #0xFE
beq Harshly
cmp r6, #0xFF
beq Fell
Severely:
strb r4, [r3, #0x1]
mov r0, #0x85
strb r0, [r3, #0x2]
mov r0, #0x1
strb r0, [r3, #0x3]
mov r2, #0x4
b Fell
Harshly:
strb r4, [r3, #0x1]
mov r0, #0xD3
strb r0, [r3, #0x2]
strb r4, [r3, #0x3]
mov r2, #0x4
Fell:
ldr r0, .Return
bx r0
.align 2
.Bank: .word 0x02023BC4
.BattleData: .word 0x02023C04
.Return: .word 0x08027F12
#Insert 00 4A 10 47 xx xx xx 08 at 27EFC