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 /Loader | |
parent | 8c9c24358cca81cdb15462cb74afc5f173966c79 (diff) |
Very first bit towards a Mips/PSX disassembler
Diffstat (limited to 'Loader')
-rw-r--r-- | Loader/loader-psyq.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Loader/loader-psyq.cpp b/Loader/loader-psyq.cpp new file mode 100644 index 0000000..d6d8876 --- /dev/null +++ b/Loader/loader-psyq.cpp @@ -0,0 +1,20 @@ +#include "database.h" + +union psyq_header_t { + struct { + Uint8 id[8]; + Uint32 text, data, pc0, gp0, t_addr, t_size; + Uint32 d_addr, d_size, b_addr, b_size, s_addr, s_size; + Uint32 sp, fp, gp, ra, s0; + }; + Uint8 raw[0x800]; +}; + +class loader_psyq : public Base { + public: + static void load(Handle * input, Database * database) { + psyq_header_t head; + + input->read(&head, sizeof(head)); + } +}; |