подскажите нубу... портировал вот этот патчПатч: ;W660 SW-R8BB001 ;Изменение расположения элементов в спящем режиме. ;Стандартные часы убраны. ;Добавлено: обводка, день недели, дата ,время и иконки событий ;(!) Heap shift (2018C254)
вот что получилось Где ошибка может бытьисх:
loc_45DB0BB8: LDR R1, off_45DB0D3C PUSH {R4-R7,LR} SUB SP, SP, 0x74 MOV R4, 0 STR R4, [SP,0xC] ADD R0, SP, 0x58 MOV R3, 0x1C loc_45DB0BC6: SUB R3, R3, 4 LDR R2, [R1,R3] STR R2, [R0,R3] BNE loc_45DB0BC6 LDR R1, off_45DB0D40 ADD R0, SP, 0x38 MOV R3, 0x20 loc_45DB0BD4: SUB R3, R3, 4 LDR R2, [R1,R3] STR R2, [R0,R3] BNE loc_45DB0BD4 MOV R0, 0 BL sub_45DB0D84 LSL R5, R0, 0 LSL R0, R4, 0 BL sub_45DB0D8C LSL R3, R0, 0 MOVL R6, 0xFF000000 MOV R1, 0 MVN R1, R1 LSL R0, R6, 0 PUSH {R0,R1} SUB R3, R3, 3 SUB R2, R5, 3 MOV R1, 3 LSL R0, R1, 0 BL sub_45DB0D94 ADD R1, SP, 0xC ADD R0, SP, 0x14 BL sub_45DB0DA4 LSL R2, R4, 0 MOV R1, 2 ADD R0, SP, 0xC ADD R0, R0, 4 BL sub_45DB0DAC LSL R7, R0, 0 MOV R0, 0x58 BL sub_45DB0DB4 MOV R0, 0x1E BL sub_45DB0DBC LSL R3, R0, 0 LSL R2, R6, 0 LSL R1, R6, 0 MOV R0, 5 PUSH {R0-R2} ADD R3, 0x55 LSL R0, R5, 0 LSL R1, R3, 0 MOV R2, 0x14 PUSH {R0-R2} MOV R3, 0x55 LSL R0, R7, 0 MOV R1, 2 MOV R2, 1 BL sub_45DB0DC4 LSL R0, R7, 0 BL sub_45DB0DD4 MOV R2, 1 LSL R1, R4, 0 ADD R0, SP, 0x24 BL sub_45DB0DDC LSL R7, R0, 0 MOV R0, 0x2B BL sub_45DB0DB4 MOV R0, 0x1E BL sub_45DB0DBC LSL R3, R0, 0 LSL R2, R6, 0 LSL R1, R6, 0 MOV R0, 5 PUSH {R0-R2} ADD R3, 0x32 LSL R0, R5, 0 LSL R1, R3, 0 MOV R2, 0x14 PUSH {R0-R2} MOV R3, 0x32 LSL R0, R7, 0 MOV R1, 2 MOV R2, 1 BL sub_45DB0DC4 ADD SP, SP, 0x38 LSL R0, R7, 0 BL sub_45DB0DD4 MOV R1, SP ADD R0, SP, 4 BL sub_45DB0DE4 MOV R0, SP LDRB R0, [R0] ADD R1, SP, 0x58 LSL R0, R0, 2 LDR R7, [R1,R0] MOV R0, 0x36 BL sub_45DB0DB4 MOV R0, 0x1E BL sub_45DB0DBC LSL R3, R0, 0 LSL R2, R6, 0 LSL R1, R6, 0 MOV R0, 5 PUSH {R0-R2} ADD R3, 0x96 LSL R0, R5, 0 LSL R1, R3, 0 MOV R2, 0x14 PUSH {R0-R2} MOV R3, 0x96 LSL R0, R7, 0 MOV R1, 2 MOV R2, 1 BL sub_45DB0DC4 LSL R0, R7, 0 BL sub_45DB0DD4 LDR R1, dword_45DB0D44 ADD R0, SP, 0x28 LDRB R1, [R1] ADD SP, SP, 0x18 ADD R3, SP, 0x38 loc_45DB0CDA: MOV R2, 1 LSL R2, R4 AND R2, R1 BEQ loc_45DB0CF4 LSL R2, R4, 2 LDR R2, [R3,R2] STR R2, [R0] ADD R0, R0, 4 CMP R4, 2 BGE loc_45DB0CF4 LDR R2, dword_45DB0D48 STR R2, [R0] ADD R0, R0, 4 loc_45DB0CF4: ADD R4, R4, 1 CMP R4, 8 BLT loc_45DB0CDA LSR R0, R0, 2 ADD R1, SP, 0x10 LSR R1, R1, 2 SUB R2, R0, R1 MOV R1, 5 ADD R0, SP, 0x10 BL sub_45DB0DEC LSL R4, R0, 0 MOV R0, 0x1E BL sub_45DB0DBC LSL R3, R0, 0 LSL R2, R6, 0 LSL R1, R6, 0 MOV R0, 5 PUSH {R0-R2} MOV R2, 0x28 LSL R0, R5, 0 ADD R1, R3, 3 PUSH {R0-R2} MOV R3, 3 LSL R0, R4, 0 MOV R1, 2 MOV R2, 1 BL sub_45DB0DC4 LSL R0, R4, 0 BL sub_45DB0DD4 ADD SP, SP, 0x8C POP {R4-R7,PC} ; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- align 4 off_45DB0D3C DCD 0x45DB0E14 off_45DB0D40 DCD 0x45DB0E30 dword_45DB0D44 DCD 0x2016EBC4 dword_45DB0D48 DCD 0x78000020 ; =============== S U B R O U T I N E ======================================= sub_45DB0D4C: LDR R3, off_45DB0D50 BX R3 ; --------------------------------------------------------------------------- off_45DB0D50 DCD SWI_0x130_FindBook ; =============== S U B R O U T I N E ======================================= sub_45DB0D54: LDR R3, off_45DB0D58 BX R3 ; --------------------------------------------------------------------------- off_45DB0D58 DCD SWI_0x168_GUIObject_GetDispObject ; =============== S U B R O U T I N E ======================================= sub_45DB0D5C: PUSH {R3} LDR R3, off_45DB0D68 MOV R12, R3 POP {R3} BX R12 ; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- align 4 off_45DB0D68 DCD SWI_0x128_Timer_ReSet ; =============== S U B R O U T I N E ======================================= sub_45DB0D6C: LDR R3, off_45DB0D70 BX R3 ; --------------------------------------------------------------------------- off_45DB0D70 DCD SWI_0x1EF_DispObject_InvalidateRect ; =============== S U B R O U T I N E ======================================= sub_45DB0D74: LDR R3, off_45DB0D78 BX R3 ; --------------------------------------------------------------------------- off_45DB0D78 DCD SWI_0x129_Timer_Set ; =============== S U B R O U T I N E ======================================= sub_45DB0D7C: LDR R3, off_45DB0D80 BX R3 ; --------------------------------------------------------------------------- off_45DB0D80 DCD SWI_0x12A_Timer_Kill ; =============== S U B R O U T I N E ======================================= sub_45DB0D84: LDR R3, off_45DB0D88 BX R3 ; --------------------------------------------------------------------------- off_45DB0D88 DCD SWI_0x259_Display_GetWidth ; =============== S U B R O U T I N E ======================================= sub_45DB0D8C: LDR R3, off_45DB0D90 BX R3 ; --------------------------------------------------------------------------- off_45DB0D90 DCD SWI_0x258_Display_GetHeight ; =============== S U B R O U T I N E ======================================= sub_45DB0D94: PUSH {R3} LDR R3, off_45DB0DA0 MOV R12, R3 POP {R3} BX R12 ; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- align 4 off_45DB0DA0 DCD SWI_0x1EC_DrawRect ; =============== S U B R O U T I N E ======================================= sub_45DB0DA4: LDR R3, off_45DB0DA8 BX R3 ; --------------------------------------------------------------------------- off_45DB0DA8 DCD SWI_0x16E_REQUEST_DATEANDTIME_GET ; =============== S U B R O U T I N E ======================================= sub_45DB0DAC: LDR R3, off_45DB0DB0 BX R3 ; --------------------------------------------------------------------------- off_45DB0DB0 DCD SWI_0x1BF_Time2ID ; =============== S U B R O U T I N E ======================================= sub_45DB0DB4: LDR R3, off_45DB0DB8 BX R3 ; --------------------------------------------------------------------------- off_45DB0DB8 DCD addr2 ; =============== S U B R O U T I N E ======================================= sub_45DB0DBC: LDR R3, off_45DB0DC0 BX R3 ; --------------------------------------------------------------------------- off_45DB0DC0 DCD SWI_0x294_GetImageHeight ; =============== S U B R O U T I N E ======================================= sub_45DB0DC4: PUSH {R3} LDR R3, off_45DB0DD0 MOV R12, R3 POP {R3} BX R12 ; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- align 4 off_45DB0DD0 DCD SWI_0x1ED_DrawString ; =============== S U B R O U T I N E ======================================= sub_45DB0DD4: LDR R3, off_45DB0DD8 BX R3 ; --------------------------------------------------------------------------- off_45DB0DD8 DCD SWI_0x161_TextFree ; =============== S U B R O U T I N E ======================================= sub_45DB0DDC: LDR R3, off_45DB0DE0 BX R3 ; --------------------------------------------------------------------------- off_45DB0DE0 DCD SWI_0x1BE_Date2ID ; =============== S U B R O U T I N E ======================================= sub_45DB0DE4: LDR R3, off_45DB0DE8 BX R3 ; --------------------------------------------------------------------------- off_45DB0DE8 DCD SWI_0x29C_DATE_GetWeekDay ; =============== S U B R O U T I N E ======================================= sub_45DB0DEC: LDR R3, off_45DB0DF0 BX R3 ; --------------------------------------------------------------------------- off_45DB0DF0 DCD SWI_0x15D_Str2ID ; --------------------------------------------------------------------------- loc_45DB0DF4: LDR R3, off_45DB0E00 BLX R3 MOV R0, 1 BL sub_45DB0B90 POP {R2-R7,PC} ; --------------------------------------------------------------------------- off_45DB0E00 DCD addr1 ; --------------------------------------------------------------------------- loc_45DB0E04: BL sub_45DB0BA8 LDR R0, [R5] LDR R3, off_45DB0E10 BLX R3 POP {R4-R6,PC} ; --------------------------------------------------------------------------- off_45DB0E10 DCD SWI_0x161_TextFree dword_45DB0E14 DCD 0x1B6 DCD 0x238 DCD 0x252 DCD 0x22A DCD 0x188 DCD 0x1FB DCD 0x226 loc_45DB0E30: DCD 0xEC3E LDRB R0, [R0] DCD 0xF2CE LDRB R0, [R0] DCD 0xE5F3 ;! LDRB R0, [R0] DCD 0xF2FD LDRB R0, [R0] DCD 0xED76 LDRB R0, [R0] DCD 0xECC7 LDRB R0, [R0] DCD 0xE56B ;! LDRB R0, [R0]
может align 4 зря поставил тут Код:align 4 off_45DB0D3C DCD 0x45DB0E14 off_45DB0D40 DCD 0x45DB0E30 dword_45DB0D44 DCD 0x2016EBC4 dword_45DB0D48 DCD 0x78000020
[ Редактировано c368511 в 30.4.10 16:28 ]