- [NEW] Frequència del Z80 configurable

This commit is contained in:
2024-12-20 11:24:58 +01:00
parent 4a0e2b3b7d
commit fe36a970c2
5 changed files with 23 additions and 5 deletions

11
z80.cpp
View File

@@ -9,6 +9,7 @@ namespace z80
//static uint8_t *memory = nullptr;
//static uint8_t memtag[65536];
//static uint8_t memtouched[65536];
static uint32_t clock = 3500000;
static uint32_t t = 0;
static uint16_t current_opcode_address = 0;
bool options[Z80_NUM_OPTIONS] = { true, false };
@@ -1130,6 +1131,16 @@ namespace z80
}
}
void setClock(uint32_t freq)
{
clock = freq;
}
uint32_t getClock()
{
return clock;
}
void BIT_INSTRUCTIONS();
void IX_INSTRUCTIONS();
void IX_BIT_INSTRUCTIONS();