Separated ARM9 from MMU so GPU doesn't depend on it anymore. Should ease

the rewrite in C.
This commit is contained in:
yabause 2006-06-20 22:48:03 +00:00
parent 6b5786fd1c
commit b7ddc9cf2b
2 changed files with 30 additions and 0 deletions

29
desmume/src/ARM9.h Normal file
View File

@ -0,0 +1,29 @@
#ifndef ARM9_H
#define ARM9_H
#include "types.h"
typedef struct {
//ARM9 mem
u8 ARM9_ITCM[0x8000];
u8 ARM9_DTCM[0x4000];
u8 ARM9_WRAM[0x1000000];
u8 MAIN_MEM[0x400000];
u8 ARM9_REG[0x1000000];
u8 ARM9_BIOS[0x8000];
u8 ARM9_VMEM[0x800];
u8 ARM9_ABG[0x80000];
u8 ARM9_BBG[0x20000];
u8 ARM9_AOBJ[0x40000];
u8 ARM9_BOBJ[0x20000];
u8 ARM9_LCD[0xA4000];
u8 ARM9_OAM[0x800];
u8 * ExtPal[2][4];
u8 * ObjExtPal[2][2];
u8 * texPalSlot[4];
} ARM9_struct;
extern ARM9_struct ARM9;
#endif

View File

@ -1,6 +1,7 @@
SUBDIRS = . $(UI_DIR)
noinst_LIBRARIES = libdesmume.a
libdesmume_a_SOURCES = \
ARM9.c ARM9.h \
armcpu.cpp armcpu.hpp \
arm_instructions.cpp arm_instructions.hpp \
bios.cpp bios.hpp cp15.cpp cp15.hpp \