diff --git a/src/machine/m_xt_compaq.c b/src/machine/m_xt_compaq.c index 50941ef7b..29096cba0 100644 --- a/src/machine/m_xt_compaq.c +++ b/src/machine/m_xt_compaq.c @@ -32,6 +32,7 @@ #include "../floppy/fdc.h" #include "../game/gameport.h" #include "../keyboard.h" +#include "../lpt.h" #include "machine.h" @@ -50,6 +51,8 @@ machine_xt_compaq_init(machine_t *model) switch(model->id) { case ROM_PORTABLE: + lpt1_remove(); + lpt1_init(0x03bc); break; } } diff --git a/src/pit.c b/src/pit.c index 7407803d6..220aece1f 100644 --- a/src/pit.c +++ b/src/pit.c @@ -314,7 +314,7 @@ int64_t pit_get_timer_0() static int64_t pit_read_timer(PIT *pit, int64_t t) { timer_clock(); - if (pit->using_timer[t]) + if (pit->using_timer[t] && !(pit->m[t] == 3 && !pit->gate[t])) { int64_t read = (int64_t)((pit->c[t] + ((1 << TIMER_SHIFT) - 1)) / PITCONST) >> TIMER_SHIFT; if (pit->m[t] == 2)