Rockbox Ports are now being developed for various digital audio players!
Oh, and I also read that, at least with the v2 firmwares, they made it possible to perform a firmware upgrade simply by placing the "player.rom" file in the root directory in MSC mode and unplugging the unit, but have yet to try it myself because I want to see if I can preserve the 2.0.007A firmware I have on there first. Update: I found the string "UPDATE F/W?" in the .rom file and figured it was safe to try this update method, and indeed, placing a player.rom file in the root and rebooting is a method of loading code to the device. Again, no idea how if this is relevent to porting.
MOV R0, #COLOURBL disp_solid_colour_R0 ; I've name it this because it only seems to be run in these cases.MOV R0, #1BL lcd_subroutine2 ; This is a widely used subroutine that seems related to the LCD.
ADR R2, StringName
ADD R2, R0, #0x338 ; R2 = 0x80000338 = GPIOD_FUNCLDR R3, [R2] ; R3 = current val of GPIOD_FUNCORR R3, R3, #2 ; R3 = orSTR R3, [R2] ; Store R3 in GPIOD_FUNC
ADD R1, R0, #0x330 ; R1 = GPIOD Data Register LDR R3, [R1] ; ; R3 = current val of GPIOD ORR R3, R3, #0xC0 ; R3 = orSTR R3, [R1] ; Store R3 in GPIOD
GPIOA_FUNC = 0; GPIOB_FUNC = 0x16A3; GPIOC_FUNC = 1; GPIOD_FUNC = 2; /* ? */ GPIOE_FUNC = 0; GPIOA_DIR = 0xFFFF0E00; /* 0 - 0xF200 */ GPIOB_DIR = 0x6FFFF; GPIOC_DIR = 0x03FFFFFF; GPIOD_DIR = 0x3F7; GPIOE_DIR = 0x9B; GPIOA = 0x1080; GPIOB = 0; GPIOC = 0; GPIOD = 0xc0; /* ? */ GPIOE = 0x9B;
Code: [Select]ADD R2, R0, #0x338 ; R2 = 0x80000338 = GPIOD_FUNCLDR R3, [R2] ; R3 = current val of GPIOD_FUNCORR R3, R3, #2 ; R3 = orSTR R3, [R2] ; Store R3 in GPIOD_FUNCCode: [Select]ADD R1, R0, #0x330 ; R1 = GPIOD Data Register LDR R3, [R1] ; ; R3 = current val of GPIOD ORR R3, R3, #0xC0 ; R3 = orSTR R3, [R1] ; Store R3 in GPIOD
Page created in 0.069 seconds with 22 queries.