2010-12-12 17:31:13 +01:00
|
|
|
#ifndef __MEMORY_H_
|
|
|
|
#define __MEMORY_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2011-07-29 22:59:31 +02:00
|
|
|
#define Disc_ID ((vu32*) 0x80000000)
|
|
|
|
#define Disc_Region ((vu32*) 0x80000003)
|
|
|
|
#define Disc_Magic ((vu32*) 0x80000018)
|
|
|
|
#define Sys_Magic ((vu32*) 0x80000020)
|
2012-05-06 12:59:58 +02:00
|
|
|
#define Sys_Version ((vu32*) 0x80000024)
|
2011-07-26 00:28:22 +02:00
|
|
|
#define Mem_Size ((vu32*) 0x80000028)
|
2011-07-29 22:59:31 +02:00
|
|
|
#define Board_Model ((vu32*) 0x8000002C)
|
|
|
|
#define Arena_L ((vu32*) 0x80000030)
|
|
|
|
#define Arena_H ((vu32*) 0x80000034)
|
|
|
|
#define FST ((vu32*) 0x80000038)
|
|
|
|
#define Max_FST ((vu32*) 0x8000003C)
|
|
|
|
#define Assembler ((vu32*) 0x80000060)
|
|
|
|
#define Video_Mode ((vu32*) 0x800000CC)
|
2011-07-26 00:28:22 +02:00
|
|
|
#define Dev_Debugger ((vu32*) 0x800000EC)
|
2011-07-29 22:59:31 +02:00
|
|
|
#define Simulated_Mem ((vu32*) 0x800000F0)
|
|
|
|
#define BI2 ((vu32*) 0x800000F4)
|
|
|
|
#define Bus_Speed ((vu32*) 0x800000F8)
|
|
|
|
#define CPU_Speed ((vu32*) 0x800000FC)
|
2011-07-26 00:28:22 +02:00
|
|
|
#define Online_Check ((vu32*) 0x80003180)
|
2011-07-29 22:59:31 +02:00
|
|
|
#define GameID_Address ((vu32*) 0x80003184)
|
2010-12-12 17:31:13 +01:00
|
|
|
|
|
|
|
#define allocate_memory(size) memalign(32, (size+31)&(~31))
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|