PIT timers can now be restarted using GATE input - CPU speed detection on SiS496/497 now works.
Added missing port 0x61 to Olivetti M24 - PC speaker now works on that machine. Some code tidying.
This commit is contained in:
parent
a592bd12ee
commit
36cdd540b2
9 changed files with 57 additions and 26 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "io.h"
|
||||
#include "mem.h"
|
||||
#include "pic.h"
|
||||
#include "pit.h"
|
||||
#include "sound.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
|
@ -268,9 +269,11 @@ void keyboard_at_write(uint16_t port, uint8_t val, void *priv)
|
|||
break;
|
||||
|
||||
case 0x61:
|
||||
ppi.pb=val;
|
||||
gated=((val&3)==3);
|
||||
if (gated) wasgated=1;
|
||||
ppi.pb = val;
|
||||
gated = ((val & 3) == 3);
|
||||
if (gated)
|
||||
wasgated = 1;
|
||||
pit_set_gate(2, val & 1);
|
||||
break;
|
||||
|
||||
case 0x64:
|
||||
|
|
|
|||
Loading…
Reference in a new issue