From 14d90c9e1171655b864316c9c4aa34033fdd3a45 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 21 Sep 2009 03:37:45 +0200 Subject: Very first bit towards a Mips/PSX disassembler --- Loader/loader-psyq.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Loader/loader-psyq.cpp (limited to 'Loader') 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)); + } +}; -- cgit v1.2.3