mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
16 lines
299 B
ArmAsm
16 lines
299 B
ArmAsm
.section .itcm
|
|
.arm
|
|
|
|
// r0 = &refCount
|
|
.global shared_ptr_increase_ref_count
|
|
.type shared_ptr_increase_ref_count, %function
|
|
shared_ptr_increase_ref_count:
|
|
mrs r2, cpsr
|
|
orr r1, r2, #0x80
|
|
msr cpsr_c, r1
|
|
ldr r12, [r0]
|
|
add r12, r12, #1
|
|
str r12, [r0]
|
|
msr cpsr_c, r2
|
|
bx lr
|