1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-04-15 16:10:30 +00:00

Finished up configuration UI. Config is now persisted to a configuration file. Small fixes to UDP encapsulation to ignore packets coming from the same host. Small fix for PInvoke for high res timer.

This commit is contained in:
Josh Dersch
2016-03-02 17:31:19 -08:00
parent c73fb66dee
commit c48e530cbe
19 changed files with 701 additions and 207 deletions

View File

@@ -65,10 +65,7 @@ namespace Contralto
_cpu.Reset();
_ethernetController.Reset();
UCodeMemory.Reset();
// Force the boot keys on reset.
PressBootKeys();
UCodeMemory.Reset();
}
/// <summary>
@@ -126,18 +123,20 @@ namespace Contralto
_diskController.Drives[drive].UnloadPack();
}
public void PressBootKeys()
public void PressBootKeys(AlternateBootType bootType)
{
//
// Press bootkeys if the user has specified a boot combination.
//
if (Configuration.EthernetBootEnabled)
switch(bootType)
{
_keyboard.PressBootKeys(Configuration.BootAddress, true);
case AlternateBootType.Disk:
_keyboard.PressBootKeys(Configuration.BootAddress, false);
break;
case AlternateBootType.Ethernet:
_keyboard.PressBootKeys(Configuration.BootFile, true);
break;
}
}
public AltoCPU CPU
{
get { return _cpu; }