FreeCalypso > hg > freecalypso-reveng
diff pirelli/fw-disasm @ 250:431efc676a9c
pirelli/fw-disasm: started analysing the Switch_ON() code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Dec 2017 17:18:06 +0000 |
parents | b84fa089a560 |
children | 6d9a6627b085 |
line wrap: on
line diff
--- a/pirelli/fw-disasm Sun Dec 24 16:22:28 2017 +0000 +++ b/pirelli/fw-disasm Sun Dec 24 17:18:06 2017 +0000 @@ -1441,6 +1441,9 @@ 3a14a4: 4328 orr r0, r5 3a14a6: 0600 lsl r0, r0, #24 3a14a8: 0e05 lsr r5, r0, #24 +; R5: bit 0 is set if the power button is held down or if +; the ONBSTS bit is set with charging power connected +; bit 2 is set if the charging power is connected 3a14aa: 4ec0 ldr r6, =0xfffe1811 ; via 0x3a17ac 3a14ac: 2000 mov r0, #0 3a14ae: 5630 ldrsb r0, [r6, r0] @@ -1455,16 +1458,18 @@ 3a14c0: 4328 orr r0, r5 3a14c2: 0600 lsl r0, r0, #24 3a14c4: 0e05 lsr r5, r0, #24 +; bit 3 is set in R5 if an RTC alarm has occurred +; write 0 into ABB VBATREG 3a14c6: 2001 mov r0, #1 3a14c8: 211e mov r1, #30 ; 0x1e 3a14ca: 2200 mov r2, #0 - 3a14cc: f7a7 fe9e bl 0x34920c + 3a14cc: f7a7 fe9e bl 0x34920c ; $ABB_Write_Register_on_page 3a14d0: 2001 mov r0, #1 - 3a14d2: f710 f9e4 bl 0x2b189e + 3a14d2: f710 f9e4 bl 0x2b189e ; rvf_delay() 3a14d6: 4fb1 ldr r7, =0x1774e38 ; via 0x3a179c 3a14d8: 2001 mov r0, #1 3a14da: 211e mov r1, #30 ; 0x1e - 3a14dc: f7a7 febd bl 0x34925a + 3a14dc: f7a7 febd bl 0x34925a ; $ABB_Read_Register_on_page 3a14e0: 6839 ldr r1, [r7, #0] 3a14e2: 8088 strh r0, [r1, #4] 3a14e4: f78c fb00 bl 0x32dae8 @@ -1578,7 +1583,7 @@ 3a15c2: d103 bne 0x3a15cc 3a15c4: 20ff mov r0, #255 ; 0xff 3a15c6: 30b2 add r0, #178 ; 0xb2 - 3a15c8: f710 f969 bl 0x2b189e + 3a15c8: f710 f969 bl 0x2b189e ; rvf_delay() 3a15cc: 2003 mov r0, #3 3a15ce: f789 fcc9 bl 0x32af64 3a15d2: f7f3 fb5d bl 0x394c90