OSDN Git Service

flash programming is supported
[unagi/old-svn-converted.git] / client / trunk / anago / script_dump.h
1 #ifndef _SCRIPT_DUMP_H_
2 #define _SCRIPT_DUMP_H_
3 enum dump_mode{
4         MODE_ROM_DUMP, MODE_RAM_READ, MODE_RAM_WRITE
5 };
6 enum {
7         INCREASE_AUTO = 11
8 };
9 struct dump_config{
10         enum dump_mode mode;
11         const wgChar *script;
12         const wgChar *target;
13         const struct reader_handle *handle;
14         const struct reader_control *control;
15         struct dump_memory_driver{
16                 const struct reader_memory_access *access;
17                 struct memory memory;
18                 long read_count_byte, read_count_bit, increase;
19                 uint8_t bitbuffer;
20                 struct gauge gauge;
21         }cpu, ppu;
22         long mappernum;
23         bool progress;
24         bool battery;
25         unsigned long crc;
26         struct textcontrol log;
27         void (*except)(const wgChar *str);
28 };
29 bool script_dump_execute(struct dump_config *c);
30 bool script_workram_execute(struct dump_config *d);
31 #endif