本帖最后由 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
复制代码 |