|
楼主 |
发表于 2021-7-25 21:26:08
|
显示全部楼层
重新修改了下,不过还是没成功,话说果然只有电脑端能回复这么多行呢
.gba
.thumb
.create "test.gba",0x8000000
.close
.open "绿宝石.gba","test.gba",0x8000000
.org 0x08F00000
.func new
lsl r0,r0,#4
and r4,r0
cmp r4,#0
bne NoPPReduce
mov r1,#0x58
ldr r0,=0x0202420B
ldrb r0,[r0]
mul r0,r1
ldr r1,=0x02024084
add r0,r1
add r0,#0x20
ldrb r0,[r0]
cmp r0, #79 ;"饱了又饿"特性编号
beq yes1
end:
ldr r3,=(0x08046B04|1)
bx r3
yes1:
ldr r3,=0x0202420B
ldrb r3,[r3]
mov r0,#0x58
mul r3,r0
add r1,r3
ldrh r1,[r1]
cmp r1,#1 ;空腹花纹编号
bne changenull
mov r0,#2 ;满腹花纹编号
keep:
strh r0,[r1]
b end
changenull:
mov r0,#1 ;空腹花纹编号
NoPPReduce:
ldr r3,=(0x08046BDC|1)
bx r3
.endfunc
.pool
.org 0x08046AFC
ldr r3,=(new|1)
bx r3
.pool
.close |
|