Finish with STWI_send_*
This commit is contained in:
93
asm/librfu.s
93
asm/librfu.s
@@ -4,99 +4,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start STWI_send_CPR_StartREQ
|
||||
STWI_send_CPR_StartREQ: @ 82E316C
|
||||
push {r4-r6,lr}
|
||||
lsls r0, 16
|
||||
lsrs r5, r0, 16
|
||||
lsls r1, 16
|
||||
lsrs r4, r1, 16
|
||||
lsls r2, 24
|
||||
lsrs r6, r2, 24
|
||||
movs r0, 0x32
|
||||
bl STWI_init
|
||||
lsls r0, 16
|
||||
cmp r0, 0
|
||||
bne _082E319E
|
||||
ldr r2, _082E31A4
|
||||
ldr r1, [r2]
|
||||
movs r0, 0x2
|
||||
strb r0, [r1, 0x4]
|
||||
lsls r0, r5, 16
|
||||
orrs r0, r4
|
||||
ldr r1, [r2]
|
||||
ldr r1, [r1, 0x24]
|
||||
str r0, [r1, 0x4]
|
||||
str r6, [r1, 0x8]
|
||||
bl STWI_start_Command
|
||||
_082E319E:
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_082E31A4: .4byte gRfuState
|
||||
thumb_func_end STWI_send_CPR_StartREQ
|
||||
|
||||
thumb_func_start STWI_send_CPR_PollingREQ
|
||||
STWI_send_CPR_PollingREQ: @ 82E31A8
|
||||
push {lr}
|
||||
movs r0, 0x33
|
||||
bl STWI_init
|
||||
lsls r0, 16
|
||||
lsrs r1, r0, 16
|
||||
cmp r1, 0
|
||||
bne _082E31C2
|
||||
ldr r0, _082E31C8
|
||||
ldr r0, [r0]
|
||||
strb r1, [r0, 0x4]
|
||||
bl STWI_start_Command
|
||||
_082E31C2:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_082E31C8: .4byte gRfuState
|
||||
thumb_func_end STWI_send_CPR_PollingREQ
|
||||
|
||||
thumb_func_start STWI_send_CPR_EndREQ
|
||||
STWI_send_CPR_EndREQ: @ 82E31CC
|
||||
push {lr}
|
||||
movs r0, 0x34
|
||||
bl STWI_init
|
||||
lsls r0, 16
|
||||
lsrs r1, r0, 16
|
||||
cmp r1, 0
|
||||
bne _082E31E6
|
||||
ldr r0, _082E31EC
|
||||
ldr r0, [r0]
|
||||
strb r1, [r0, 0x4]
|
||||
bl STWI_start_Command
|
||||
_082E31E6:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_082E31EC: .4byte gRfuState
|
||||
thumb_func_end STWI_send_CPR_EndREQ
|
||||
|
||||
thumb_func_start STWI_send_StopModeREQ
|
||||
STWI_send_StopModeREQ: @ 82E31F0
|
||||
push {lr}
|
||||
movs r0, 0x3D
|
||||
bl STWI_init
|
||||
lsls r0, 16
|
||||
lsrs r1, r0, 16
|
||||
cmp r1, 0
|
||||
bne _082E320A
|
||||
ldr r0, _082E3210
|
||||
ldr r0, [r0]
|
||||
strb r1, [r0, 0x4]
|
||||
bl STWI_start_Command
|
||||
_082E320A:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
_082E3210: .4byte gRfuState
|
||||
thumb_func_end STWI_send_StopModeREQ
|
||||
|
||||
thumb_func_start STWI_intr_timer
|
||||
STWI_intr_timer: @ 82E3214
|
||||
push {r4,lr}
|
||||
|
||||
Reference in New Issue
Block a user