Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;C902 SW-R3EG004 AO
- ;Run elf Myshortcuts © albertnet3
- ;for running this elf, pressing short press the softkey left in standbybook
- ;added vibration at moment to press the left softkeys.
- ;elf Load form: "/tpa/user/other/Zbin/" or "/card/other/Zbin/".
- ;If this elf not exist in Memory phone or card:
- ;+ Vibra
- ;+ playing Sound:
- ;Path: "/tpa/user/other/Ini/"
- ;Name: "emptybattery.3gp"
- ;and show the message:
- ;------------------------
- ;x"MyShortcuts.elf x
- ;x © albertnet3 x
- ;x Not exist in x
- ;x Memory x
- ;x Phone or Card!" x
- ;------------------------
- ;(!)Note: Info for patch makers:
- ;I used the functions GetDir(0x1273D054) and elfload(0x1273DD50)
- ;of the "ELFPack v1.999 © Hussein".
- ;© albertnet3
- ;(p) buhh83
- ;V1.1
- include "x.inc"
- include "lib\c902_r3eg004.asm"
- org 0x10D99520;10d752c0
- DCD 0x22CE ;Shortcuts
- org 0x10D9951C;10d752bc
- DCD newcode+1
- ; ---------------------------------------------------------------------------
- org 0x127c3170
- sub_127C3170:
- PUSH {LR}
- BL j_AudioControl_Init
- CMP R0, 0
- BNE loc_127C3180
- BL j_GetAudioControlPtr
- LDR R0, [R0]
- loc_127C3180:
- MOVL R3, 0x12C
- MOV R2, 0x32
- MOV R1, 0x96
- BL j_AudioControl_Vibrate
- POP {PC}
- DCB 0
- DCB 0
- newcode:
- PUSH {R4-R6,LR}
- LDR R4, off_127C322C
- SUB SP, SP, 0x1FC
- SUB SP, SP, 0x20
- MOV R0, 0x11
- BL j_GetDir
- LSL R5, R4, 0
- ADD R5, 0xD0
- ADD R2, SP, 0x200
- LSL R1, R5, 0
- BL j_fstat
- CMP R0, 0
- BNE loc_127C31DE
- MOV R0, 0x11
- loc_127C31B0:
- BL j_GetDir
- LSL R1, R0, 0
- MOV R0, SP
- BL j_wstrcpy
- ADD R4, 0xF0
- LSL R1, R4, 0
- MOV R0, SP
- BL j_wstrcat
- MOV R3, 0
- MOV R2, 0
- LSL R1, R2, 0
- MOV R0, SP
- BL j_elfload
- BL sub_127C3170
- MOV R0, 1
- loc_127C31D8:
- ADD SP, SP, 0x1FC
- ADD SP, SP, 0x20
- POP {R4-R6,PC}
- loc_127C31DE:
- MOV R0, 0x10
- BL j_GetDir
- ADD R2, SP, 0x200
- LSL R1, R5, 0
- BL j_fstat
- CMP R0, 0
- BNE loc_127C31F4
- MOV R0, 0x10
- B loc_127C31B0
- loc_127C31F4:
- LDR R5, dword_127C3230
- MOV R1, 0
- LSL R2, R5, 0
- LSL R0, R4, 0
- BL j_TextID_Create
- LSL R6, R0, 0
- MOV R1, 0
- MOV R0, 0
- PUSH {R0,R1}
- MOV R3, 1
- LDR R0, dword_127C3234
- LSL R2, R5, 0
- LSL R1, R6, 0
- BL j_MessageBox
- MOV R2, 0xA
- LSL R1, R4, 0
- ADD R1, 0xAC
- ADD R4, 0x80
- LSL R0, R4, 0
- BL j_PlayFileV
- BL sub_127C3170
- MOV R0, 0
- ADD SP, SP, 8
- B loc_127C31D8
- ; ---------------------------------------------------------------------------
- off_127C322C DCD aMyshortcuts_el
- dword_127C3230 DCD 0xFFFF
- dword_127C3234 DCD 0x6FFFFFFF
- ; ---------------------------------------------------------------------------
- j_AudioControl_Init:
- LDR R3, off_127C323C
- BX R3
- off_127C323C DCD AudioControl_Init+1
- ; ---------------------------------------------------------------------------
- j_GetAudioControlPtr:
- LDR R3, dword_127C3244
- BX R3
- dword_127C3244 DCD GetAudioControlPtr;0x4BBD3A40
- ; ---------------------------------------------------------------------------
- j_AudioControl_Vibrate:
- PUSH {R3}
- LDR R3, off_127C3254
- MOV R12, R3
- POP {R3}
- BX R12
- NOP
- off_127C3254 DCD AudioControl_Vibrate+1
- ; ---------------------------------------------------------------------------
- j_GetDir:
- LDR R3, off_127C325C
- BX R3
- off_127C325C DCD 0x1273D054
- ; ---------------------------------------------------------------------------
- j_fstat:
- LDR R3, off_127C3264
- BX R3
- off_127C3264 DCD fstat+1
- ; ---------------------------------------------------------------------------
- j_wstrcpy:
- LDR R3, off_127C326C
- BX R3
- off_127C326C DCD wstrcpy+1
- ; ---------------------------------------------------------------------------
- j_wstrcat:
- LDR R3, off_127C3274
- BX R3
- off_127C3274 DCD wstrcat+1
- ; ---------------------------------------------------------------------------
- j_elfload:
- PUSH {R3}
- LDR R3, off_127C3284
- MOV R12, R3
- POP {R3}
- BX R12
- NOP
- off_127C3284 DCD 0x1273DD50
- ; ---------------------------------------------------------------------------
- j_TextID_Create:
- LDR R3, off_127C328C
- BX R3
- off_127C328C DCD TextID_Create+1
- ; ---------------------------------------------------------------------------
- j_MessageBox:
- PUSH {R3}
- LDR R3, off_127C329C
- MOV R12, R3
- POP {R3}
- BX R12
- NOP
- off_127C329C DCD MessageBox+1
- ; ---------------------------------------------------------------------------
- j_PlayFileV:
- LDR R3, off_127C32A4
- BX R3
- off_127C32A4 DCD PlayFileV+1
- ; ---------------------------------------------------------------------------
- aMyshortcuts_el du "MyShortcuts.elf",0xA,0xA9
- ;DCW 0xA
- ;DCW 0xA9
- DCB " ",0
- aAlbertnet3NotE du "albertnet3",0xA
- ;DCW
- du "Not exist in Memory Phone or Card!",0
- aTpaUserOtherIn du "/tpa/user/other/Ini/",0
- DCB 0
- DCB 0
- aEmptybattery_3 du "emptybattery.3gp",0
- DCB 0
- DCB 0
- aMyshortcuts__0 du "MyShortcuts.elf",0
- aMyshortcuts__1 du "/MyShortcuts.elf",0
Advertisement
Add Comment
Please, Sign In to add comment