Huh ? You don't need to copy them. Just don't build them in the first place. You only need to generate the .h files if you are adding entry points to sig_ref_*.txt. This is only true if you are adding new features.
I've already verified each nstub in stubs_entry.s and corrected some values, i'll write all these in stubs_entry_2.s but with NHSTUB, just to be sure the values i checked will be used.
ROM:FFC370C0 kbd_pwr_off ; CODE XREF: kbd_read_keys+34pROM:FFC370C0 LDR R0, =0xC0220000ROM:FFC370C4 LDR R1, [R0,#0xE0]ROM:FFC370C8 BIC R1, R1, #2ROM:FFC370CC STR R1, [R0,#0xE0]ROM:FFC370D0 BX LRROM:FFC370D0 ; End of function kbd_pwr_off
ROM:FFC3194C sub_FFC3194C ; CODE XREF: kbd_read_keys+34pROM:FFC3194C MOV R0, #0ROM:FFC31950 B sub_FFC3134CROM:FFC31950 ; End of function sub_FFC3194CROM:FFC3134C sub_FFC3134C ; CODE XREF: sub_FFC318FC+8pROM:FFC3134C ; sub_FFC3194C+4jROM:FFC3134CROM:FFC3134C arg_4 = 4ROM:FFC3134CROM:FFC3134C STR LR, [SP,#unk_FFFFFFFC]!ROM:FFC31350 LDR LR, =0xC0220000ROM:FFC31354 LDR R12, =unk_FFE5C62CROM:FFC31358 MOV R1, #0ROM:FFC3135CROM:FFC3135C loc_FFC3135C ; CODE XREF: sub_FFC3134C+30jROM:FFC3135C ADD R2, R1, R1,LSL#1ROM:FFC31360 ADD R3, R12, R2,LSL#2ROM:FFC31364 LDRB R3, [R3,#8]ROM:FFC31368 CMP R3, #1ROM:FFC3136C LDREQB R2, [R12,R2,LSL#2]ROM:FFC31370 STREQ R0, [LR,R2,LSL#2]ROM:FFC31374 ADD R1, R1, #1ROM:FFC31378 CMP R1, #0x1CROM:FFC3137C BLT loc_FFC3135CROM:FFC31380 LDR PC, [SP],#arg_4ROM:FFC31380 ; End of function sub_FFC3134C
sub_FFCC9150 ; CODE XREF: taskcreate_LEDCon+54pROM:FFCC9150 LDR R2, =0xC02200CCROM:FFCC9154 MOV R1, #0ROM:FFCC9158 STRB R1, [R0]ROM:FFCC915C STR R2, [R0,#4]ROM:FFCC9160 SUB R2, R2, #4ROM:FFCC9164 STRB R1, [R0,#0x40]ROM:FFCC9168 STR R2, [R0,#0x44]ROM:FFCC916C LDR R2, =0xC02200D0ROM:FFCC9170 STRB R1, [R0,#0x80]ROM:FFCC9174 STR R2, [R0,#0x84]ROM:FFCC9178 ADD R2, R2, #4ROM:FFCC917C STRB R1, [R0,#0xC0]ROM:FFCC9180 STR R2, [R0,#0xC4]ROM:FFCC9184 STRB R1, [R0,#0x200]ROM:FFCC9188 LDR R1, =0xC02200C4ROM:FFCC918C LDR R2, =0xC02200C0ROM:FFCC9190 STR R1, [R0,#0x204]ROM:FFCC9194 MOV R1, #1ROM:FFCC9198 STRB R1, [R0,#0x240]ROM:FFCC919C STR R2, [R0,#0x244]ROM:FFCC91A0 STRB R1, [R0,#0x280]ROM:FFCC91A4 STRB R1, [R0,#0x2C0]ROM:FFCC91A8 B sub_FFD9B940ROM:FFCC91A8 ; End of function sub_FFCC9150
ROM:FFCC5A6C sub_FFCC5A6C ; CODE XREF: taskcreate_LEDCon+54pROM:FFCC5A6C LDR R2, =0xC02200CCROM:FFCC5A70 MOV R1, #0ROM:FFCC5A74 STRB R1, [R0]ROM:FFCC5A78 STR R2, [R0,#4]ROM:FFCC5A7C SUB R2, R2, #4ROM:FFCC5A80 STRB R1, [R0,#0x40]ROM:FFCC5A84 STR R2, [R0,#0x44]ROM:FFCC5A88 LDR R2, =0xC02200D0ROM:FFCC5A8C STRB R1, [R0,#0x80]ROM:FFCC5A90 STR R2, [R0,#0x84]ROM:FFCC5A94 STRB R1, [R0,#0x200]ROM:FFCC5A98 SUB R1, R2, #0xCROM:FFCC5A9C STR R1, [R0,#0x204]ROM:FFCC5AA0 MOV R1, #1ROM:FFCC5AA4 SUB R2, R2, #0x10ROM:FFCC5AA8 STRB R1, [R0,#0x240]ROM:FFCC5AAC STR R2, [R0,#0x244]ROM:FFCC5AB0 STRB R1, [R0,#0x280]ROM:FFCC5AB4 STRB R1, [R0,#0x2C0]ROM:FFCC5AB8 B sub_FFDAF0CCROM:FFCC5AB8 ; End of function sub_FFCC5A6C
Regarding PT_Playsound there is DCB "PlaySound" but it it's used anywhere.
../platform/a580/libplatform.a(wrappers.o): In function `lens_set_zoom_speed':wrappers.c:(.text+0x1e8): undefined reference to `_SetZoomActuatorSpeedPercent'../platform/a580/libplatform.a(wrappers.o): In function `play_sound':wrappers.c:(.text+0x290): undefined reference to `_PT_PlaySound'../platform/a580/libplatform.a(wrappers.o): In function `MakeAFScan':wrappers.c:(.text+0xccc): undefined reference to `_MakeAFScan'../platform/a580/libplatform.a(wrappers.o): In function `ubasic_set_led':wrappers.c:(.text+0xfa4): undefined reference to `_PostLEDMessage'
void CreateTask_spytask() { //#fs _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);}; //#fevoid CreateTask_PhySw() { //#fs _CreateTask("PhySw", 0x18, 0x800, mykbd_task, 0);}; //#fe
void *vid_get_viewport_fb_d(){ return (void*)(*(int*)0x540C); //5410}
void *vid_get_viewport_live_fb(){// return (void*)0;//0x10670ee0; void **fb=(void **)0x21D0; // defined in 0xFFCA0EF4 in a580 and FFC298C4 in a720 ? unsigned char buff = *((unsigned char*)0x2084); // 0x6928 ?! if (buff == 0) { buff = 2; } else { buff--; } return fb[buff];}
Started by Barney Fife AllBest's Builds
Started by Novex « 1 2 ... 9 10 » General Discussion and Assistance
Started by jeff666 « 1 2 ... 28 29 » DryOS Development
Started by windman Creative Uses of CHDK
Started by CallMeLzo CHDK Releases