DS Memory: Add LDM for BIOS

This commit is contained in:
Vicki Pfau 2017-03-20 14:04:45 -07:00
parent 9b29344a87
commit 47070562b8
1 changed files with 5 additions and 0 deletions

View File

@ -1245,6 +1245,11 @@ uint32_t DS9LoadMultiple(struct ARMCore* cpu, uint32_t address, int mask, enum L
address &= 0xFFFFFFFC;
switch (address >> DS_BASE_OFFSET) {
case DS9_REGION_BIOS:
// TODO: Fix undersized BIOS
// TODO: Fix masking
LDM_LOOP(LOAD_32(value, address & (DS9_SIZE_BIOS - 1), memory->bios9));
break;
case DS9_REGION_ITCM:
case DS9_REGION_ITCM_MIRROR:
LDM_LOOP(if (address < memory->itcmSize) {