clone spinout182.com/mipsdis/actordis/

This commit is contained in:
Connor Olding 2016-02-09 00:07:42 -08:00
parent b4e1ec0a59
commit 814cd636c0
4 changed files with 1833 additions and 1 deletions

1
.dummy
View file

@ -1 +0,0 @@
.

1723
adis.c Executable file

File diff suppressed because it is too large Load diff

54
adis.h Executable file
View file

@ -0,0 +1,54 @@
/*
sinep
*/
#define OOT_DEBUG_ATABLE_START 0x00B8D440
typedef char u8;
typedef unsigned short u16;
typedef unsigned u32;
typedef signed char s8;
typedef signed short s16;
typedef signed s32;
typedef float f32;
typedef struct {
unsigned text_size;
unsigned data_size;
unsigned rodata_size;
unsigned bss_size;
unsigned rel_count;
} actorHeader;
typedef struct {
unsigned rom_start;
unsigned rom_end;
unsigned virtual_start;
unsigned virtual_end;
unsigned unknown_0;
unsigned virtual_ainfo;
unsigned name;
unsigned unknown_1;
} actorCodeEntry;
typedef struct {
unsigned short number;
unsigned char type;
unsigned char status;
unsigned long unknown_0;
unsigned short object_number;
unsigned short unknown_1;
unsigned long unknown_2;
unsigned long init_func;
unsigned long code_func;
unsigned long draw_func;
unsigned long unknown_func;
} actorInformation;
typedef struct {
unsigned addr;
char * name;
} function;

56
r3400i.h Executable file
View file

@ -0,0 +1,56 @@
/*
r3400i.h
*/
typedef void (*Handler)( unsigned long int word );
#define getRS(word)\
(unsigned int)(unsigned int)((word >> 21) & 31)
#define getRT(word)\
(unsigned int)((word >> 16) & 31)
#define getRD(word)\
(unsigned int)((word >> 11) & 31)
#define getSA(word)\
(unsigned int)((word >> 6) & 31)
/*
#define getFT(word)\
(unsigned int)((word >> 16) & 31)
#define getFS(word)\
(unsigned int)((word >> 11) & 31)
#define getFD(word)\
(unsigned int)((word >> 6) & 31)
*/
#define getFT(word)\
(unsigned int)(unsigned int)((word >> 21) & 31)
#define getFS(word)\
(unsigned int)((word >> 16) & 31)
#define getFD(word)\
(unsigned int)((word >> 11) & 31)
#define getBASE(word)\
(unsigned int)((word >> 21) & 31)
#define getIMM(word)\
(unsigned short int)(word & 0xFFFF)
#define getSIMM(word)\
(signed short int)(word & 0xFFFF)
#define getOFFSET(word)\
((signed short)(word & 0xFFFF)) * 4
#define getTARGET(word)\
(unsigned int)((word & 0x3FFFFFF) << 2)
#define flip32(word)\
(unsigned int)(((word&0xFF000000)>>24)|((word&0x00FF0000)>>8)|((word&0x0000FF00)<<8)|((word&0x000000FF)<<24))
#define flip16(value)\
(unsigned short) ((value&0xFF00)>>8) | ((value&0xFF)<<8)