mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
This commit is contained in:
parent
8b07d5daac
commit
f95db75e67
4 changed files with 13 additions and 5 deletions
|
|
@ -29,6 +29,7 @@
|
|||
<Button Name="butnTest">Test</Button>
|
||||
</ToolBar>
|
||||
</ToolBarTray>
|
||||
<Label Name="lablSourceFilename" DockPanel.Dock="Top"></Label>
|
||||
<FlowDocumentScrollViewer Name="fdsvSource" />
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ namespace Cosmos.Build.Windows {
|
|||
|
||||
public void LoadSourceFile(string aPathname) {
|
||||
var xSourceCode = System.IO.File.ReadAllLines(aPathname);
|
||||
lablSourceFilename.Content = System.IO.Path.GetFileName(aPathname);
|
||||
var xPara = new Paragraph();
|
||||
mLines.Clear();
|
||||
fdsvSource.Document = new FlowDocument();
|
||||
|
|
|
|||
|
|
@ -23,14 +23,20 @@ namespace Cosmos.Hardware.PC {
|
|||
HW.PC.Bus.PCIBus.Init();
|
||||
|
||||
// end partially new
|
||||
if (!noATA) HW.Storage.ATA.Initialize(Sleep);
|
||||
if (!noATAOld) HW.Storage.ATAOld.Initialize(Sleep);
|
||||
if (!noATA) {
|
||||
HW.Storage.ATA.Initialize(Sleep);
|
||||
}
|
||||
if (!noATAOld) {
|
||||
HW.Storage.ATAOld.Initialize(Sleep);
|
||||
}
|
||||
|
||||
HW.CPU.CreateIDT();
|
||||
// end old -----------------
|
||||
|
||||
// MTW new
|
||||
if (!noATA2) HW.Storage.ATA2.ATA.Initialize(Sleep);
|
||||
if (!noATA2) {
|
||||
HW.Storage.ATA2.ATA.Initialize(Sleep);
|
||||
}
|
||||
// MTW new end
|
||||
|
||||
HW.Device.Add(new Bus.CPU.Keyboard());
|
||||
|
|
@ -47,7 +53,7 @@ namespace Cosmos.Hardware.PC {
|
|||
}
|
||||
|
||||
private static void Tick(object aSender, EventArgs aEventArgs) {
|
||||
TickCount += 1;
|
||||
TickCount++;
|
||||
}
|
||||
|
||||
//TODO: Change this to use an x86 Op or something so it doesnt
|
||||
|
|
|
|||
|
|
@ -184,8 +184,8 @@ namespace Indy.IL2CPU.Assembler.X86 {
|
|||
new Ret();
|
||||
}
|
||||
}
|
||||
aOutputWriter.WriteLine(xAsm.GetContents());
|
||||
}
|
||||
aOutputWriter.WriteLine(xAsm.GetContents());
|
||||
}
|
||||
|
||||
protected override void EmitDataSectionHeader(string aGroup, TextWriter aOutputWriter) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue