- Finestra del depurador amb SDL

This commit is contained in:
2024-04-11 17:37:10 +02:00
parent 9a65ef3915
commit dbff53cc2f
8 changed files with 287 additions and 78 deletions

View File

@@ -211,13 +211,13 @@ namespace z80
void INC16(uint16_t *reg)
{
t+=2;
*reg++;
(*reg)++;
}
void DEC16(uint16_t *reg)
{
t+=2;
*reg--;
(*reg)--;
}
void ADD16(uint16_t* a, uint16_t b)
@@ -891,7 +891,8 @@ namespace z80
void reset(uint8_t* mem)
{
memory = mem;
rPC = 0;
rPC = iff1 = iff2 = im = 0;
rAF = rAF2 = rBC = rBC2 = rDE = rDE2 = rHL = rHL2 = rIX = rIY = rSP = 0xffff;
t = 0;
for (int i=0; i<256; ++i)
{
@@ -2557,6 +2558,8 @@ namespace z80
}
}
uint8_t *getMem() { return memory; }
uint16_t getAF(const bool alt) { return alt?rAF2:rAF; }
uint16_t getBC(const bool alt) { return alt?rBC2:rBC; }
uint16_t getDE(const bool alt) { return alt?rDE2:rDE; }