;D500XEEG3 API 
;Assembled by Freeman

;------------------------------------------------------------------------------------------
;Functions:
.equ mmitfs4_DeleteFile 0x10488EE8
.equ mmitfs4_CreateFile 0x100D81E4
.equ mmitfs4_CheckFileExist 0x11354DC4
.equ mmitfs4_ReadFile 0x10FC1298
.equ mmitfs4_GetFileNameInList 0x1048910C
.equ mmitfs4_GetFileSize 0x11354EDC
.equ mmitfs4_GetFileIndexInList 0x10FC0CEC
.equ mmitfs4_MakeFileList 0x10FC0FFC
.equ mmitfs4_GetNumberOfFiles 0x100D85E4
.equ mmitfs4_MakeFullPath 0x1084B7E0
.equ mmitfs4_GetFileMode 0x10FC0E30
.equ tfs4_open 0x1087B50C
.equ tfs4_read 0x104BC2CC		
.equ tfs4_close 0x10FEF9CC
.equ tfs4_lseek 0x1087B480


.equ lk3_0InitEditBuffer 0x10BEF0A0
.equ lk3_2WriteEditBuffer 0x1047D208
.equ RtcGetTime 0x10F67E3C
.equ lk_GetTimeString 0x10BF22B8
.equ lk_ChangeTimeFormat 0x100CDB08
.equ gaudio5_4UpdateDeviceState 0x10BD1108
.equ strncpy 0x10F35BE4
.equ sprintf 0x112D11C0
.equ __rt_memclr_w_0 0x10F356D0
.equ strcmp 0x10400D64
.equ strrchr 0x112D14B8
.equ rt_memcpy 0x107B7FF4
.equ __16__rt_udiv 0x10049A48
.equ __rt_udiv 0x10049A4C
.equ RtkStopTimer 0x10EF1758
.equ RtkGetMemory 0x10F36E14
.equ RtkReleaseMemory 0x10F36E1C
.equ Rtk05_2SendMsgToProcess 0x10EF0AD2
.equ Rtk06_3DetermineTaskNumber 0x10EF0B62
.equ RtkStartTimer 0x10EF1414
.equ strlen 0x10F35B68
.equ __rt_memclr 0x10049A04
.equ Set_GetWallpaperTextColor 0x10B9C528
.equ wnt1_2SemChgeParamInd 0x10C340DC
.equ SoftkeyDisplay_Invalid 0x107EC96C
.equ generate_key_tone 0x10F94668
.equ FillScreenInvalid 0x10B8A158
.equ Reg_Draw_Image_User 0x112FF8D0
.equ Fbox1_16GetCallerIdImageInfo 0x107D9074
.equ DrawHLine 0x10066238	;r0-xpos, r1-ypos, r2-width, r3-height [sp]-color
.equ Reg_Draw_Title 0x10433130
.equ Reg_Draw_Softkey 0x10079AE8
.equ hfd2_30ReadBlockNameInRamImage 0x10462718
.equ hfd2_31SaveBlockNameInRamImage 0x1046276C
.equ hmel1_72SetMultiPolyMelodyVibrator 0x11332FC0
.equ hmel1_21SendStopMessage 0x100B24E0
.equ hmel1_20SendStartMessage_chk 0x10463A64
.equ hmel1_20SendStartMessageExt 0x10822E40
.equ hmel1_76IMelodyPlay 0x10F9B35C
.equ rrm99_00ReturnUnsignedValue 0x104A4828
.equ GetObjectFileType 0x10068FB0
.equ mplayer3_MusicRingToneStop 0x10FC8C34
.equ mplayer3_MusicRingTonePlay 0x10FC8BC4
.equ Fbox3_29GetObjectType 0x107D9454
.equ cal4_1IsValidCallId 0x10447AF4
.equ set2_5NormalMenu1LineList 0x10C19AE4
.equ lk_GetIconInfo 0x10BF1FF0
.equ GetMenuColor 0x10F55EFC

.equ lk_SetFocusInputboxInitText 0x1134E2EC
.equ lk_SetFocusTextboxUserText 0x1134E370
.equ lk_SetCurSpinIndex 0x1134E2D0
.equ lk_AddMenu 0x1134BF90
.equ lk_CreateMenu 0x10FB7834
.equ lk_RefreshMenu 0x1134E1B8
.equ lk_MakeFocus 0x10BF2684
.equ lk_AddFocus 0x10BEFFA0
.equ lk_get_text 0x100D1448
.equ lk_AddFocusItem 0x100CD224
.equ lk_SetCurRadioOn 0x108459B4
.equ lk_PutMenuExtInfo 0x10BF37B4
.equ lk4_9LcdInvalidate	0x1134B358
.equ lk_DisplayIdleBG 0x100CE788
.equ lk4_10WriteWindow 0x10BEF194
.equ lk4_8GraphicWindow 0x10FB6840
.equ lk_DisplayIndicator 0x1084258C
.equ lk_DisplayIdleBG 0x100CE788
.equ lk_GetCurSpinIndex 0x100D02D8
.equ lk_get_sofk 0x10483D34
.equ lk_CreateFocus 0x108402F8
.equ lk_SetFocusHide 0x100D1214
.equ lk_GetFocusPtr 0x100D0330
.equ lk_SetFocusCheckboxState 0x10483BD0
.equ lk_GetFocusCheckboxState 0x100D030C
.equ lk_SetFocusTextboxUserInteger 0x10845A44
.equ lk_GetFocusTextboxUserInteger 0x10BF1F5C
.equ lk_GetFocusTextboxUserText 0x10482E28
.equ lk_RegFocusChangeInputFunc 0x100D1154
.equ lk_RegFocusFuncPre 0x10BF3868
.equ lk_RegFocusFuncMove 0x10FBB6B8
.equ lk_RegFocusMccMove 0x10845834
.equ lk_RegFocusChangeSpinFunc 0x1134E270
.equ lk_RegMenuFuncGetMenuData 0x10483B7C
.equ lk_GetFocusInputboxInitText 0x1134D558
.equ lk_SetFocusInputboxKeyBlcok 0x108459F8
.equ lk_SetCurFocusIndex 0x1134E2AC

;MCC
.equ mcc_lk_return_menu_01 0x10670ad4
.equ mcc_fbox_exit 0x10e86120

;Data:

.equ ColorTheme			0x18AC986E	;byte
.equ gv_text_style		0x18A991B6	;word
.equ gv_WallpaperTextColor	0x18A99184	;byte
.equ f_color			0x1898F184	;dword
.equ gs_KeyLockInfo		0x1898D9FE	;byte - 0=KeyboardNotLocked
.equ gv_idletext			0x18A99182	;0-no text
.equ gv_idletext_color		0x18A99183	;byte (textStyle) 0-Norm 1-Scheme 2-Shadow
.equ f_pos				0x1898D9C4	;Word
.equ fx	0	;Xpos
.equ fy	2	;Ypos
.equ fw	4	;Width
.equ fh	6	;Height
.equ gv_CspTable 				0x18A990D4
.equ gv_InCharge 				0x18A990C4
.equ v_hbat_Voltage1Average		0x18C4DB9C
.equ s_hee_BatParam			0x1866F904
.equ v_hbt1_DischargeLevel0		0x18C4DB00
.equ v_hbat_CurrentVoltage1		0x18C4DAF0
.equ s_dcm_BearersInfos			0x18D50043
.equ gs_DspFocus			0x1898DB80
.equ gv_alert_type 0x18A9918B
.equ mmi_quiet_mode_onoff 0x18A99174
.equ gv_quiet_mode_vib_mute 0x18A99197

;Buffers

.equ MainSubScreen	0x18DFA444;
.equ ga_GraphicBuffer	0x189B5254;
.equ ga_GraphicBuffer2	0x1898F554

;Macro

.macro blxx adrr
.align 2
.word 0xE59FC000
.word 0xE12FFF1C
.word \adrr
.endm

.macro bpc addrr
.align 2
.word 0xE51FF004
.word \addrr
.endm



;------------------------------------------------------------------------------------------
