can you please provide an example for calling a C function in main.c from assembly file ? I just tried following code:
main.c
Code: Select all
extern void Test(int a){
printf("Test was called!\n");
}
void app_main(){
..
..
..}
Code: Select all
..
..
.section .iram1,"ax"
.global xt_highint5
.type xt_highint5,@function
.align 4
.extern _Test
..
..
call0 _Test
I appreciate every help !
Best regards,
opcode_x64