Created
June 10, 2022 16:05
-
-
Save anarsoul/6d0fc7ae260ee0df9976aadea90e90ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/machine.c b/machine.c | |
index 1a33176b..2441cf6c 100644 | |
--- a/machine.c | |
+++ b/machine.c | |
@@ -377,7 +377,7 @@ machine_set_const_timings( fuse_machine_info *machine ) | |
/* Pull timings we use repeatedly out of libspectrum and store them | |
for ourself */ | |
machine->timings.processor_speed = | |
- libspectrum_timings_processor_speed( machine->machine ); | |
+ libspectrum_timings_processor_speed( machine->machine ) * 2; | |
machine->timings.left_border = | |
libspectrum_timings_left_border( machine->machine ); | |
machine->timings.horizontal_screen = | |
@@ -385,11 +385,11 @@ machine_set_const_timings( fuse_machine_info *machine ) | |
machine->timings.right_border = | |
libspectrum_timings_right_border( machine->machine ); | |
machine->timings.tstates_per_line = | |
- libspectrum_timings_tstates_per_line( machine->machine ); | |
+ libspectrum_timings_tstates_per_line( machine->machine ) * 2; | |
machine->timings.interrupt_length = | |
- libspectrum_timings_interrupt_length( machine->machine ); | |
+ libspectrum_timings_interrupt_length( machine->machine ) * 2; | |
machine->timings.tstates_per_frame = | |
- libspectrum_timings_tstates_per_frame( machine->machine ); | |
+ libspectrum_timings_tstates_per_frame( machine->machine ) * 2; | |
} | |
static void | |
diff --git a/peripherals/ula.h b/peripherals/ula.h | |
index ce11bd56..bb88a409 100644 | |
--- a/peripherals/ula.h | |
+++ b/peripherals/ula.h | |
@@ -24,7 +24,7 @@ | |
#ifndef FUSE_ULA_H | |
#define FUSE_ULA_H | |
-#define ULA_CONTENTION_SIZE 80000 | |
+#define ULA_CONTENTION_SIZE 160000 | |
/* How much contention do we get at every tstate when MREQ is active? */ | |
extern libspectrum_byte ula_contention[ ULA_CONTENTION_SIZE ]; | |
diff --git a/sound.c b/sound.c | |
index b46da0ab..3e2ede07 100644 | |
--- a/sound.c | |
+++ b/sound.c | |
@@ -418,7 +418,7 @@ ay_do_tone( int level, unsigned int tone_count, int *var, int chan ) | |
#define AY_CLOCK_DIVISOR 16 | |
/* all Spectrum models and clones with an AY seem to count down the | |
master clock by 2 to drive the AY */ | |
-#define AY_CLOCK_RATIO 2 | |
+#define AY_CLOCK_RATIO 4 | |
static void | |
sound_ay_overlay( void ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment