|
发表于 2021-7-25 20:38:29
来自手机
|
显示全部楼层
.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,=0x020240A4 add r0,r1 ldrb r0,[r0] cmp r0, #79 ;"饱了又饿"特性编号 beq yes1 end: ldr r3,=(0x08046B04|1) bx r3 yes1: ldr r0,=0x02024084 ldrh r0,[r0] cmp r0,#1 ;空腹花纹编号 bne changenull mov r1,#2 ;满腹花纹编号 keep: strh r1,[r0] b end changenull: mov r1,#1 ;空腹花纹编号 NoPPReduce: ldr r3,=(0x08046BDC|1) bx r3 .endfunc .pool .org 0x08046AFC ldr r3,=(new|1) bx r3 .pool .close |
|