- [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

View File

@@ -2,6 +2,7 @@
#include "zx_ula.h"
#include "zx_screen.h"
#include "z80debug.h"
#include "z80.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
@@ -209,7 +210,7 @@ namespace zx_tape
if (current_section == PULSE_WAIT)
{
pulse_level = 0;
if (pulse_pos >= 3500000)
if (pulse_pos >= z80::getClock())
{
pulse_pos = 0;
current_section = PULSE_PILOT;