#61 [28.11.11, 02:58] Re: F.A.Q по портированию замэйновых патчей
Neodzen, писал:
du 0
у тебя перед каждой строкой, убери 0.
[ Редактировано RaANdOoM в 28.11.11 01:59 ]
Nokia N900 Спасибо: Va_st, Therion. ---------------------------------- WMR 112182965768
'Фу' сказали: heckfy5225
Neodzen
Patcher
Регистрация: 3.10.10 Сообщений: 311 Репутация: 3339 Откуда: Украина
#62 [29.11.11, 21:49] Re: F.A.Q по портированию замэйновых патчей
RaANdOoM,
Код:
aCard_1 du 0, '/card/',0 DCB 0 DCB 0 aTpa_1 du 0, '/tpa/',0 aPlatformDbDScr du 0, '-Platform: DB%d' db 0xA du '-Screen size: %dx%d' db 0xA du '-Brightness: %d%%' db 0xA du '-Battery: %d%%' db 0xA du '-Temperature: %dш' aCBatteryTempD du 'C' db 0xA du '-Battery temp: %dш' aCBtStateSHeapD du 'C' db 0xA du '-BT state: %s' db 0xA du '-Heap: %d Kb' db 0xA du '-Silent mode: %s' db 0xA du '-Headsets state: %s' db 0xA du '-Profile: %s' db 0xA du '-Date and Time: %02d/%02d/%02d - %02d:%02d:%02d' db 0xA db 0xA du '----Memory stick----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '----Phone memory----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '-GPRS last session info-' db 0xA du 'Bytes sent: %d Kb' db 0xA du 'Bytes recieved: %d Kb',0
тоесть вот так надо сделать? Или я тебя не понял?
K800 R8BF003 FOREVER! Респекты: MrGraL,Therion,D3mon,E1kolyan,Boysie,Vov4ик, ну и список можно продолжать еще долго)))
#63 [29.11.11, 22:00] Re: F.A.Q по портированию замэйновых патчей
тут че не убрал? должно быть так... aCard_1 du '/card/',0
db 0xA du '-Free space: %d Mb',0 и т.д.
Sony Ericsson C905 SW-R1FA035 Sony Ericsson K810 SW-R8BF003 Sony Xperia™ S ZTE Blade X3
Neodzen
Patcher
Регистрация: 3.10.10 Сообщений: 311 Репутация: 3339 Откуда: Украина
#64 [29.11.11, 22:24] Re: F.A.Q по портированию замэйновых патчей
E1kolyan, такой код
Код:
aCard_1 du '/card/',0 db 0xA aTpa_1 du '/tpa/',0 aPlatformDbDScr du '-Platform: DB%d' db 0xA du '-Screen size: %dx%d' db 0xA du '-Brightness: %d%%' db 0xA du '-Battery: %d%%' db 0xA du '-Temperature: %dш' aCBatteryTempD du 'C' db 0xA du '-Battery temp: %dш' aCBtStateSHeapD du 'C' db 0xA du '-BT state: %s' db 0xA du '-Heap: %d Kb' db 0xA du '-Silent mode: %s' db 0xA du '-Headsets state: %s' db 0xA du '-Profile: %s' db 0xA du '-Date and Time: %02d/%02d/%02d - %02d:%02d:%02d' db 0xA db 0xA du '----Memory stick----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '----Phone memory----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '-GPRS last session info-' db 0xA du 'Bytes sent: %d Kb' db 0xA du 'Bytes recieved: %d Kb',0
улучшил ситуацию, но квадратики остались( вот весь исх, мож прояснится что
Код:
include "x.inc" include "k800_r8bf003.lib.asm" addr=0x45483C08
; =============== S U B R O U T I N E =======================================
sub_45CF87DC: ; CODE XREF: sub_45CF8560+28p LDR R3, off_45CF87E0 BX R3 ; int REQUEST_PROFILE_GETACTIVEPROFILE( const int* sync, int* level ); ; End of function sub_45CF87DC
; --------------------------------------------------------------------------- off_45CF87E0 DCD REQUEST_PROFILE_GETACTIVEPROFILE+1 ; DATA XREF: sub_45CF87DCr ; int REQUEST_PROFILE_GETACTIVEPROFILE( const int* sync, int* level );
; =============== S U B R O U T I N E =======================================
sub_45CF87E4: ; CODE XREF: sub_45CF8560+36p LDR R3, off_45CF87E8 BX R3 ; int REQUEST_SETTING_SILENCE_GET( const int* sync, u16 profile, char* silence_mode ); ; End of function sub_45CF87E4
; --------------------------------------------------------------------------- off_45CF87E8 DCD REQUEST_SETTING_SILENCE_GET+1 ; DATA XREF: sub_45CF87E4r ; int REQUEST_SETTING_SILENCE_GET( const int* sync, u16 profile, char* silence_mode );
; =============== S U B R O U T I N E =======================================
sub_45CF87EC: ; CODE XREF: sub_45CF8560+4Ep LDR R3, off_45CF87F0 BX R3 ; int Bluetooth_GetState( void ); ; End of function sub_45CF87EC
; --------------------------------------------------------------------------- off_45CF87F0 DCD Bluetooth_GetState+1 ; DATA XREF: sub_45CF87ECr ; int Bluetooth_GetState( void );
; =============== S U B R O U T I N E =======================================
sub_45CF87F4: ; CODE XREF: sub_45CF8560+5Ap
; FUNCTION CHUNK AT 453E6124 SIZE 00000006 BYTES
LDR R3, off_45CF87F8 BX R3 ; int PHF_GetState( void ); ; End of function sub_45CF87F4
; --------------------------------------------------------------------------- off_45CF87F8 DCD PHF_GetState+1 ; DATA XREF: sub_45CF87F4r ; int PHF_GetState( void );
; =============== S U B R O U T I N E =======================================
sub_45CF87FC: ; CODE XREF: sub_45CF8560+6Ep
; FUNCTION CHUNK AT 4423DB64 SIZE 00000006 BYTES
LDR R3, off_45CF8800 BX R3 ; int GetChipID( void ); ; End of function sub_45CF87FC
; --------------------------------------------------------------------------- off_45CF8800 DCD GetChipID+1 ; DATA XREF: sub_45CF87FCr ; int GetChipID( void );
; =============== S U B R O U T I N E =======================================
sub_45CF8804: ; CODE XREF: sub_45CF8560+D6p ; sub_45CF8560+E0p LDR R3, off_45CF8808 BX R3 ; int GetVolumeSize( wchar_t* root_folder, VOLUMESIZE* ); ; End of function sub_45CF8804
; --------------------------------------------------------------------------- off_45CF8808 DCD GetVolumeSize+1 ; DATA XREF: sub_45CF8804r ; int GetVolumeSize( wchar_t* root_folder, VOLUMESIZE* );
; =============== S U B R O U T I N E =======================================
sub_45CF880C: ; CODE XREF: sub_45CF8560+ECp LDR R3, off_45CF8810 BX R3 ; int GetBatteryState( void* unused, BATT* ); ; End of function sub_45CF880C
; --------------------------------------------------------------------------- off_45CF8810 DCD GetBatteryState+1 ; DATA XREF: sub_45CF880Cr ; int GetBatteryState( void* unused, BATT* );
; =============== S U B R O U T I N E =======================================
sub_45CF8814: ; CODE XREF: sub_45CF8560+F4p LDR R3, off_45CF8818 BX R3 ; int GPRS_GetLastSessionInfo( int, GPRS_SESSION_INFO* ); ; End of function sub_45CF8814
; --------------------------------------------------------------------------- off_45CF8818 DCD GPRS_GetLastSessionInfo+1 ; DATA XREF: sub_45CF8814r ; int GPRS_GetLastSessionInfo( int, GPRS_SESSION_INFO* );
; =============== S U B R O U T I N E =======================================
sub_45CF881C: ; CODE XREF: sub_45CF8560+FAp LDR R3, off_45CF8820 BX R3 ; int Display_GetBrightness( int display ); ; End of function sub_45CF881C
; --------------------------------------------------------------------------- off_45CF8820 DCD Display_GetBrightness+1 ; DATA XREF: sub_45CF881Cr ; int Display_GetBrightness( int display );
; =============== S U B R O U T I N E =======================================
sub_45CF8824: ; CODE XREF: sub_45CF8560+102p LDR R3, off_45CF8828 BX R3 ; int Display_GetHeight( int display ); ; End of function sub_45CF8824
; --------------------------------------------------------------------------- off_45CF8828 DCD Display_GetHeight+1 ; DATA XREF: sub_45CF8824r ; int Display_GetHeight( int display );
; =============== S U B R O U T I N E =======================================
sub_45CF882C: ; CODE XREF: sub_45CF8560+10Ap LDR R3, off_45CF8830 BX R3 ; int Display_GetWidth( int display ); ; End of function sub_45CF882C
; --------------------------------------------------------------------------- off_45CF8830 DCD Display_GetWidth+1 ; DATA XREF: sub_45CF882Cr ; int Display_GetWidth( int display );
; =============== S U B R O U T I N E =======================================
sub_45CF8834: ; CODE XREF: sub_45CF8560+1ECp PUSH {R3} LDR R3, off_45CF8840 MOV R12, R3 POP {R3} BX R12 ; int snwprintf( wchar_t* buffer, int size, const wchar_t* fmt, ... ); ; End of function sub_45CF8834
; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- off_45CF8840 DCD snwprintf+1 ; DATA XREF: sub_45CF8834+2r ; int snwprintf( wchar_t* buffer, int size, const wchar_t* fmt, ... );
; =============== S U B R O U T I N E =======================================
sub_45CF8844: ; CODE XREF: sub_45CF8560+1F8p LDR R3, off_45CF8848 BX R3 ; int textidname2id( const wchar_t* idname, int maxnamelen, TEXTID* id ); ; End of function sub_45CF8844
; --------------------------------------------------------------------------- off_45CF8848 DCD textidname2id+1 ; DATA XREF: sub_45CF8844r ; int textidname2id( const wchar_t* idname, int maxnamelen, TEXTID* id );
; =============== S U B R O U T I N E =======================================
sub_45CF884C: ; CODE XREF: sub_45CF8560+202p LDR R3, off_45CF8850 BX R3 ; TEXTID TextID_Create( const void* wstr, TEXT_ENCODING flag, int len ); ; End of function sub_45CF884C
; --------------------------------------------------------------------------- off_45CF8850 DCD TextID_Create+1 ; DATA XREF: sub_45CF884Cr ; TEXTID TextID_Create( const void* wstr, TEXT_ENCODING flag, int len );
; =============== S U B R O U T I N E =======================================
sub_45CF8854: ; CODE XREF: sub_45CF8560+216p PUSH {R3} LDR R3, off_45CF8860 MOV R12, R3 POP {R3} BX R12 ; int MessageBox( TEXTID header_text, TEXTID message_text, IMAGEID, int style, int time, BOOK* book ); ; End of function sub_45CF8854
; --------------------------------------------------------------------------- NOP ; --------------------------------------------------------------------------- off_45CF8860 DCD MessageBox+1 ; DATA XREF: sub_45CF8854+2r ; int MessageBox( TEXTID header_text, TEXTID message_text, IMAGEID, int style, int time, BOOK* book );
; =============== S U B R O U T I N E =======================================
sub_45CF8864: ; CODE XREF: ROM:45CF87BEp
; FUNCTION CHUNK AT 45483C08 SIZE 0000000C BYTES
LDR R3, off_45CF8868 BX R3 ; End of function sub_45CF8864
; --------------------------------------------------------------------------- off_45CF8868 DCD addr+1 ; DATA XREF: sub_45CF8864r align 4 aMenu_phone_sta du 0, 'MENU_PHONE_STATUS_TXT',0 ; DATA XREF: sub_45CF8560+1F6o aNormal DCB "Normal",0 ; DATA XREF: ROM:off_45CF88D8o aMeeting DCB "Meeting",0 ; DATA XREF: ROM:45CF88DCo aInCar DCB "In Car",0 ; DATA XREF: ROM:45CF88E0o aOutdoors DCB "Outdoors",0 ; DATA XREF: ROM:45CF88E4o aHandsfree DCB "Handsfree",0 ; DATA XREF: ROM:45CF88E8o aHome DCB "Home",0 ; DATA XREF: ROM:45CF88ECo aOffice DCB "Office",0 ; DATA XREF: ROM:45CF88F0o align 4 off_45CF88D8 DCD aNormal ; DATA XREF: ROM:off_45CF8784o ; "Normal" DCD aMeeting ; "Meeting" DCD aInCar ; "In Car" DCD aOutdoors ; "Outdoors" DCD aHandsfree ; "Handsfree" DCD aHome ; "Home" DCD aOffice ; "Office" aConnected DCB "Connected",0 aDisconnected DCB "Disconnected",0 db 0 db 0 db 0 aCard_1 du '/card/',0 db 0xA aTpa_1 du '/tpa/',0 aPlatformDbDScr du '-Platform: DB%d' db 0xA du '-Screen size: %dx%d' db 0xA du '-Brightness: %d%%' db 0xA du '-Battery: %d%%' db 0xA du '-Temperature: %dш' aCBatteryTempD du 'C' db 0xA du '-Battery temp: %dш' aCBtStateSHeapD du 'C' db 0xA du '-BT state: %s' db 0xA du '-Heap: %d Kb' db 0xA du '-Silent mode: %s' db 0xA du '-Headsets state: %s' db 0xA du '-Profile: %s' db 0xA du '-Date and Time: %02d/%02d/%02d - %02d:%02d:%02d' db 0xA db 0xA du '----Memory stick----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '----Phone memory----' db 0xA du '-Total size: %d Mb' db 0xA du '-Free space: %d Mb' db 0xA du '-Used memory: %d Mb' db 0xA db 0xA du '-GPRS last session info-' db 0xA du 'Bytes sent: %d Kb' db 0xA du 'Bytes recieved: %d Kb',0
K800 R8BF003 FOREVER! Респекты: MrGraL,Therion,D3mon,E1kolyan,Boysie,Vov4ик, ну и список можно продолжать еще долго)))
Вы не можете начинать темы. Вы не можете редактировать свои сообщения. Вы не можете создавать опросы. Вы не можете вкладывать файлы в сообщения. Вы не можете отвечать на сообщения. Вы не можете удалять свои сообщения. Вы не можете голосовать.