mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
32 lines
369 B
ArmAsm
32 lines
369 B
ArmAsm
.file "cheat.S"
|
|
.text
|
|
.align 4
|
|
.global _start
|
|
.type _start,function
|
|
|
|
_start:
|
|
add r0, r15, #0x28
|
|
|
|
.Lapply:
|
|
ldr r1, [r0], #4
|
|
cmp r1, #0
|
|
beq .Ldone
|
|
|
|
ldr r2, [r0], #4
|
|
and r3, r2, #255
|
|
mov r2, r2, lsr #8
|
|
|
|
.Lmemset:
|
|
strb r3, [r1], #1
|
|
subs r2, r2, #1
|
|
bne .Lmemset
|
|
b .Lapply
|
|
|
|
.Ldone:
|
|
bx r14
|
|
|
|
.cheat:
|
|
.long 0x0200234e
|
|
.long 0x00000180
|
|
.long 0x0
|