Plan B
#define FW_ADDRESS 0xFF800000
#define FW_SIZE 0x800000
#define O_WRONLY 1
#define O_CREAT 0x200
typedef int (*ft_open)(const char *name, int flags, int mode);
typedef int (*ft_close)(int fd);
typedef int (*ft_write)(int fd, void *buffer, long nbytes);
int main(){
ft_open open;
ft_write write;
ft_close close;
int f;
open =(ft_open) 0x00989A34;
write=(ft_write) 0x00989534;
close=(ft_close) 0x009896A0;
f = open("A:/DUMP.DMP", O_WRONLY|O_CREAT, 0777);
if (f>=0){
write(f, (void*)FW_ADDRESS, FW_SIZE);
close(f);
}
while(1){
;
}
return 0;
}