- [NEW] Frequència del Z80 configurable
This commit is contained in:
11
z80.cpp
11
z80.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user