- [NEW] Gestió dels events de cada finestra per separat
- [NEW] Symbols per a etiquetar adreces - [NEW] Mapa de memòria "tocada" - [NEW] En el mapa de memòria al passar el ratolí mostra l'adreça - [NEW] En el mapa de memòria es mostra en roig la posició del contador de programa - [NEW] Reemplaç en els opcodes de adreces conegudes per la seua etiqueta
This commit is contained in:
14
z80.cpp
14
z80.cpp
@@ -7,6 +7,7 @@ namespace z80
|
||||
{
|
||||
static uint8_t *memory = nullptr;
|
||||
static uint8_t memtag[65536];
|
||||
static uint8_t memtouched[65536];
|
||||
static uint32_t t = 0;
|
||||
static uint16_t current_opcode_address = 0;
|
||||
bool options[Z80_NUM_OPTIONS] = { true };
|
||||
@@ -1071,6 +1072,7 @@ namespace z80
|
||||
t = 0;
|
||||
const uint8_t opcode = READ_M1();
|
||||
memtag[current_opcode_address] = MEMTAG_INST;
|
||||
memtouched[current_opcode_address] = MEMTAG_INST;
|
||||
uint16_t tmp;
|
||||
|
||||
switch (opcode)
|
||||
@@ -2738,6 +2740,18 @@ namespace z80
|
||||
|
||||
uint8_t getMemTag(const uint16_t addr) { return memtag[addr]; };
|
||||
|
||||
void clearMemTag()
|
||||
{
|
||||
for (int i=0; i<65536; ++i) memtag[i] = MEMTAG_NONE;
|
||||
}
|
||||
|
||||
uint8_t getMemTouched(const uint16_t addr) { return memtouched[addr]; }
|
||||
|
||||
void clearMemTouched()
|
||||
{
|
||||
for (int i=0; i<65536; ++i) memtouched[i] = MEMTAG_NONE;
|
||||
}
|
||||
|
||||
const bool getOption(const int option)
|
||||
{
|
||||
return options[option];
|
||||
|
||||
Reference in New Issue
Block a user