Que tal, aqui les dejo otro parche, este agrega iconos a la prueba de servicio del Microfono, espero y les ayude a aprender, intente comentar algunas lineas.
Código:
;W580 SW-R8BE001
;Add icon in the test of microphone (Service > Service Tests > Microphone)
;(c) anarkes
include "x.inc"
include "./lib/W580_R8BE001.asm"
;Agregar el primer icono SR_RECORDING_ANIM_00_ICN [HOOK]
org 0x4501D8D0
LDR R1, hook_0
BX R1
hook_0 DCD newcode+1
next:
;Agregar el segundo icono FR_INPUT_GUI_LISTENING_VOLUME_ICN [HOOK]
org 0x4501D9CA
LDR R1, hook_1
BX R1
NOP
align 4
hook_1 DCD second+1
next2:
;Espacio libre utilizado
org 0x45CFB0BE
newcode:
ADD R1, R0, 0 ;Titulo (2do parametro)
LDR R0, [R4,0x70] ;GUI* (1er parametro)
BL ProgressBar_SetText_0 ;Function
LDR R1, icon_0 ;u16 icon_id (2do parametro)
LDR R0, [R4,0x70] ;GUI* (1er parametro)
BL ProgressBar_SetIcon_0 ;Function
LDR R1, next_0
BX R1 ;Regresa al offset en que nos quedamos al modificar el MAIN
second:
LDR R0, [R4,0x70] ;GUI*
MOV R1, 0 ;BOOL
BL ProgressBar_SetBarDisabled_0
LDR R1, icon_1 ;u16 icon_id
LDR R0, [R4,0x70] ;GUI*
BL ProgressBar_SetIcon_0
LDR R0, LNG_0
LDR R1, next_1
BX R1
ProgressBar_SetIcon_0:
LDR R3, func_0
BX R3
ProgressBar_SetText_0:
LDR R3, func_1
BX R3
ProgressBar_SetBarDisabled_0:
LDR R3, func_2
BX R3
PlaySystemSound_0:
LDR R3, func_3
BX R3
align 4
LNG_0 DCD 0x1966 ;Microphone
next_0 DCD next+1
next_1 DCD next2+1
func_0 DCD ProgressBar_SetIcon+1
func_1 DCD ProgressBar_SetText+1
func_2 DCD ProgressBar_SetBarDisabled+1
func_3 DCD PlaySystemSound+1
icon_0 DCD 0xF329 ;SR_RECORDING_ANIM_00_ICN
icon_1 DCD 0xEB42 ;FR_INPUT_GUI_LISTENING_VOLUME_ICN
Marcadores