From 3c656caa4824dc94202f06acc021d38541dea4bb Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 11 Mar 2018 17:59:05 +0000 Subject: [PATCH] Added software turbo control to Generic XT clone, DTK XT clone, AMI XT clone and Phoenix XT clone. --- src/keyboard_xt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keyboard_xt.c b/src/keyboard_xt.c index a622211..aaabda0 100644 --- a/src/keyboard_xt.c +++ b/src/keyboard_xt.c @@ -32,6 +32,7 @@ struct uint8_t pb; int tandy; + int pb2_turbo; } keyboard_xt; static uint8_t key_queue[16]; @@ -115,6 +116,9 @@ void keyboard_xt_write(uint16_t port, uint8_t val, void *priv) timer_process(); timer_update_outstanding(); + + if (keyboard_xt.pb2_turbo) + cpu_set_turbo((val & 4) ? 0 : 1); speaker_update(); speaker_gated = val & 1; @@ -230,6 +234,7 @@ void keyboard_xt_init() keyboard_send = keyboard_xt_adddata; keyboard_poll = keyboard_xt_poll; keyboard_xt.tandy = 0; + keyboard_xt.pb2_turbo = (romset == ROM_GENXT || romset == ROM_DTKXT || romset == ROM_AMIXT || romset == ROM_PXXT) ? 1 : 0; timer_add(keyboard_xt_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL); }