Namco 163 memory composition
This commit is contained in:
parent
d33e645ea8
commit
898155eb6b
12 changed files with 111 additions and 8 deletions
|
|
@ -441,6 +441,8 @@ enum DivMemoryEntryType {
|
|||
DIV_MEMORY_WAVE_RAM,
|
||||
DIV_MEMORY_WAVE_STATIC,
|
||||
DIV_MEMORY_ECHO,
|
||||
DIV_MEMORY_N163_LOAD,
|
||||
DIV_MEMORY_N163_PLAY,
|
||||
DIV_MEMORY_BANK0,
|
||||
DIV_MEMORY_BANK1,
|
||||
DIV_MEMORY_BANK2,
|
||||
|
|
@ -470,15 +472,25 @@ struct DivMemoryEntry {
|
|||
end(0) {}
|
||||
};
|
||||
|
||||
enum DivMemoryWaveView: unsigned char {
|
||||
DIV_MEMORY_WAVE_NONE=0,
|
||||
DIV_MEMORY_WAVE_4BIT, // Namco 163
|
||||
DIV_MEMORY_WAVE_6BIT, // Virtual Boy
|
||||
};
|
||||
|
||||
struct DivMemoryComposition {
|
||||
std::vector<DivMemoryEntry> entries;
|
||||
String name;
|
||||
size_t capacity;
|
||||
size_t used;
|
||||
const unsigned char* memory;
|
||||
DivMemoryWaveView waveformView;
|
||||
DivMemoryComposition():
|
||||
name(""),
|
||||
capacity(0),
|
||||
used(0) {}
|
||||
used(0),
|
||||
memory(NULL),
|
||||
waveformView(DIV_MEMORY_WAVE_NONE) {}
|
||||
};
|
||||
|
||||
class DivEngine;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue