diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-09-21 03:37:45 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-09-21 03:37:45 +0200 |
commit | 14d90c9e1171655b864316c9c4aa34033fdd3a45 (patch) | |
tree | 3c297e80f774b4a6452331ff840fe6c415875e11 /Database/database.h | |
parent | 8c9c24358cca81cdb15462cb74afc5f173966c79 (diff) |
Very first bit towards a Mips/PSX disassembler
Diffstat (limited to 'Database/database.h')
-rw-r--r-- | Database/database.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Database/database.h b/Database/database.h index be46598..222573d 100644 --- a/Database/database.h +++ b/Database/database.h @@ -22,6 +22,12 @@ class Database : public Base { return 0; } Uint32 GetNextSegId() { return currentId++; } + Segment * CreateSegment(Cpu * cpu, Uint64 cpu_base, absolute_ptr origin, Uint32 size, Uint32 extra_size = 0, const Byte * data = 0) { + DatabaseCell * r = new DatabaseCell(this, cpu, cpu_base, origin, size, extra_size, data); + return r->getSegment(); + } + void Serialize(Handle * out); + void Deserialize(Handle *in); private: DatabaseCell * start, * end; Uint32 currentId; |