From a8849ccf43487d21197cfb87aeebdd3c94ae4216 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 5 May 2019 13:34:31 +0100 Subject: [PATCH] MC6809: Change the test board wiring a little to allow the MC6850 to work correctly! Signed-off-by: Adrian Conlon --- MC6809/MC6809.Test/Board.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/MC6809/MC6809.Test/Board.cs b/MC6809/MC6809.Test/Board.cs index c5f09f4..8fea6df 100644 --- a/MC6809/MC6809.Test/Board.cs +++ b/MC6809/MC6809.Test/Board.cs @@ -120,7 +120,7 @@ { if (System.Console.KeyAvailable) { - var key = System.Console.ReadKey(); + var key = System.Console.ReadKey(true); this.ACIA.RDR = System.Convert.ToByte(key.KeyChar); this.ACIA.MarkReceiveStarting(); } @@ -231,9 +231,15 @@ private bool AccessAcia() { this.ACIA.E.Raise(); - this.ACIA.Tick(); - this.ACIA.E.Lower(); - return this.ACIA.Activated; + try + { + this.ACIA.Tick(); + return this.ACIA.Activated; + } + finally + { + this.ACIA.E.Lower(); + } } } } \ No newline at end of file