- [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:
2024-12-09 15:33:35 +01:00
parent 8fd2eecb85
commit 2f4e79bc50
12 changed files with 299 additions and 104 deletions

14
z80.cpp
View File

@@ -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];