Pokemon Center | 口袋中心 以口袋妖怪为主题并带有其他动漫游戏的讨论
标题:
当setflag 0x200时,对战不消耗PP值(绿宝石)
[打印本页]
作者:
744865306
时间:
2021-9-20 15:24
标题:
当setflag 0x200时,对战不消耗PP值(绿宝石)
本帖最后由 744865306 于 2021-9-25 15:26 编辑
.gba
.thumb
.create "new.gba",0x8000000
.close
.open "绿宝石.gba","new.gba",0x8000000
.org 0x08F80000
.func newflag_200
lsl r0,r0,#4
and r4,r0
cmp r4,#0
bne NoPPReduce
mov r0,#128
lsl r0,r0,#2
ldr r3,=(0x0809D790|1)
bl call_bx
cmp r0,#1
beq NoPPReduce
ldr r3,=(0x08046B04|1)
bx r3
NoPPReduce:
ldr r3,=(0x08046BDC|1)
bx r3
.endfunc
.pool
.func call_bx
bx r3
.endfunc
.pool
.org 0x08046AFC
ldr r3, =(newflag_200|1)
bx r3
.pool
.close
复制代码
作者:
jiangzhengwenjz
时间:
2021-9-22 22:46
仔细测试过吗?测试过的话我会索引
作者:
744865306
时间:
2021-9-25 15:25
jiangzhengwenjz 发表于 2021-9-22 22:46
仔细测试过吗?测试过的话我会索引
(这几天都没看pmcenter)是的,不过我刚刚看了下,我发源码的时候忘记写.org 0x08F80000了,现在把帖子编辑一下
作者:
744865306
时间:
2021-9-25 15:27
jiangzhengwenjz 发表于 2021-9-22 22:46
仔细测试过吗?测试过的话我会索引
编辑好了,现在可以加了
欢迎光临 Pokemon Center | 口袋中心 以口袋妖怪为主题并带有其他动漫游戏的讨论 (http://162.218.49.243/)
Powered by Discuz! X3