I have some trouble understanding what to include in the bootdisk-program that allows me to jump to a firmware-function.
In GrAnd's example of a universal dumper there are following lines (not consecutive):
typedef int (*f_open)(const char *name, int flags, int mode);
f_open open;
open = (f_open) func_list[0].ptr;
f = open("A/FREAD.TXT",O_RDONLY, 0777);
Is this supposed to work? What are the conventions for passing arguments to/from a function?
Is the first argument always assigned to R0?
Is an immediate value (i.e. not a pointer) passed in the Register and only (c-)pointers are given as (asm-)pointers?
What about the return value?
Cheers.