forked from Lephenixnoir/hex-editor
50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
#include "source.h"
|
|
#include <stdlib.h>
|
|
|
|
static memory_region_t REGION_ROM = {
|
|
.start = 0x80000000,
|
|
.end = 0x82000000,
|
|
.writable = false,
|
|
.name = "ROM",
|
|
};
|
|
static memory_region_t REGION_RAM = {
|
|
.start = 0x8c000000,
|
|
.end = 0x8c800000,
|
|
.writable = false,
|
|
.name = "RAM",
|
|
};
|
|
static memory_region_t REGION_ILRAM = {
|
|
.start = 0xe5200000,
|
|
.end = 0xe5201000,
|
|
.writable = true,
|
|
.name = "ILRAM",
|
|
};
|
|
static memory_region_t REGION_XYRAM = {
|
|
.start = 0xe500e000,
|
|
.end = 0xe5012000,
|
|
.writable = true,
|
|
.name = "XRAM/YRAM",
|
|
};
|
|
static memory_region_t REGION_RS = {
|
|
.start = 0xfd800000,
|
|
.end = 0xfd800800,
|
|
.writable = true,
|
|
.name = "RS",
|
|
};
|
|
|
|
memory_region_t *memory_all_regions[] = {
|
|
®ION_ROM,
|
|
®ION_RAM,
|
|
®ION_ILRAM,
|
|
®ION_XYRAM,
|
|
®ION_RS,
|
|
NULL,
|
|
};
|
|
|
|
// TODO: Add offset to source + heditor view so we can see real memory addresses
|
|
|
|
source_t *source_memory_open(memory_region_t *region)
|
|
{
|
|
return NULL;
|
|
}
|